<div dir="ltr">Hello Daniel,<div><br></div><div style><div>thank's for your help... I was thinking to use $fs (forced socket) variable in branch_route to know what interface packet will be sending and set the correct rtpproxy parameters (I don't know if is a better solution). I will test your solution too.</div>
<div><br></div><div>Best Regards</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/10 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<div><div class="h5"><br>
<br>
On 5/8/13 8:24 PM, Bruno Bresciani wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
currently I have been used kamailio and rtpproxy to listen on two different network (bridge mode), and the register of sip users are saved on different locations ("aliases" and "location") according the interface where register is received. When there is a call to a user registered, I use the registered() function of module registrar on my route[ ] block, to discover the network where sip user is connected and use the correct parameters in rtpproxy functions.<br>

>From now, I need that my plataform has forking call support and when the same sip user is registered on both networks, I have to use the branch_route[ ]  block to process every branch separately because is necessary different rtpproxy parameters.<br>

I am with difficult in branch_route to set the correct rtpproxy parameters because I can't find a way to know the network that the branch will be send. Could anybody tell me if exist a form to solve my problem?<br>
</blockquote></div></div>
one solution is to use a branch flag that you set at registration time based on the network is coming on. Then in branch route you can test for this flag.<br>
<br>
Cheers,<br>
Daniel<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/<u></u>miconda</a><br>
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013<br>
  * <a href="http://asipto.com/u/katu" target="_blank">http://asipto.com/u/katu</a> *<br>
<br>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</font></span></blockquote></div><br></div>