[Asterisk-Users] AGI Scripts Terminate too Soon

Douglas Garstang dgarstang at oneeighty.com
Mon Feb 27 15:09:55 MST 2006


Just tried it. No difference.
Here's the console output when the callee hangs up:
*CLI> 
    -- Executing AGI("SIP/3254102-bb27", "ipt/iptrouter.py|FromOnNetPhone") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/ipt/iptrouter.py
    -- AGI Script Executing Application: (SetMusicOnHold) Options: (default)
    -- AGI Script Executing Application: (Dial) Options: (SIP/9220402|20|trg)
    -- Called 9220402
    -- SIP/9220402-ca1b is ringing
    -- SIP/9220402-ca1b answered SIP/3254102-bb27
    -- Attempting native bridge of SIP/3254102-bb27 and SIP/9220402-ca1b
1 (ANSWER)
    -- AGI Script ipt/iptrouter.py completed, returning 0
  == Auto fallthrough, channel 'SIP/3254102-bb27' status is 'ANSWER'

and here it is when the caller hangs up:
*CLI> 
    -- Executing AGI("SIP/3254102-0276", "ipt/iptrouter.py|FromOnNetPhone") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/ipt/iptrouter.py
    -- AGI Script Executing Application: (SetMusicOnHold) Options: (default)
    -- AGI Script Executing Application: (Dial) Options: (SIP/9220402|20|trg)
    -- Called 9220402
    -- SIP/9220402-af98 is ringing
    -- SIP/9220402-af98 answered SIP/3254102-0276
    -- Attempting native bridge of SIP/3254102-0276 and SIP/9220402-af98
  == Spawn extension (From_OneEighty, 9220402, 1) exited non-zero on 'SIP/3254102-0276'

as you can see, quite different....

-----Original Message-----
From: Roger Schreiter [mailto:roger at planinternet.de]
Sent: Monday, February 27, 2006 2:31 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] AGI Scripts Terminate too Soon


Douglas Garstang schrieb:
> ...
> HOWEVER, if the CALLER hangs up the call, it seems


Hi,

did you try the dial command option g?
I did not neither, but when I understand the voip-wiki right,
it might help you.


Roger.


Voip-wiki page about dial:
http://www.voip-info.org/wiki-Asterisk+cmd+Dial

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list