[prev in list] [next in list] [prev in thread] [next in thread]
List: openser-users
Subject: Re: [SR-Users] Status of t_relay()
From: Fabian Borot <fborot () hotmail ! com>
Date: 2011-08-25 22:31:31
Message-ID: SNT110-W162309F1C09D26097AD4F3CD100 () phx ! gbl
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
I tested it and it serves my purposes. txs a lot!
Date: Thu, 25 Aug 2011 19:14:03 +0200
From: miconda@gmail.com
To: sr-users@lists.sip-router.org
CC: fborot@hotmail.com
Subject: Re: [SR-Users] Status of t_relay()
Hello,
On 8/25/11 5:20 PM, Fabian Borot wrote:
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?
I understand you want to get the reply code in a failure_route,
right?
If yes, there is a pseudo-variable for it:
http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:3.1.x#t_reply_code
Cheers,
Daniel
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
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda
[Attachment #5 (text/html)]
<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'>
I tested it and it serves my purposes. txs a lot!<br><br><br><div>
<div> </div></div><br><br><div><hr id="stopSpelling">Date: Thu, 25 Aug 2011 \
19:14:03 +0200<br>From: miconda@gmail.com<br>To: sr-users@lists.sip-router.org<br>CC: \
fborot@hotmail.com<br>Subject: Re: [SR-Users] Status of t_relay()<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
Hello,<br>
<br>
On 8/25/11 5:20 PM, Fabian Borot wrote:
<blockquote cite="mid:SNT110-W434F6EC986FB631679C72BCD100@phx.gbl">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{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="ecxmoz-txt-link-freetext" \
href="http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:3.1.x#t_reply_code" \
target="_blank">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">
<div dir="ltr">txs a lot<br>
fborot<br>
<br>
<br>
<div>
<div> </div>
</div>
<br>
<br>
<div>
<hr id="ecxstopSpelling">From: <a class="ecxmoz-txt-link-abbreviated" \
href="mailto:fborot@hotmail.com">fborot@hotmail.com</a><br>
To: <a class="ecxmoz-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>
<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="ecxmimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="ecxmoz-txt-link-abbreviated" \
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a> <a \
class="ecxmoz-txt-link-freetext" \
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" \
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a> \
</pre> </blockquote>
<br>
<pre class="ecxmoz-signature">--
Daniel-Constantin Mierla -- <a class="ecxmoz-txt-link-freetext" \
href="http://www.asipto.com" target="_blank">http://www.asipto.com</a> Kamailio \
Advanced Training, Oct 10-13, Berlin: <a class="ecxmoz-txt-link-freetext" \
href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a> <a \
class="ecxmoz-txt-link-freetext" href="http://linkedin.com/in/miconda" \
target="_blank">http://linkedin.com/in/miconda</a> -- <a \
class="ecxmoz-txt-link-freetext" href="http://twitter.com/miconda" \
target="_blank">http://twitter.com/miconda</a></pre></div> </div></body> \
</html>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic