<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<code class="function"></code>I thought t_any_replied() can be used
for that purpose.<br>
<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 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>
</body>
</html>