Your opensips config is pretty messed up and hard to read. So, while i try to read it to find the problem, as a workaround you should set RTP timeouts in your mediaproxy configuration file (i.e. config.ini), e.g.<div><br></div>
<div>stream_timeout = 30<br><div>on_hold_timeout = 1800<br><br>This will result in automatic call hangup if there is no media for at least 30 seconds. This will reduce wrong billing problem to 30 seconds, and your customer's balance will not be exhausted completely. Similarly if call is on hold for more then 30 minutes and no media is transferred during this time (not even music on hold) then call will hangup (change this timeout to whatever appropriate for you).</div>
<div><br></div><div>Thank you.</div><div><br><br><div class="gmail_quote">On Fri, Nov 16, 2012 at 2:13 PM, M.Khaled W Chehab <span dir="ltr"><<a href="mailto:kchehab@icucall.com" target="_blank">kchehab@icucall.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style>Dears,<u></u><u></u></span></p><p class="MsoNormal">
<span style><u></u> <u></u></span></p><p class="MsoNormal"><span style>How to drop the call when a cancel received from UA and a 200 OK from the trunk in the same second, note back the client cdr will be a canceled call and the trunk cdr will be 1 sec duration but on my cdr its the max daialog timeout duration<u></u><u></u></span></p>
<p class="MsoNormal"><span style><u></u> <u></u></span></p><p class="MsoNormal"><span style>I am searching for a solution for this since two weeks as I tried all trick I know and all didn’t succeed ,<u></u><u></u></span></p>
<p class="MsoNormal"><span style>Find attached the scenario I have problem with, which you can find it at wireshark time line (30.877027) the Client with IP ( 74.114.101.170) sends a cancel ,and the opensips version 1.8.2 server with IP 89.207.133.144 send the client 200 canceling and in its terms forward the cancel to the trunk provider with IP 74.114.101.190 ,but at 31.015333 wireshark time line the trunk sends a 200 OK then 487 request terminated and the billing stops from the trunk provider .<u></u><u></u></span></p>
<p class="MsoNormal"><span style>The problem is my opensips with IP 89.207.133.144 didn’t hangup the call and go for the max call duration in the dialog module .<u></u><u></u></span></p><p class="MsoNormal"><span style>-how to let opensips cancel the call immediately and stop it with no billing .<u></u><u></u></span></p>
<p class="MsoNormal"><span style>Please find attached my opensips.cfg configuration file <u></u><u></u></span></p><p class="MsoNormal"><span style><u></u> <u></u></span></p><p class="MsoNormal"><span style>Regards<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Khaled Chehab<u></u><u></u></p><p class="MsoNormal">Senior NGN Engineer<u></u><u></u></p><p class="MsoNormal"><img width="117" height="75" src="cid:image001.png@01CDBDB4.4B6537E0" alt="Description: icucall"><u></u><u></u></p>
<p class="MsoNormal">Operations Office - Lebanon<u></u><u></u></p><p class="MsoNormal">Office : <a href="tel:%2B961%201%20515155%20ext%20300" value="+9611515155" target="_blank">+961 1 515155 ext 300</a><u></u><u></u></p>
<p class="MsoNormal">Mobile : <a href="tel:%2B961%203%20045212" value="+9613045212" target="_blank">+961 3 045212</a><u></u><u></u></p><p class="MsoNormal">E-mail : <a href="mailto:kchehab@icucall.com" target="_blank">kchehab@icucall.com</a><u></u><u></u></p>
<p class="MsoNormal">MSN ID :<a href="mailto:khalidchehab@hotmail.com" target="_blank">khalidchehab@hotmail.com</a> <u></u><u></u></p><p class="MsoNormal">Skype : k_chehab <u></u><u></u></p><p class="MsoNormal">Web Site: <a href="http://www.icucall.com" target="_blank">http://www.icucall.com</a><u></u><u></u></p>
<p class="MsoNormal"> <a href="http://www.allohi.com" target="_blank">http://www.allohi.com</a><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Muhammad Shahzad<br>-----------------------------------<br>CISCO Rich Media Communication Specialist (CRMCS)<br>CISCO Certified Network Associate (CCNA)<br>
Cell: +49 176 99 83 10 85<br>MSN: <a href="mailto:shari_786pk@hotmail.com" target="_blank">shari_786pk@hotmail.com</a><br>Email: <a href="mailto:shaheryarkh@googlemail.com" target="_blank">shaheryarkh@googlemail.com</a><br>
</div></div>