<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>What does the CLI show when you make the call? That might help in diagnosing<br>your problem.
<br><br>Flynn</blockquote><div><br><br>Hi Flynn <br><br>The situation looks like this:<br><br>&nbsp;exten =&gt; _0800X.,1,AGI(/usr/share/asterisk/agi-bin/checklimit.php|${CALLERIDNUM}|${CONTEXT})<br>&nbsp;exten =&gt; _0800X.,2,GotoIf($[${code} = 0 ]?0800-Calls|${EXTEN}|6:0800-Calls|${EXTEN}|3)
<br>&nbsp;exten =&gt; _0800X.,3,GotoIf($[${code} &gt; 0 &amp; ${code} &lt; 20 ]?announcement|s|1:0800-Calls|${EXTEN}|4)<br>&nbsp;exten =&gt; _0800X.,4,GotoIf($[${code} = 20 ]?announcement|s|4)<br>&nbsp;exten =&gt; _0800X.,6,Dial(Sip/${EXTEN}@ipfon
||L($[${limit}-1000]:60000:30000))<br>&nbsp;exten =&gt; _0800X.,7,Hangup()<br><br>&nbsp;exten =&gt; h,1,DeadAGI(/usr/share/asterisk/agi-bin/ending_call.php|${UNIQUEID})<br><br>&nbsp;&nbsp;&nbsp; -- SIP Seeding peer from astdb: '0327393001' at 0327393001@10.2.20.102
:5060 for 3600<br>&nbsp;&nbsp;&nbsp; -- Executing Goto(&quot;SIP/0327393001-ce12&quot;, &quot;0800-Calls|0800102102|1&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Goto (0800-Calls,0800102102,1)<br>&nbsp;&nbsp;&nbsp; -- Executing AGI(&quot;SIP/0327393001-ce12&quot;, &quot;/usr/share/asterisk/agi-bin/checklimit.php|0327393001|0800-Calls&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Launched AGI Script /usr/share/asterisk/agi-bin/checklimit.php<br>&nbsp;&nbsp;&nbsp; -- AGI Script /usr/share/asterisk/agi-bin/checklimit.php completed, returning 0<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf(&quot;SIP/0327393001-ce12&quot;, &quot;1?0800-Calls|0800102102|6:0800-Calls|0800102102|3&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Goto (0800-Calls,0800102102,6)<br>&nbsp;&nbsp;&nbsp; -- Executing Dial(&quot;SIP/0327393001-ce12&quot;, &quot;Sip/0800102102@ipfon||L(10000:60000:30000)&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Limit Data for this call:<br>&nbsp;&nbsp;&nbsp; -- - timelimit&nbsp;&nbsp;&nbsp;&nbsp; = 10000
<br>&nbsp;&nbsp;&nbsp; -- - play_warning&nbsp; = 0<br>&nbsp;&nbsp;&nbsp; -- - play_to_caller= yes<br>&nbsp;&nbsp;&nbsp; -- - play_to_callee= no<br>&nbsp;&nbsp;&nbsp; -- - warning_freq&nbsp; = 0<br>&nbsp;&nbsp;&nbsp; -- - start_sound&nbsp;&nbsp; =<br>&nbsp;&nbsp;&nbsp; -- - warning_sound = timeleft<br>&nbsp;&nbsp;&nbsp; -- - end_sound&nbsp;&nbsp;&nbsp;&nbsp; = beep
<br>&nbsp;&nbsp;&nbsp; -- Called 0800102102@ipfon<br>&nbsp;&nbsp;&nbsp; -- SIP/ipfon-2802 is ringing<br>&nbsp;&nbsp;&nbsp; -- SIP/ipfon-2802 is making progress passing it to SIP/0327393001-ce12<br>&nbsp;&nbsp;&nbsp; -- SIP/ipfon-2802 answered SIP/0327393001-ce12<br>&nbsp;&nbsp;&nbsp; -- SIP Seeding peer from astdb: '0327393001' at 
0327393001@10.2.20.102:5060 for 3600<br>&nbsp;&nbsp;&nbsp; <br>After 10 sec I hear beep and:<br>&nbsp;&nbsp; -- Playing 'beep' (language 'en')<br>&nbsp; <br>And that's it. The call is limitated but the h extension is not executed until I hang up manually.
<br><br><br><br><br></div><br></div><br>