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