[SR-Users] Status of t_relay()

Fabian Borot fborot at hotmail.com
Thu Aug 25 16:37:45 CEST 2011



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/31cb91fb/attachment.htm>


More information about the sr-users mailing list