<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-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'>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> </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> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </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> </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> </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> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </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> </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> </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 <<a href="mailto:kchehab@icucall.com" target="_blank">kchehab@icucall.com</a>> 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 <<a href="mailto:shaheryarkh@googlemail.com" target="_blank">shaheryarkh@googlemail.com</a>><br>To: OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><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><<a href="mailto:kchehab@icucall.com" target="_blank">kchehab@icucall.com</a>>wrote: <br><br>> dears, <br>> <br>> the mediaproxy timeout didnt.suceed any more ideas? <br>> <br>> Regards <br>> <br>> Sent from my android device. <br>> <br>> <br>> <br>> -----Original Message----- <br>> From: "M.Khaled W Chehab" <<a href="mailto:kchehab@icucall.com" target="_blank">kchehab@icucall.com</a>> <br>> To: 'OpenSIPS users mailling list' <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>> <br>> Sent: Fri, 16 Nov <a href="tel:20125" target="_blank">2012 5</a>:18 PM <br>> Subject: Re: [OpenSIPS-Users] calls have max call duration <br>> <o:p></o:p></p></div><p class=MsoNormal>> Dears,**** <br>> <br>> ** ** <o:p></o:p></p><div><p class=MsoNormal>> <br>> Thanks for your kindly reply, and I will try to arrange my opensips <br>> configuration file and send it back if the media configuration didn’t <o:p></o:p></p></div><p class=MsoNormal>> solve this problem ,**** <o:p></o:p></p><div><p class=MsoNormal>> <br>> BTW I am using a mix between a residential and trunking script ,do you <br>> have a config tested having a permission ,routing dialplan module tested <o:p></o:p></p></div><p class=MsoNormal>> for small carrier level ,you can send me a copy of it .**** <br>> <br>> **** <br>> <br>> My old config mediaproxy was **** <br>> <br>> stream_timeout = 90**** <br>> <br>> on_hold_timeout = 3540**** <br>> <br>> so set it now to **** <br>> <br>> stream_timeout = 30**** <br>> <br>> on_hold_timeout = 600**** <br>> <br>> ** ** <o:p></o:p></p><div><p class=MsoNormal>> <br>> I will monitor it now and inform you about the result , but my question <o:p></o:p></p></div><p class=MsoNormal>> is ,is there a solution using signaling function I can implement ?**** <br>> <br>> ** ** <br>> <br>> ** ** <br>> <br>> Regards**** <br>> <br>> ** ** <br>> <br>> ** ** <br>> <br>> ** ** <br>> <br>> ** ** <br>> <br>> *From:* <a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a> [mailto: <br>> <a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>] *On Behalf Of *Muhammad Shahzad <br>> *Sent:* Friday, November 16, <a href="tel:20125" target="_blank">2012 5</a>:01 PM <br>> *To:* OpenSIPS users mailling list <br>> *Subject:* Re: [OpenSIPS-Users] calls have max call duration**** <br>> <br>> ** ** <o:p></o:p></p><div><p class=MsoNormal>> <br>> Your opensips config is pretty messed up and hard to read. So, while i try <br>> to read it to find the problem, as a workaround you should set RTP timeouts <o:p></o:p></p></div><p class=MsoNormal>> in your mediaproxy configuration file (i.e. config.ini), e.g.**** <br>> <br>> ** ** <br>> <br>> stream_timeout = 30**** <o:p></o:p></p><div><p class=MsoNormal>> <br>> on_hold_timeout = 1800 <br>> <br>> This will result in automatic call hangup if there is no media for at <br>> least 30 seconds. This will reduce wrong billing problem to 30 seconds, and <br>> your customer's balance will not be exhausted completely. Similarly if call <br>> is on hold for more then 30 minutes and no media is transferred during this <br>> time (not even music on hold) then call will hangup (change this timeout to <o:p></o:p></p></div><p class=MsoNormal>> whatever appropriate for you).**** <br>> <br>> ** ** <br>> <br>> Thank you.**** <br>> <br>> ** ** <o:p></o:p></p><div><p class=MsoNormal>> <br>> On Fri, Nov 16, 2012 at 2:13 PM, M.Khaled W Chehab <<a href="mailto:kchehab@icucall.com" target="_blank">kchehab@icucall.com</a>> <o:p></o:p></p></div><p class=MsoNormal>> wrote:**** <br>> <br>> Dears,**** <br>> <br>> **** <o:p></o:p></p><div><p class=MsoNormal>> <br>> How to drop the call when a cancel received from UA and a 200 OK from <br>> the trunk in the same second, note back the client cdr will be a canceled <br>> 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>> daialog timeout duration**** <br>> <br>> **** <o:p></o:p></p><div><p class=MsoNormal>> <br>> I am searching for a solution for this since two weeks as I tried all <o:p></o:p></p></div><p class=MsoNormal>> trick I know and all didn’t succeed ,**** <o:p></o:p></p><div><p class=MsoNormal>> <br>> Find attached the scenario I have problem with, which you can find it at <br>> wireshark time line (<a href="tel:30877027" target="_blank">30.877027</a>) the Client with IP ( <a href="http://74.114.101.170" target="_blank">74.114.101.170</a>) <br>> sends a cancel ,and the opensips version 1.8.2 server with IP <br>> <a href="http://89.207.133.144" target="_blank">89.207.133.144</a> send the client 200 canceling and in its terms forward <br>> 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>> wireshark time line the trunk sends a 200 OK then 487 request terminated <o:p></o:p></p></div><p class=MsoNormal>> and the billing stops from the trunk provider .**** <o:p></o:p></p><div><p class=MsoNormal>> <br>> 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>> and go for the max call duration in the dialog module .**** <o:p></o:p></p><div><p class=MsoNormal>> <br>> -how to let opensips cancel the call immediately and stop it with no <o:p></o:p></p></div><p class=MsoNormal>> billing .**** <br>> <br>> Please find attached my opensips.cfg configuration file **** <br>> <br>> **** <br>> <br>> Regards**** <br>> <br>> **** <br>> <br>> **** <br>> <br>> Khaled Chehab**** <br>> <br>> Senior NGN Engineer**** <br>> <br>> [image: Description: icucall]**** <br>> <br>> Operations Office - Lebanon**** <br>> <br>> Office : <a href="tel:+9611515155" target="_blank">+961 1 515155</a> ext 300**** <br>> <br>> Mobile : <a href="tel:+9613045212" target="_blank">+961 3 045212</a>**** <br>> <br>> E-mail : <a href="mailto:kchehab@icucall.com" target="_blank">kchehab@icucall.com</a>**** <br>> <br>> MSN ID :<a href="mailto:khalidchehab@hotmail.com" target="_blank">khalidchehab@hotmail.com</a> **** <br>> <br>> Skype : k_chehab **** <br>> <br>> Web Site: <a href="http://www.icucall.com" target="_blank">http://www.icucall.com</a>**** <br>> <br>> <a href="http://www.allohi.com" target="_blank">http://www.allohi.com</a>**** <br>> <br>> **** <o:p></o:p></p><div><p class=MsoNormal>> <br>> <br>> _______________________________________________ <br>> Users mailing list <br>> <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'>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>**** <br>> <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>