<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<br>ok, my bad, let me rephrase the question.<br><br>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) <br>, is there a variable that one can use to retrieve that value?<br>txs a lot<br>fborot<br>&nbsp;<br><br><div>
<div>&nbsp;</div></div><br><br><div><hr id="stopSpelling">From: fborot@hotmail.com<br>To: sr-users@lists.sip-router.org<br>Subject: Status of t_relay()<br>Date: Thu, 25 Aug 2011 10:37:45 -0400<br><br>

<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

</style>

<div dir="ltr">
<br>Hi,<br>If t_relay() fails, is it possible to retrieve the status/reason on a variable or something?<br>I am using<code class="ecxfunction"> t_grep_status("code")</code> and trying to catch each case that I am interested but I was wondering if there was a better way.<br>One could do something like this:<br>If (result &gt; 400) {<br>&nbsp;&nbsp;&nbsp;&nbsp; do action 1<br>} else {<br>&nbsp;&nbsp;&nbsp; do action 2<br>}<br><br>txs a lot<br>fborot<br><div>
<div>&nbsp;</div></div>                                               </div></div>                                               </div></body>
</html>