<div dir="ltr"><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Hi,</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">I managed to drop and block the 200 with t_suspend (for the first reply) and with dropping as well for the re-transmissions (thanks alex).</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Now, as expected, asterisk re-transmit the 200 (and I keep on dropping it...). <span style="font-family:arial,sans-serif">And, after 30 seconds approximately, asterisk sends bye. I guess because it didn't receive the ACK.</span></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">So, <span style="font-family:arial,sans-serif">the main problem, </span><span style="font-family:arial,sans-serif">because I don't like to make changes in the asterisk core, is to send an ACK from kamailio using the UAC module.</span></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">As I mentioned before, there is a problem with this ACK - I can't set the to_tag in the request.</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Any ideas?</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Thank,</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Uri</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><div class="gmail_extra"><div class="gmail_quote">On Fri, Feb 19, 2016 at 2:27 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>thanks for the quick response.</div><div>regarding to the 200 drop, it is less of an issue. i actually tried t_drop_replies() on the reply_route.</div><div>it works only on failure_route. </div><div>but, didn't try another on_reply route and drop. i will try. thanks.</div><div><br></div><div>still, daniel is right, the main problem is the ACK.</div><div>as i wrote, i use uac_req_send() to try and send the asterisk a fake ACK.</div><div><br></div><div>i enter the following:</div><div><br></div><div><div>$uac_req(method)="ACK";</div><div>$uac_req(ruri)= "exten@asterisk:5080";</div><div>$uac_req(furi)="<a href="mailto:from@caller.com" target="_blank">from@caller.com</a>";</div><div>$uac_req(turi)="exten@asterisk:5080" + ";" + "saved_to_tag"</div><div>$uac_req(callid)=$dlg(callid);</div><div>uac_req_send();</div></div><div><br></div><div>the problem is that the actual ACK sent, is malformed in the TO header.</div><div><br></div><div>it is populated as <exten@asterisk:5080;to_tag></div><div>instead of <exten@asterisk:5080>;to_tag</div><div><br></div><div>what do you think?</div><div><br></div><div>thanks,</div><div>uri</div><div><br></div><div><br></div><div><br></div><div><br></div><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:12.8px">Hello,</span><span class=""><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">On 18/02/16 20:35, Uri Shacked wrote:</span><br style="font-size:12.8px"><span style="font-size:12.8px">> Hi,</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><br style="font-size:12.8px"><span style="font-size:12.8px">> for some strange reason, ask my regulator.... i need to manipulate</span><br style="font-size:12.8px"><span style="font-size:12.8px">> certain calls.</span><br style="font-size:12.8px"><span style="font-size:12.8px">> the scenario goes like this:</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><br style="font-size:12.8px"><span style="font-size:12.8px">> 1. caller sends invite to kamailio.</span><br style="font-size:12.8px"><span style="font-size:12.8px">> 2. kamailio transfer the call to asterisk.</span><br style="font-size:12.8px"><span style="font-size:12.8px">> 3. asterisk send progress and play "hello".</span><br style="font-size:12.8px"><span style="font-size:12.8px">> 4. asterisk creates a new call (dial) to the same kamailio with</span><br style="font-size:12.8px"><span style="font-size:12.8px">> destination callee.</span><br style="font-size:12.8px"><span style="font-size:12.8px">> 5. the callee answers the call.</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><br style="font-size:12.8px"><span style="font-size:12.8px">> here, i need to block the 200ok. so that the caller does not receive it.</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><br style="font-size:12.8px"><span style="font-size:12.8px">> i managed to block it with t_suspend().</span><br style="font-size:12.8px"><span style="font-size:12.8px">> but, there is no bidirectional media.</span><br style="font-size:12.8px"><span style="font-size:12.8px">> the 183 progress was sent with sendreceive.</span><br style="font-size:12.8px"><span style="font-size:12.8px">> it seems the asterisk is waiting for the ACK in order to open both</span><br style="font-size:12.8px"><span style="font-size:12.8px">> ways for media.</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><br style="font-size:12.8px"><span style="font-size:12.8px">> i tried to use uac_send_req() but it is being sent with no to tag. and</span><br style="font-size:12.8px"><span style="font-size:12.8px">> when i try manipulating the uac_req(turi) it does not help because it</span><br style="font-size:12.8px"><span style="font-size:12.8px">> takes all the string i entered and wraps it with <>.</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><br style="font-size:12.8px"><span style="font-size:12.8px">> any ideas?</span><br style="font-size:12.8px"><span style="font-size:12.8px">></span><br style="font-size:12.8px"></span><span style="font-size:12.8px">But if asterisk is waiting for ACK, that is not going to happen if you</span><br style="font-size:12.8px"><span style="font-size:12.8px">drop the 200ok.</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">Maybe Asterisk is waiting for PRACK following the 183, can you check the</span><br style="font-size:12.8px"><span style="font-size:12.8px">Requires header in 183?</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">While 200ok can be dropped by having a reply_route with drop for 200ok,</span><br style="font-size:12.8px"><span style="font-size:12.8px">it doesn't feel like it is solving what you are looking for.</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">Cheers,</span><br style="font-size:12.8px"><span style="font-size:12.8px">Daniel</span><br>
</blockquote></div><br></div></div>
</blockquote></div><br></div></div>