<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> exten => _0800X.,1,AGI(/usr/share/asterisk/agi-bin/checklimit.php|${CALLERIDNUM}|${CONTEXT})<br> exten => _0800X.,2,GotoIf($[${code} = 0 ]?0800-Calls|${EXTEN}|6:0800-Calls|${EXTEN}|3)
<br> exten => _0800X.,3,GotoIf($[${code} > 0 & ${code} < 20 ]?announcement|s|1:0800-Calls|${EXTEN}|4)<br> exten => _0800X.,4,GotoIf($[${code} = 20 ]?announcement|s|4)<br> exten => _0800X.,6,Dial(Sip/${EXTEN}@ipfon
||L($[${limit}-1000]:60000:30000))<br> exten => _0800X.,7,Hangup()<br><br> exten => h,1,DeadAGI(/usr/share/asterisk/agi-bin/ending_call.php|${UNIQUEID})<br><br> -- SIP Seeding peer from astdb: '0327393001' at 0327393001@10.2.20.102
:5060 for 3600<br> -- Executing Goto("SIP/0327393001-ce12", "0800-Calls|0800102102|1") in new stack<br> -- Goto (0800-Calls,0800102102,1)<br> -- Executing AGI("SIP/0327393001-ce12", "/usr/share/asterisk/agi-bin/checklimit.php|0327393001|0800-Calls") in new stack
<br> -- Launched AGI Script /usr/share/asterisk/agi-bin/checklimit.php<br> -- AGI Script /usr/share/asterisk/agi-bin/checklimit.php completed, returning 0<br> -- Executing GotoIf("SIP/0327393001-ce12", "1?0800-Calls|0800102102|6:0800-Calls|0800102102|3") in new stack
<br> -- Goto (0800-Calls,0800102102,6)<br> -- Executing Dial("SIP/0327393001-ce12", "Sip/0800102102@ipfon||L(10000:60000:30000)") in new stack<br> -- Limit Data for this call:<br> -- - timelimit = 10000
<br> -- - play_warning = 0<br> -- - play_to_caller= yes<br> -- - play_to_callee= no<br> -- - warning_freq = 0<br> -- - start_sound =<br> -- - warning_sound = timeleft<br> -- - end_sound = beep
<br> -- Called 0800102102@ipfon<br> -- SIP/ipfon-2802 is ringing<br> -- SIP/ipfon-2802 is making progress passing it to SIP/0327393001-ce12<br> -- SIP/ipfon-2802 answered SIP/0327393001-ce12<br> -- SIP Seeding peer from astdb: '0327393001' at
0327393001@10.2.20.102:5060 for 3600<br> <br>After 10 sec I hear beep and:<br> -- Playing 'beep' (language 'en')<br> <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>