<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
<div class="moz-cite-prefix">On 11/13/12 3:47 AM, Vitaliy
Aleksandrov wrote:<br>
</div>
<blockquote cite="mid:50A20930.80206@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<code class="function"></code>I thought t_any_replied() can be
used for that purpose.<br>
</blockquote>
<br>
probably you should look at:<br>
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules/tm.html#t_branch_replied">http://kamailio.org/docs/modules/stable/modules/tm.html#t_branch_replied</a><br>
<br>
It is more appropriate for what you are looking to. Still it is to
check if no 1xx was received for the branch, which very likely
results in next hop being down.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote cite="mid:50A20930.80206@gmail.com" type="cite"> <br>
For example in failure route I used:<br>
if (t_any_replied() && t_check_status("408") ) {<br>
xlog("L_DBG", "408 reply received\n");<br>
}<br>
<br>
or<br>
<br>
if ( !(t_any_replied()) && t_check_status("408")) {<br>
xlog("L_DBG", "Local timeout\n");<br>
}<br>
<br>
But I carefully read tm docs and found "If called from a failure
or onreply route, the __"current"__ reply is not taken into
account."<br>
According to t_any_replied() description my examples should not
work, but they do (at production system for about one year).<br>
<br>
<br>
<br>
<blockquote cite="mid:50A0EF02.3080901@gmail.com" type="cite"> <br>
On 11/11/12 1:54 PM, Uri Shacked wrote: <br>
<blockquote type="cite">Hi, <br>
what is the command to check if the reply was recieved or
localy generated? <br>
</blockquote>
I assume you need that in failure_route, test the
$T(reply_type), it should be 1 for local generated replies: <br>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.kamailio.org/wiki/cookbooks/3.3.x/pseudovariables#t_name">http://www.kamailio.org/wiki/cookbooks/3.3.x/pseudovariables#t_name</a>
<br>
<br>
Cheers, <br>
Daniel <br>
<br>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>