[asterisk-users] Dialplan - working out when users answer

Satish Barot satish4asterisk at gmail.com
Mon Jan 7 06:59:33 CST 2013


HI Andrew,
Show your queuecontrol context. You should have  extension s with priority
1 in this context.
--Satish Barot


On Mon, Jan 7, 2013 at 12:08 PM, Andrew White <andrew at computersforall.com.au
> wrote:

>  Hi Satish,****
>
> ** **
>
> Thanks for your response – sorry on the slow reply.****
>
> ** **
>
> So I’ve tried the following in the dialplan:****
>
> ** **
>
> exten =>
> direct,n,Dial(${QUEUEEXTS},${RINGTIME},U(queueControl,direct^CONNECTED))**
> **
>
> ** **
>
> This has a very strange behavior – the NoOp that is in
> queueControl,direct,n(CONNECTED) does not show up, however I get the
> following:****
>
> ** **
>
> *[2013-01-07 17:31:39] ERROR[19135]: app_stack.c:420 gosub_exec: Attempt
> to reach a non-existent destination for gosub: (Context:queueControl,
> Extension:s, Priority:1)*
>
> ** **
>
> I’ve also tried with a macro:****
>
> ** **
>
> exten => direct,n,Dial(${QUEUEEXTS},${RINGTIME},M(inboundconnected))****
>
> [macro-inboundconnected]****
>
> exten => s,1,NoOp(Inbound connected!)****
>
> ** **
>
> It definitely seems like it’s being called, but again no NoOp:****
>
> ** **
>
> *    -- Executing [direct at queueControl:11] Dial("SIP/1000-000047f1",
> "SIP/1000,20,M(inboundconnected)") in new stack*
>
> * *
>
> I would expect some kind of error if I was doing this wrong – have I
> missed something?****
>
> ** **
>
> Thanks for your or anyone elses help in advance!****
>
> ** **
>
> Andrew****
>
> * *
>
>
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
> *Subject:* Re: [asterisk-users] Dialplan - working out when users answer**
> **
>
> ** **
>
> On Wed, Dec 19, 2012 at 12:44 PM, Andrew White <
> andrew at 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****
>
>  ****
>
>   ****
>
>
> *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****
>
>
>  ****
>
> On Wed, Dec 19, 2012 at 10:53 AM, Andrew White <
> andrew at 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****
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130107/d43f8731/attachment.htm>


More information about the asterisk-users mailing list