[SR-Users] Status of t_relay()

Fabian Borot fborot at hotmail.com
Thu Aug 25 17:20:13 CEST 2011



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?
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

  		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110825/67588910/attachment.htm>


More information about the sr-users mailing list