<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>&nbsp;</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>
        &nbsp;<br>
        <br>
        <div>
          <div>&nbsp;</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 &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>
      <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>