[Asterisk-Users] AGI nor System working after a dial - Should it work?

Moises Silva moises.silva at gmail.com
Sat Aug 27 07:39:16 MST 2005


I guess you need to use DeadAGI(), please check it out on voip-info.org

best regards

On 8/25/05, Patrick Tracanelli <eksffa at freebsdbrasil.com.br> wrote:
> Patrick Tracanelli wrote:
> >
> > Hello List,
> >
> > This is my first message herein. I was playing around with System() and
> > AGI() and found out something I cound not determine my configuration
> > error. I added before.agi and after.agi to the agi-bin dir. Tried to
> > make before.agi get run before the dial call and after.agi be run after.
> > Only the first priority (step 1) gets executed. Here follows some
> > relevant part of the tests:
> >
> > On extensions.conf
> >
> > exten => _17XXXXXXXX,1,AGI(before.agi)
> > exten => _17XXXXXXXX,2,dial(SIP/${EXTEN}@sip.freebsdbrasil.com.br,20)
> > exten => _17XXXXXXXX,3,AGI(after.agi)
> >
> > Debugging output:
> >
> >  -- Registered to '200.97.22.28', who sees us as 201.17.196.94:4569
> >     -- Executing AGI("SIP/freebsdbrasil-9f33", "before.agi") in new stack
> >     -- Launched AGI Script /usr/local/share/asterisk/agi-bin/before.agi
> >     -- AGI Script before.agi completed, returning 0
> >     -- Executing Dial("SIP/freebsdbrasil-9f33",
> > "SIP/1733426117 at sip.freebsdbrasil.com.br|20") in new stack
> >     -- Called 1733426117 at sip.freebsdbrasil.com.br
> >     -- SIP/sip.freebsdbrasil.com.br-20cd is ringing
> >     -- SIP/sip.freebsdbrasil.com.br-20cd answered SIP/freebsdbrasil-9f33
> >     -- Attempting native bridge of SIP/freebsdbrasil-9f33 and
> > SIP/sip.freebsdbrasil.com.br-20cd
> >   == Spawn extension (sip, 1733426117, 2) exited non-zero on
> > 'SIP/freebsdbrasil-9f33'
> >
> > before.agi gets executed, Asterisk dials the given extension, the whole
> > conversation works out perfectly, but after.agi never gets executed...
> >
> > I tried with System() before trying AGI(). The behaviour was exactly the
> > same.
> >
> > Any suggestions?
> >
> 
> Complementing.
> 
> I just tried adding "g" (go) on step 2 to check if asterisk keeps
> processng throught the exten prios (up to 3), but the behavior did not
> change... it never runs the second AGI.
> 
> --
> Patrick Tracanelli
> 
> FreeBSD Brasil LTDA.
> (31) 3281-9633 / 3281-3547
> sip://316601@sip.freebsdbrasil.com.br
> http://www.freebsdbrasil.com.br
> "Long live Hanin Elias, Kim Deal!"
> 
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
> 
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 


-- 
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"



More information about the asterisk-users mailing list