Yeah, Juha&#39;s suggestion worked perfectly.  As soon as I moved the force_send_socket() call into branch_route everything started working.<br><br>Thanks.<br><br><div class="gmail_quote">On Tue, Jun 29, 2010 at 5:20 AM, Klaus Darilion <span dir="ltr">&lt;<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">IIRC force_send_socket operates on &quot;branch[0]&quot;. Now it depends how the the new branch is added, e.g. if send--socket properties are copied into new branch or not. IRRC there were some changes either in 1.5 or 3.0.<br>

<br>
You can also access a branch&#39;s aprameter directly:<br>
<a href="http://sip-router.org/wiki/cookbooks/pseudo-variables/devel#branch_attributes" target="_blank">http://sip-router.org/wiki/cookbooks/pseudo-variables/devel#branch_attributes</a><br>
<br>
or try Juha&#39;s suggestion with branch_route<br>
<br>
regards<br>
klaus<br>
<br>
Am 28.06.2010 19:08, schrieb Geoffrey Mina:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
I am having an issue with 1.5.4 where force_send_socket() isn&#39;t behaving<br>
as I would expect.<br>
<br>
I have an LCR scenario where depending on which gateway I am sending to,<br>
I send from a different socket.<br>
<br>
It appears that calling force_send_socket from failure_route has no<br>
affect on the routing.  In my initial route block I call<br>
force_send_socket(X.X.X.180:5060).  In my failure_route I am calling<br>
force_send_socket(X.X.X.179:5060), yet after calling the subsequent<br>
time, my sip trace and tcpdump are clearly showing kamailio is still<br>
sending from X.X.X.180:5060.<br>
<br>
I have added a lot of debug lines, so I am 100% sure the second call to<br>
force_send_socket is happening.<br>
<br>
Am I misusing this module in some way?<br>
<br>
<br>
<br></div></div><div class="im">
_______________________________________________<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/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></blockquote>
</blockquote></div><br>