[SR-Users] Status of t_relay()
Daniel-Constantin Mierla
miconda at gmail.com
Thu Aug 25 19:14:03 CEST 2011
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: fborot at hotmail.com
> To: sr-users at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110825/bfa03c5c/attachment.htm>
More information about the sr-users
mailing list