This may work, only if you create dialog with &#39;B&#39; flag, also 3 seconds look very short, destination must be very quick to ACK the call.<div><br></div><div>I think there is a better way to achieve this, you only need to ensure CANCEL is received at destination.<br>

<div><br>Thank you.</div><div><br><br><div class="gmail_quote">On Tue, Feb 12, 2013 at 1:45 PM, M.Khaled W Chehab <span dir="ltr">&lt;<a href="mailto:kchehab@icucall.com" target="_blank">kchehab@icucall.com</a>&gt;</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">Hi ,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>

<p class="MsoNormal">I face a lot of scenarios where the customer send a cancel while the  trunk send 200 OK and start the billing from its side ,so the client call will be canceled from his side and goes to the max call duration from my side and trunk side .<u></u><u></u></p>

<p class="MsoNormal">Si I draw this function below <u></u><u></u></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">loadmodule &quot;dialog.so&quot;</span><u></u><u></u></p><p class="MsoNormal">

<span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">modparam(&quot;dialog&quot;, &quot;timeout_avp&quot;, &quot;$avp(timeout2)&quot;)<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="text-autospace:none">

<span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">if (has_totag()) {<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">              if ( is_method(&quot;INVITE&quot;)) {<u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">                     $avp(timeout2) = 3; <u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none">

<span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">              } else if (is_method(&quot;ACK&quot;)) {<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">                     $avp(timeout2) = 3540; <u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">              }<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Do this function effect on my calls or cause  any problem<u></u><u></u></p>

<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Regards<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></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@01CE092F.9E566CA0" alt="Description: icucall"><u></u><u></u></p>

<p class="MsoNormal">Operations Office - Lebanon<u></u><u></u></p><p class="MsoNormal">Office    : +961 1 515155 ext 300<u></u><u></u></p><p class="MsoNormal">Mobile  : +961 3 045212<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></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Muhammad Shahzad</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">------------------------------</span><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">-----</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">CISCO Rich Media Communication Specialist (CRMCS)</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">CISCO Certified Network Associate (CCNA)</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Cell: +49 176 99 83 10 85</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">MSN: </span><a href="mailto:shari_786pk@hotmail.com" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank">shari_786pk@hotmail.com</a><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Email: </span><a href="mailto:shaheryarkh@googlemail.com" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank">shaheryarkh@googlemail.com</a>
</div></div>