On Wed, Dec 19, 2012 at 12:44 PM, Andrew White < and...@computersforall.com.au> wrote:
> Hi Satish/list,**** > > ** ** > > Looks like I spoke to soon.**** > > ** ** > > I have the following in my dialplan:**** > > ** ** > > *Dial(${QUEUEEXTS},${RINGTIME},U(queueControl^direct^CONNECTED))* > > ** ** > > And after confirming with a “dialplan show” it was definitely in there, I > continued to get this:**** > > ** ** > > *ERROR[28167]: app_stack.c:420 gosub_exec: Attempt to reach a > non-existent destination for gosub: (Context:queueControl, Extension:s, > Priority:1)* > > * * > > I can’t quite work out why it would be trying to s/1 instead of > direct/CONNECTED =/.**** > > ** ** > > Any ideas?**** > > ** ** > > Thanks! > In your case, direct and CONNECTED have to be arguments and not the extension and priority value respectively. Calling Subroutine from dial will always start execution with extension s and priority 1. See the link for more information, Arguments are passed to subroutine using ^ as a delimiter. --Satish Barot > **** > > ** ** > > *From:* Andrew White > *Sent:* Wednesday, 19 December 2012 5:58 PM > > *To:* Asterisk Users Mailing List - Non-Commercial Discussion > *Subject:* RE: [asterisk-users] Dialplan - working out when users answer** > ** > > ** ** > > Thanks Satish, fantastic advice. I didn’t even think to look into the dial > options – doh!**** > > ** ** > > Thanks very much,**** > > ** ** > > Andrew**** > > ** ** > > *From:* asterisk-users-boun...@lists.digium.com [ > mailto:asterisk-users-boun...@lists.digium.com<asterisk-users-boun...@lists.digium.com>] > *On Behalf Of *Satish Barot > *Sent:* Wednesday, 19 December 2012 4:40 PM > *To:* Asterisk Users Mailing List - Non-Commercial Discussion > *Subject:* Re: [asterisk-users] Dialplan - working out when users answer** > ** > > ** ** > > On Wed, Dec 19, 2012 at 10:53 AM, Andrew White < > and...@computersforall.com.au> wrote:**** > > Hey guys,**** > > **** > > I’ve got a part of my dialplan that dials multiple people:**** > > **** > > *exten => direct,n,Dial(${QUEUEEXTS},${RINGTIME}) > > *Multiple extensions are in the ${QUEUEEXTS} from an external script – > e.g. SIP/100&SIP/101&SIP/105 etc**** > > **** > > This works great, however I want to see if I can find a way to work out > (and run an AGI script) when the call is picked up by someone.**** > > **** > > Thanks all!**** > > **** > > Option M or U of Dial application would help you do this.**** > > https://wiki.asterisk.org/wiki/display/AST/Application_Dial.**** > > ** ** > > --Satish Barot**** > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users