thank you Daniel, I will try it and report back
Date: Thu, 25 Aug 2011 19:14:03 +0200 From: mico...@gmail.com To: sr-users@lists.sip-router.org CC: fbo...@hotmail.com Subject: Re: [SR-Users] Status of t_relay() Hello, On 8/25/11 5:20 PM, Fabian Borot wrote: ok, my bad, let me rephrase the question. I meant: after relaying the INVITE, if the "result" of that transaction is negative (4xx, 5xx or 6xx is received, the request times out before fr_timer expires etc) , is there a variable that one can use to retrieve that value? I understand you want to get the reply code in a failure_route, right? If yes, there is a pseudo-variable for it: http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:3.1.x#t_reply_code Cheers, Daniel txs a lot fborot From: fbo...@hotmail.com To: sr-users@lists.sip-router.org Subject: Status of t_relay() Date: Thu, 25 Aug 2011 10:37:45 -0400 Hi, If t_relay() fails, is it possible to retrieve the status/reason on a variable or something? I am using t_grep_status("code") and trying to catch each case that I am interested but I was wondering if there was a better way. One could do something like this: If (result > 400) { do action 1 } else { do action 2 } txs a lot fborot _______________________________________________ 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 Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat http://linkedin.com/in/miconda -- http://twitter.com/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