<div dir="ltr">I did add it but still not working;&nbsp; my server sends a 500 error to the voip provider(216.120.x.x), and keeps trying to connect to the non-responsive ip:<br><br><br><br>U 206.225.x.x:5060 -&gt; 216.120.x.x:5060<br>
&nbsp; SIP/2.0 500 Server error occurred (19/SL)..Via: SIP/2.0/UDP 216.120.x.x<br>&nbsp; ;branch=z9hG4bKf42f.9549f9f5.0..Via: SIP/2.0/UDP 64.24.35.x;branch=z9hG4b<br>&nbsp; Kf42f.96ada2e1.0..Via: SIP/2.0/UDP 64.24.35.x;rport=5060;branch=z9hG4bK972<br>
&nbsp; rXHc84KemN..From: &quot;617947xxxx&quot; &lt;sip:617947xxxx@64.24.35.x&gt;;tag=0H5H6t1g0mZ<br>&nbsp; 2N..To: &lt;sip:617933xxxx@64.24.35.x&gt;;tag=e7c1de645436136957f0348d11a34701.<br>&nbsp; 6d26..Call-ID: 59df6cc7-dffc-122b-cfad-0030487d3edc..CSeq: 102985214 INVITE<br>
&nbsp; ..Openser..Content-Length: 0....<br><br><br><br><div class="gmail_quote">On Fri, Aug 8, 2008 at 10:37 AM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</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;">Hello,<br>
<br>
after setting the $ru in failure route you need to call append_branch()<br>
<br>
Cheers,<br>
Daniel<div><div></div><div class="Wj3C7c"><br>
<br>
On 08/08/08 16:58, Mouncif Benniane wrote:<br>
</div></div><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="Wj3C7c">
I am using openser 1.3, I can&#39;t make the failure_route to work properly.<br>
<br>
here is my config:<br>
<br>
modparam(&quot;tm&quot;, &quot;fr_timer&quot;, 2) # set fr_timer<br>
<br>
<br>
route{<br>
<br>
if (is_method(&quot;INVITE&quot;)) {<br>
<br>
avp_delete(&quot;*&quot;);<br>
<br>
if (avp_db_query(&quot;SELECT prefix,grp_id,priority,custid,did,ip,port,failure_set,failure_i<br>
p,failure_port FROM test_table WHERE prefix=&#39;$rU&#39;&quot;,&quot;$avp(s:prefix);$avp(s:grp_id);$avp(s:priority);$avp(s:custid);$avp(s:did);$avp(s:ip);$avp(s:port<br>
);$avp(s:failure_set);$avp(s:failure_ip);$avp(s:failure_<br>
port)&quot;)) {<br>
<br>
<br>
$ru = &quot;sip:&quot;+$rU + &quot;@&quot; + $avp(s:ip) + &quot;:&quot; + $avp(s:port);<br>
<br>
<br>
<br>
if ($avp(s:failure_set) == y ) {<br>
$avp(i:3) = 3;<br>
t_on_failure(&quot;1&quot;);<br>
t_relay();<br>
<br>
}<br>
<br>
<br>
}<br>
<br>
} else {<br>
 &nbsp; &nbsp;xlog(&quot;L_NOTICE&quot;, &quot;avp_db_query() returned no records or failed query\n&quot;);<br>
 &nbsp;};<br>
<br>
}<br>
### END OF ROUTING<br>
<br>
<br>
<br>
failure_route[1] {<br>
<br>
 &nbsp; # status is 408 if openser session timer fires<br>
 &nbsp; if (t_check_status(&quot;408&quot;)) {<br>
<br>
$ru = &quot;sip:&quot;+$rU + &quot;@&quot; + $avp(s:failure_ip) + &quot;:&quot; + $avp(s:failure_port);<br>
t_relay();<br>
<br>
}<br>
<br>
}<br>
<br>
<br>
route[1] {<br>
 &nbsp; &nbsp; &nbsp; &nbsp;# send it out now; use stateful forwarding as it works reliably<br>
 &nbsp; &nbsp; &nbsp; &nbsp;# even for UDP2TCP<br>
 &nbsp; &nbsp; &nbsp; &nbsp;if (!t_relay()) {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sl_reply_error();<br>
 &nbsp; &nbsp; &nbsp; &nbsp;};<br>
 &nbsp; &nbsp; &nbsp; &nbsp;exit;<br>
}<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
So I set ip field to no responsive one and failure_ip to responsive one, &nbsp;but still the invite does not fail to the last one (failure_ip) after the timeout.<br>
Am I doing something wrong?<br>
<br>
<br>
cheers!!<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
 &nbsp;<br>
</blockquote>
<br>
-- <br>
Daniel-Constantin Mierla<br>
<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<br>
</blockquote></div><br></div>