[Asterisk-Users] Call length limitation

Andrew Nowrot andrew.nowrot at gmail.com
Tue Jun 27 08:03:21 MST 2006


>
>
> What does the CLI show when you make the call? That might help in
> diagnosing
> your problem.
>
> Flynn



Hi Flynn

The situation looks like this:

 exten =>
_0800X.,1,AGI(/usr/share/asterisk/agi-bin/checklimit.php|${CALLERIDNUM}|${CONTEXT})
 exten => _0800X.,2,GotoIf($[${code} = 0
]?0800-Calls|${EXTEN}|6:0800-Calls|${EXTEN}|3)
 exten => _0800X.,3,GotoIf($[${code} > 0 & ${code} < 20
]?announcement|s|1:0800-Calls|${EXTEN}|4)
 exten => _0800X.,4,GotoIf($[${code} = 20 ]?announcement|s|4)
 exten => _0800X.,6,Dial(Sip/${EXTEN}@ipfon
||L($[${limit}-1000]:60000:30000))
 exten => _0800X.,7,Hangup()

 exten =>
h,1,DeadAGI(/usr/share/asterisk/agi-bin/ending_call.php|${UNIQUEID})

    -- SIP Seeding peer from astdb: '0327393001' at 0327393001 at 10.2.20.102:5060
for 3600
    -- Executing Goto("SIP/0327393001-ce12", "0800-Calls|0800102102|1") in
new stack
    -- Goto (0800-Calls,0800102102,1)
    -- Executing AGI("SIP/0327393001-ce12",
"/usr/share/asterisk/agi-bin/checklimit.php|0327393001|0800-Calls") in new
stack
    -- Launched AGI Script /usr/share/asterisk/agi-bin/checklimit.php
    -- AGI Script /usr/share/asterisk/agi-bin/checklimit.php completed,
returning 0
    -- Executing GotoIf("SIP/0327393001-ce12",
"1?0800-Calls|0800102102|6:0800-Calls|0800102102|3") in new stack
    -- Goto (0800-Calls,0800102102,6)
    -- Executing Dial("SIP/0327393001-ce12",
"Sip/0800102102 at ipfon||L(10000:60000:30000)")
in new stack
    -- Limit Data for this call:
    -- - timelimit     = 10000
    -- - play_warning  = 0
    -- - play_to_caller= yes
    -- - play_to_callee= no
    -- - warning_freq  = 0
    -- - start_sound   =
    -- - warning_sound = timeleft
    -- - end_sound     = beep
    -- Called 0800102102 at ipfon
    -- SIP/ipfon-2802 is ringing
    -- SIP/ipfon-2802 is making progress passing it to SIP/0327393001-ce12
    -- SIP/ipfon-2802 answered SIP/0327393001-ce12
    -- SIP Seeding peer from astdb: '0327393001' at 0327393001 at 10.2.20.102:5060
for 3600

After 10 sec I hear beep and:
   -- Playing 'beep' (language 'en')

And that's it. The call is limitated but the h extension is not executed
until I hang up manually.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060627/ee08a7c4/attachment.htm


More information about the asterisk-users mailing list