Hello,
On 11/13/12 3:47 AM, Vitaliy Aleksandrov wrote:
||I thought t_any_replied() can be used for that purpose.
probably you should look at:
http://kamailio.org/docs/modules/stable/modules/tm.html#t_branch_replied
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.
Cheers,
Daniel
For example in failure route I used:
if (t_any_replied() && t_check_status("408") ) {
xlog("L_DBG", "408 reply received\n");
}
or
if ( !(t_any_replied()) && t_check_status("408")) {
xlog("L_DBG", "Local timeout\n");
}
But I carefully read tm docs and found "If called from a failure or
onreply route, the __"current"__ reply is not taken into account."
According to t_any_replied() description my examples should not work,
but they do (at production system for about one year).
On 11/11/12 1:54 PM, Uri Shacked wrote:
Hi,
what is the command to check if the reply was recieved or localy
generated?
I assume you need that in failure_route, test the $T(reply_type), it
should be 1 for local generated replies:
http://www.kamailio.org/wiki/cookbooks/3.3.x/pseudovariables#t_name
Cheers,
Daniel
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users