<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
On 8/25/11 5:20 PM, Fabian Borot wrote:
<blockquote cite="mid:SNT110-W434F6EC986FB631679C72BCD100@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<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>
</div>
</blockquote>
<br>
I understand you want to get the reply code in a failure_route,
right?<br>
<br>
If yes, there is a pseudo-variable for it:<br>
<a class="moz-txt-link-freetext" href="http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:3.1.x#t_reply_code">http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:3.1.x#t_reply_code</a><br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote cite="mid:SNT110-W434F6EC986FB631679C72BCD100@phx.gbl"
type="cite">
<div dir="ltr">txs a lot<br>
fborot<br>
<br>
<br>
<div>
<div> </div>
</div>
<br>
<br>
<div>
<hr id="stopSpelling">From: <a class="moz-txt-link-abbreviated" href="mailto:fborot@hotmail.com">fborot@hotmail.com</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><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=ISO-8859-1">
<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 > 400) {<br>
do action 1<br>
} else {<br>
do action 2<br>
}<br>
<br>
txs a lot<br>
fborot<br>
<div>
<div> </div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
</body>
</html>