<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Kindly note that I can still find Calls have the same problem (max dialog timeout  duration and the call capture mark to be a canceled call )with a label in dialog module while the call is not hanged by system  ( confirmed  but not ACK),as for the avp queries in my script you can delete any AVP you want in order to make a scope on this hitch in order to  run a script without this problem<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Regards<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> users-bounces@lists.opensips.org [mailto:users-bounces@lists.opensips.org] <b>On Behalf Of </b>M.Khaled W Chehab<br><b>Sent:</b> Monday, November 19, 2012 12:04 PM<br><b>To:</b> 'OpenSIPS users mailling list'<br><b>Subject:</b> Re: [OpenSIPS-Users] calls have max call duration<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks I found it <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Regards<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> users-bounces@lists.opensips.org [mailto:users-bounces@lists.opensips.org] <b>On Behalf Of </b>M.Khaled W Chehab<br><b>Sent:</b> Monday, November 19, 2012 11:35 AM<br><b>To:</b> 'OpenSIPS users mailling list'<br><b>Subject:</b> Re: [OpenSIPS-Users] calls have max call duration<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Mohammad,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>There is no file attached ,kindly can you resend it .<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Regards<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Khaled<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> users-bounces@lists.opensips.org [mailto:users-bounces@lists.opensips.org] <b>On Behalf Of </b>Muhammad Shahzad<br><b>Sent:</b> Sunday, November 18, 2012 9:38 PM<br><b>To:</b> OpenSIPS users mailling list<br><b>Subject:</b> Re: [OpenSIPS-Users] calls have max call duration<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Just send you modified configuration file in private email. Hope this works.<br><br>Let me know if you need any further assistance.<br><br>Thank you.<o:p></o:p></p><div><p class=MsoNormal>On Sun, Nov 18, 2012 at 4:54 PM, M. KHaled W. Chehab &lt;<a href="mailto:kchehab@icucall.com" target="_blank">kchehab@icucall.com</a>&gt; wrote:<o:p></o:p></p><div><p>Thank Mohammad,<o:p></o:p></p><p>really appriciated.<br>waiting your script.<o:p></o:p></p><p>khaled chehab<o:p></o:p></p><div><p><span style='color:#888888'>Sent from my android device.</span><o:p></o:p></p><p class=MsoNormal><br><br>-----Original Message-----<o:p></o:p></p></div><div><p class=MsoNormal>From: Muhammad Shahzad &lt;<a href="mailto:shaheryarkh@googlemail.com" target="_blank">shaheryarkh@googlemail.com</a>&gt;<br>To: OpenSIPS users mailling list &lt;<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>&gt;<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Sent: Sun, 18 Nov 2012 4:45 PM<br>Subject: Re: [OpenSIPS-Users] calls have max call duration<o:p></o:p></p></div></div><div><p class=MsoNormal>humm, how can this be? It always works. Something is really weird going on <br>in your opensips configuration. <br><br>OK, let me prepare an alternative configuration for you and send you in 2-3 <br>hours. <br><br>BTW, you can call me Muhammad. <br><br>Thank you. <br><br><br>On Sun, Nov 18, 2012 at 12:34 AM, M. KHaled W. Chehab <br>&lt;<a href="mailto:kchehab@icucall.com" target="_blank">kchehab@icucall.com</a>&gt;wrote: <br><br>&gt; dears, <br>&gt; <br>&gt; the mediaproxy timeout didnt.suceed any more ideas? <br>&gt; <br>&gt; Regards <br>&gt; <br>&gt; Sent from my android device. <br>&gt; <br>&gt; <br>&gt; <br>&gt; -----Original Message----- <br>&gt; From: &quot;M.Khaled W Chehab&quot; &lt;<a href="mailto:kchehab@icucall.com" target="_blank">kchehab@icucall.com</a>&gt; <br>&gt; To: 'OpenSIPS users mailling list' &lt;<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>&gt; <br>&gt; Sent: Fri, 16 Nov <a href="tel:20125" target="_blank">2012 5</a>:18 PM <br>&gt; Subject: Re: [OpenSIPS-Users] calls have max call duration <br>&gt; <o:p></o:p></p></div><p class=MsoNormal>&gt; Dears,**** <br>&gt; <br>&gt; ** ** <o:p></o:p></p><div><p class=MsoNormal>&gt; <br>&gt; Thanks for your kindly reply, and I will try to arrange my opensips <br>&gt; configuration file&nbsp; and send it back if the media configuration didn’t <o:p></o:p></p></div><p class=MsoNormal>&gt; solve this problem&nbsp; ,**** <o:p></o:p></p><div><p class=MsoNormal>&gt; <br>&gt; BTW I am using&nbsp; a mix between a residential and trunking script&nbsp; ,do you <br>&gt; have a config tested&nbsp; having a permission ,routing&nbsp; dialplan&nbsp; module tested <o:p></o:p></p></div><p class=MsoNormal>&gt;&nbsp; for small carrier level ,you can send me a copy of it&nbsp; .**** <br>&gt; <br>&gt; **** <br>&gt; <br>&gt; My old config mediaproxy was **** <br>&gt; <br>&gt; stream_timeout = 90**** <br>&gt; <br>&gt; on_hold_timeout = 3540**** <br>&gt; <br>&gt; so set it now to **** <br>&gt; <br>&gt; stream_timeout = 30**** <br>&gt; <br>&gt; on_hold_timeout = 600**** <br>&gt; <br>&gt; ** ** <o:p></o:p></p><div><p class=MsoNormal>&gt; <br>&gt; I will&nbsp; monitor it now&nbsp; and inform you about the result , but my question <o:p></o:p></p></div><p class=MsoNormal>&gt; is ,is there a solution using signaling&nbsp; function I can implement ?**** <br>&gt; <br>&gt; ** ** <br>&gt; <br>&gt; ** ** <br>&gt; <br>&gt; Regards**** <br>&gt; <br>&gt; ** ** <br>&gt; <br>&gt; ** ** <br>&gt; <br>&gt; ** ** <br>&gt; <br>&gt; ** ** <br>&gt; <br>&gt; *From:* <a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a> [mailto: <br>&gt; <a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>] *On Behalf Of *Muhammad Shahzad <br>&gt; *Sent:* Friday, November 16, <a href="tel:20125" target="_blank">2012 5</a>:01 PM <br>&gt; *To:* OpenSIPS users mailling list <br>&gt; *Subject:* Re: [OpenSIPS-Users] calls have max call duration**** <br>&gt; <br>&gt; ** ** <o:p></o:p></p><div><p class=MsoNormal>&gt; <br>&gt; Your opensips config is pretty messed up and hard to read. So, while i try <br>&gt; to read it to find the problem, as a workaround you should set RTP timeouts <o:p></o:p></p></div><p class=MsoNormal>&gt; in your mediaproxy configuration file (i.e. config.ini), e.g.**** <br>&gt; <br>&gt; ** ** <br>&gt; <br>&gt; stream_timeout = 30**** <o:p></o:p></p><div><p class=MsoNormal>&gt; <br>&gt; on_hold_timeout = 1800 <br>&gt; <br>&gt; This will result in automatic call hangup if there is no media for at <br>&gt; least 30 seconds. This will reduce wrong billing problem to 30 seconds, and <br>&gt; your customer's balance will not be exhausted completely. Similarly if call <br>&gt; is on hold for more then 30 minutes and no media is transferred during this <br>&gt; time (not even music on hold) then call will hangup (change this timeout to <o:p></o:p></p></div><p class=MsoNormal>&gt; whatever appropriate for you).**** <br>&gt; <br>&gt; ** ** <br>&gt; <br>&gt; Thank you.**** <br>&gt; <br>&gt; ** ** <o:p></o:p></p><div><p class=MsoNormal>&gt; <br>&gt; On Fri, Nov 16, 2012 at 2:13 PM, M.Khaled W Chehab &lt;<a href="mailto:kchehab@icucall.com" target="_blank">kchehab@icucall.com</a>&gt; <o:p></o:p></p></div><p class=MsoNormal>&gt; wrote:**** <br>&gt; <br>&gt; Dears,**** <br>&gt; <br>&gt;&nbsp; **** <o:p></o:p></p><div><p class=MsoNormal>&gt; <br>&gt; How to drop&nbsp; the call&nbsp; when a cancel received from UA and a 200 OK from <br>&gt; the trunk in the same second, note back the client cdr will be a canceled <br>&gt; call and the trunk cdr will be 1 sec duration but on my cdr its the max <o:p></o:p></p></div><p class=MsoNormal>&gt; daialog&nbsp; timeout duration**** <br>&gt; <br>&gt;&nbsp; **** <o:p></o:p></p><div><p class=MsoNormal>&gt; <br>&gt; I am searching for a&nbsp; solution for this since two weeks as I tried all <o:p></o:p></p></div><p class=MsoNormal>&gt; trick I know and all didn’t succeed ,**** <o:p></o:p></p><div><p class=MsoNormal>&gt; <br>&gt; Find attached the scenario I have problem with, which you can find it at <br>&gt;&nbsp; wireshark time line (<a href="tel:30877027" target="_blank">30.877027</a>)&nbsp; the Client with IP ( <a href="http://74.114.101.170" target="_blank">74.114.101.170</a>) <br>&gt; sends&nbsp; a cancel ,and the opensips version 1.8.2&nbsp; server with IP <br>&gt; <a href="http://89.207.133.144" target="_blank">89.207.133.144</a>&nbsp;&nbsp; send the client 200 canceling and&nbsp; in its terms forward <br>&gt; the cancel to the trunk provider with IP <a href="http://74.114.101.190" target="_blank">74.114.101.190</a> ,but at <a href="tel:31015333" target="_blank">31.015333</a> <br>&gt; wireshark time line the trunk sends a 200 OK&nbsp; then 487 request terminated <o:p></o:p></p></div><p class=MsoNormal>&gt;&nbsp; and the billing stops from the trunk provider&nbsp; .**** <o:p></o:p></p><div><p class=MsoNormal>&gt; <br>&gt; The problem is my opensips with IP <a href="http://89.207.133.144" target="_blank">89.207.133.144</a> didn’t hangup the call <o:p></o:p></p></div><p class=MsoNormal>&gt; and go for the max call duration in the dialog module .**** <o:p></o:p></p><div><p class=MsoNormal>&gt; <br>&gt; -how to let opensips cancel the call immediately&nbsp; and stop it with no <o:p></o:p></p></div><p class=MsoNormal>&gt; billing .**** <br>&gt; <br>&gt; Please find attached my opensips.cfg configuration file **** <br>&gt; <br>&gt;&nbsp; **** <br>&gt; <br>&gt; Regards**** <br>&gt; <br>&gt;&nbsp; **** <br>&gt; <br>&gt;&nbsp; **** <br>&gt; <br>&gt; Khaled Chehab**** <br>&gt; <br>&gt; Senior NGN Engineer**** <br>&gt; <br>&gt; [image: Description: icucall]**** <br>&gt; <br>&gt; Operations Office - Lebanon**** <br>&gt; <br>&gt; Office&nbsp;&nbsp;&nbsp; : <a href="tel:+9611515155" target="_blank">+961 1 515155</a> ext 300**** <br>&gt; <br>&gt; Mobile&nbsp; : <a href="tel:+9613045212" target="_blank">+961 3 045212</a>**** <br>&gt; <br>&gt; E-mail&nbsp;&nbsp;&nbsp; : <a href="mailto:kchehab@icucall.com" target="_blank">kchehab@icucall.com</a>**** <br>&gt; <br>&gt; MSN ID :<a href="mailto:khalidchehab@hotmail.com" target="_blank">khalidchehab@hotmail.com</a> **** <br>&gt; <br>&gt; Skype&nbsp;&nbsp;&nbsp; : k_chehab **** <br>&gt; <br>&gt; Web Site: <a href="http://www.icucall.com" target="_blank">http://www.icucall.com</a>**** <br>&gt; <br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.allohi.com" target="_blank">http://www.allohi.com</a>**** <br>&gt; <br>&gt;&nbsp; **** <o:p></o:p></p><div><p class=MsoNormal>&gt; <br>&gt; <br>&gt; _______________________________________________ <br>&gt; Users mailing list <br>&gt; <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>**** <br>&gt; <o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><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><o:p></o:p></p></div><p class=MsoNormal><br><br clear=all><br>-- <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><o:p></o:p></p></div></body></html>