Hi,
The GoSub() application is intended for use in the dialplan, not to call
it from a Originate Action. What is your specific need? You can
Originate to a extension instead of an application an then if you need
to execute a subroutine, you can use GoSub() and Return() then you need
to on the called context.
You can check
http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Gosub but the
example using the same context is not very clear.
A better example would be this:
[incoming]
exten => s,1,Answer()
exten => s,n,Noop(one)
exten => s,n,Noop(two)
exten => s,n,GoSub(mysub,s,1)
exten => s,n,Noop(I returned!)
exten => s,n,Hangup
[mysub]
exten => s,1,Noop(So I'm at a subroutine)
exten => s,n,Noop(I need to do special steps)
exten => s,n,Playback(tt-monkeys)
exten => s,n,Return()
Cheers,
--
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center
Anahi Ludueña escribió:
Thanks Miguel, It was my mistake.
So, my question is:
if I want to call the GoSub application from the Originate Action
(using AMI), what I need to put in the context parameter? The GoSub
will jump to a special context.
Thanks,
------------------------------------------------------------------------
Date: Wed, 16 Sep 2009 09:34:31 -0500
From: mmol...@millenium.com.co
To: asterisk-...@lists.digium.com; asterisk-users@lists.digium.com
Subject: Re: [asterisk-dev] MeetMe in Macro
Hi,
I didn't notice on my first answer, but we are on the -dev list and
this is not related to asterisk code developing. I will answer you on
the -users list, so we can continue the discussion there.
Cheers,
--
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users