<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">On 01/03/16 17:23, Uri Shacked wrote:<br>
    </div>
    <blockquote
cite="mid:CAMMbDhRzpaHzp40i58ZV3=t7BDrh5z96q=oyo8smPd=8xa9YEA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <pre style="white-space:pre-wrap;color:rgb(0,0,0)">><i> On 01 Mar 2016, at 16:29, Uri Shacked <<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">ushacked at gmail.com</a>> wrote:
</i>><i> 
</i>><i> Hi,
</i>><i> 
</i>><i> Is i possible to control the to_tag when i send my own stateless reply from kamailio.
</i>
Why would you want to do that? Curious.

I did however lack the capability of accessing the Kamailioi defined to-tag in the scripts. Maybe we should make
it available in a pseudovariable somewhere.

/O
</pre>
        <div><br>
        </div>
        <div>I have a need (unfortunately :-)) to suspend the 200ok
          answer that i s being relayed to the caller.</div>
        <div>I am using t_suspend() and t_continue() for it.</div>
        <div>But, when the caller decide to cancel the call before I
          managed to resume the transaction, I would like to send a 487
          stateless in order for the client to disconnect immediately.</div>
        <div><br>
        </div>
        <div>So, I need to send the 487 with the relevant to_tag.</div>
      </div>
    </blockquote>
    It should work to send the 487 with any To-tag, because the call is
    not answered yet and the proxy can do parallel/serial forking, where
    there are various tags anyhow and only one is picked up in normal
    case.<br>
    <br>
    Have you tried to just send the 487 reply with send_reply()? Wasn't
    working?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, March 7-9, 2016 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>