<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=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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";}
h1
        {mso-style-priority:9;
        mso-style-link:"Heading 1 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:24.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.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.hoenzb
        {mso-style-name:hoenzb;}
span.Heading1Char
        {mso-style-name:"Heading 1 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 1";
        font-family:"Cambria","serif";
        color:#365F91;
        font-weight:bold;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@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'>+1 Bryant &#8211; by using the Local/Context you are introducing some overhead to the process, but eliminating the dependence on DAHDI timing (not that there&#8217;s anything wrong with that per se, but you can&#8217;t control the Space Shuttle with a Bearcat Scanner (or can you?) ).<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"'> asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>Bryant Zimmerman<br><b>Sent:</b> Thursday, November 03, 2011 8:25 AM<br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b> Re: [asterisk-users] duration limits in Dial() not being enforced at correct time<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>If you dial to a Local/Context and use your time limits on that and then do your dial to your DAHDI device&nbsp;inside that context&nbsp;does that have any effect on the time limits working. We have used time limits with Local/Context dials and had them work with out any known issues. <o:p></o:p></span></p><div id=divSignature><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Thanks<br><br>Bryant&nbsp;Zimmerman<o:p></o:p></span></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><o:p>&nbsp;</o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><hr size=2 width="100%" align=center></span></div><p class=MsoNormal style='margin-bottom:12.0pt'><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"'>: &quot;amit anand&quot; &lt;<a href="mailto:onewaytoconnect@gmail.com">onewaytoconnect@gmail.com</a>&gt;<br><b>Sent</b>: Thursday, November 03, 2011 9:18 AM<br><b>To</b>: &quot;Asterisk Users Mailing List - Non-Commercial Discussion&quot; &lt;<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>&gt;<br><b>Subject</b>: Re: [asterisk-users] duration limits in Dial() not being enforced at correct time</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><br><br><br><o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>On Thu, Nov 3, 2011 at 18:44, Danny Nicholas &lt;<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>&gt; wrote:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Please elaborate on your &quot;flavor&quot; of DAHDI and LIBPRI and what type of DAHDI<br>service you are using (PSTN, T1, etc). &nbsp;Speaking from a POTS line point of<br>view, there can easily be a 7-10 second delay in the processing of DAHDI<br>information (which would make your 1347 second call within tolerance).<br><br>-----Original Message-----<br>From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of Kingsley Tart<br>Sent: Thursday, November 03, 2011 5:11 AM<br>To: Asterisk Users Mailing List - Non-Commercial Discussion<br>Subject: [asterisk-users] duration limits in Dial() not being enforced at<br>correct time<br><br>Hi,<br><br>We're trying to time-limit some calls by specifying L(x:y:z) as an option to<br>the Dial command.<br><br>If we set the limit to a fairly short duration (eg 120 seconds) then<br>Asterisk seems to issue the hangup at about the right time.<br><br>However, for longish calls we're seeing quite a bit of overspill. For<br>example we tried to limit one to 1338 seconds but Asterisk didn't hang up<br>until 1384 seconds after the call was answered.<br><br>Also, the error is not always consistent - a second test call also limited<br>to 1338 seconds was hung up by Asterisk after 1347 seconds.<br><br>We saw this problem with Asterisk 1.6 but we've now tried on Asterisk<br>1.8.6.0 and are having the same problem.<br><br>Here's a log from the Asterisk 1.8.6.0 box for the test call that should<br>have been limited to 1338 seconds but was actually ended after 1384 seconds.<br>The server wasn't carrying any other calls at the time or doing anything<br>else so the load would have been very low.<br><br>[Nov &nbsp;2 16:47:37] VERBOSE[2029] pbx.c: &nbsp; &nbsp; -- Executing<br>[01476292501@service_nts_v2:57] Dial(&quot;DAHDI/i2/7622323283-4&quot;,<br>&quot;DAHDI/g1/08451238347,,L(1338000:30000:5000)M(service-nts-v2-register-answer<br>)&quot;) in new stack<br>[Nov &nbsp;2 16:47:37] VERBOSE[2029] features.c: &nbsp; &nbsp; &nbsp; &nbsp;&gt; Limit Data for this<br>call:<br>[Nov &nbsp;2 16:47:37] VERBOSE[2029] features.c: &nbsp; &nbsp; &nbsp; &nbsp;&gt; timelimit &nbsp; &nbsp; &nbsp;=<br>1338000 ms (1338.000 s)<br>[Nov &nbsp;2 16:47:37] VERBOSE[2029] features.c: &nbsp; &nbsp; &nbsp; &nbsp;&gt; play_warning &nbsp; = 30000<br>ms (30.000 s)<br>[Nov &nbsp;2 16:47:37] VERBOSE[2029] features.c: &nbsp; &nbsp; &nbsp; &nbsp;&gt; play_to_caller = yes<br>[Nov &nbsp;2 16:47:37] VERBOSE[2029] features.c: &nbsp; &nbsp; &nbsp; &nbsp;&gt; play_to_callee = no<br>[Nov &nbsp;2 16:47:37] VERBOSE[2029] features.c: &nbsp; &nbsp; &nbsp; &nbsp;&gt; warning_freq &nbsp; = 5000<br>ms (5.000 s)<br>[Nov &nbsp;2 16:47:37] VERBOSE[2029] features.c: &nbsp; &nbsp; &nbsp; &nbsp;&gt; start_sound &nbsp; &nbsp;=<br>[Nov &nbsp;2 16:47:37] VERBOSE[2029] features.c: &nbsp; &nbsp; &nbsp; &nbsp;&gt; warning_sound &nbsp;=<br>/var/lib/asterisk/sounds/bespoke/beep_200ms<br>[Nov &nbsp;2 16:47:37] VERBOSE[2029] features.c: &nbsp; &nbsp; &nbsp; &nbsp;&gt; end_sound &nbsp; &nbsp; &nbsp;=<br>[Nov &nbsp;2 16:47:37] VERBOSE[2029] sig_pri.c: &nbsp; &nbsp; -- Requested transfer<br>capability: 0x00 - SPEECH<br>[Nov &nbsp;2 16:47:37] VERBOSE[2029] app_dial.c: &nbsp; &nbsp; -- Called<br>DAHDI/g1/08451238347<br>[Nov &nbsp;2 16:47:37] VERBOSE[2029] app_dial.c: &nbsp; &nbsp; -- DAHDI/i1/08451238347-3 is<br>proceeding passing it to DAHDI/i2/7622323283-4<br>[Nov &nbsp;2 16:47:37] VERBOSE[2029] app_dial.c: &nbsp; &nbsp; -- DAHDI/i1/08451238347-3 is<br>ringing<br>[Nov &nbsp;2 16:47:38] VERBOSE[2029] app_dial.c: &nbsp; &nbsp; -- DAHDI/i1/08451238347-3<br>answered DAHDI/i2/7622323283-4<br>[Nov &nbsp;2 16:47:38] VERBOSE[2029] pbx.c: &nbsp; &nbsp; -- Executing<br>[s@macro-service-nts-v2-register-answer:1] NoOp(&quot;DAHDI/i1/08451238347-3&quot;,<br>&quot;ANSWER MACRO&quot;) in new stack<br>[Nov &nbsp;2 16:47:38] VERBOSE[2029] pbx.c: &nbsp; &nbsp; -- Executing<br>[s@macro-service-nts-v2-register-answer:2] AGI(&quot;DAHDI/i1/08451238347-3&quot;,<br>&quot;agi://<a href="http://127.0.0.1:4573/ServiceNTSV2,mode=answered,uniqueID=1320252457.17_1,uniqueIDB=1320252457.18,ddi=08451238347,Goto=agiOK1" target="_blank">127.0.0.1:4573/ServiceNTSV2,mode=answered,uniqueID=1320252457.17_1,un<br>iqueIDB=1320252457.18,ddi=08451238347,Goto=agiOK1</a>&quot;) in new stack<br>[Nov &nbsp;2 16:47:39] VERBOSE[2029] res_agi.c: &nbsp; &nbsp; -- AGI Script Executing<br>Application: (Goto) Options: (agiOK1)<br>[Nov &nbsp;2 16:47:39] VERBOSE[2029] pbx.c: &nbsp; &nbsp; -- Goto<br>(macro-service-nts-v2-register-answer,s,7)<br>[Nov &nbsp;2 16:47:39] VERBOSE[2029] res_agi.c: &nbsp; &nbsp; --<br>&lt;DAHDI/i1/08451238347-3&gt;AGI Script agi://<a href="http://127.0.0.1:4573/ServiceNTSV2" target="_blank">127.0.0.1:4573/ServiceNTSV2</a><br>completed, returning 0<br>[Nov &nbsp;2 16:47:39] VERBOSE[2029] pbx.c: &nbsp; &nbsp; -- Executing<br>[s@macro-service-nts-v2-register-answer:7] GotoIf(&quot;DAHDI/i1/08451238347-3&quot;,<br>&quot;1?agiOK2&quot;) in new stack<br>[Nov &nbsp;2 16:47:39] VERBOSE[2029] pbx.c: &nbsp; &nbsp; -- Goto<br>(macro-service-nts-v2-register-answer,s,13)<br>[Nov &nbsp;2 16:47:39] VERBOSE[2029] pbx.c: &nbsp; &nbsp; -- Executing<br>[s@macro-service-nts-v2-register-answer:13] NoOp(&quot;DAHDI/i1/08451238347-3&quot;,<br>&quot;register-answer macro finished&quot;) in new stack<br>[Nov &nbsp;2 16:47:39] VERBOSE[2029] chan_dahdi.c: &nbsp; &nbsp; -- Native bridging<br>DAHDI/i2/7622323283-4 and DAHDI/i1/08451238347-3<br>[Nov &nbsp;2 17:10:42] VERBOSE[2029] pbx.c: &nbsp; &nbsp; -- Executing [h@service_nts_v2:1]<br>NoOp(&quot;DAHDI/i2/7622323283-4&quot;, &quot;number HANGING UP ...<br>CHANNEL=DAHDI/i2/7622323283-4, channel1=1320252457.17_1, channel2=,<br>HANGUPCAUSE=16, UNIQUEID=1320252457.17&quot;) in new stack<br><br>Is this a known problem and are there any workarounds?<br><br>--<br>Cheers,<br>Kingsley.<br><span style='color:#888888'><br><br><span class=hoenzb>--</span><br><span class=hoenzb>_____________________________________________________________________</span><br><span class=hoenzb>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --</span><br><span class=hoenzb>New to Asterisk? Join us for a live introductory webinar every Thurs:</span><br><span class=hoenzb>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a></span><br><br><span class=hoenzb>asterisk-users mailing list</span><br><span class=hoenzb>To UNSUBSCRIBE or update options visit:</span><br><span class=hoenzb>&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></span><br><br><br><span class=hoenzb>--</span><br><span class=hoenzb>_____________________________________________________________________</span><br><span class=hoenzb>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --</span><br><span class=hoenzb>New to Asterisk? Join us for a live introductory webinar every Thurs:</span><br><span class=hoenzb>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a></span><br><br><span class=hoenzb>asterisk-users mailing list</span><br><span class=hoenzb>To UNSUBSCRIBE or update options visit:</span><br><span class=hoenzb>&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></span></span><o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><br><br><br>Hi you can use Absoulte timeout to set the time limit feature for the channel<br clear=all><o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>-- <o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Amit Anand<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Arial","sans-serif"'>+91 9818559898</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p></div></body></html>