<div dir="ltr"><pre><i><font color="#000000"><span style="white-space:pre-wrap">I tried sl_send_reply(), send_reply() and t_reply() (after t_newtran() for the last one).</span></font></i></pre><pre><font color="#000000"><span style="white-space:pre-wrap"><i>all did not work.</i></span></font></pre><pre><font color="#000000"><span style="white-space:pre-wrap"><i>if i send reply before the cancel arrives, yes, no problem.</i></span></font></pre><pre><font color="#000000"><span style="white-space:pre-wrap"><i>but i want to reply to the cancel with 487, and it does not seem to work.</i></span></font></pre><pre><font color="#000000"><span style="white-space:pre-wrap"><i>the only differences between my reply and the 487 destination's reply, is the to_tag and the Cseq method (Cseq number is the same).</i></span></font></pre><pre><font color="#000000"><span style="white-space:pre-wrap"><i>the destination's 487 to_tag is similar to the 180/183 to_tag that it sent prior to canceling and the 487 Cseq method is for the INVITE.</i></span></font></pre><pre><font color="#000000"><span style="white-space:pre-wrap"><i>on the reply i generate th Cseq method is CANCEL.</i></span></font></pre><pre><font color="#000000"><span style="white-space:pre-wrap"><i>any ideas?</i></span></font></pre><pre><font color="#000000"><span style="white-space:pre-wrap"><i>thanks,</i></span></font></pre><pre><font color="#000000"><span style="white-space:pre-wrap"><i>Uri</i></span></font></pre><pre><font color="#000000"><span style="white-space:pre-wrap"><i><br></i></span></font></pre><pre><font color="#000000"><span style="white-space:pre-wrap"><i><br></i></span></font></pre><pre><font color="#000000"><span style="white-space:pre-wrap"><i><br></i></span></font></pre><pre><font color="#000000"><span style="white-space:pre-wrap"><i><br></i></span></font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><i>
</i>>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.
>
>Have you tried to just send the 487 reply with send_reply()? Wasn't working?
>
>Cheers,
>Daniel</pre><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><pre style="white-space:pre-wrap;color:rgb(0,0,0)">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><br></div><div>Uri</div><div><br></div><div>.</div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 1, 2016 at 5:29 PM, Uri Shacked <span dir="ltr"><<a href="mailto:ushacked@gmail.com" target="_blank">ushacked@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Is i possible to control the to_tag when i send my own stateless reply from kamailio.</div><div><br></div><div>Thanks,</div><div>Uri</div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>