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

Andrew White andrew at computersforall.com.au
Wed Dec 19 01:14:47 CST 2012


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!

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-bounces at lists.digium.com<mailto:asterisk-users-bounces at lists.digium.com> [mailto:asterisk-users-bounces at 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 <andrew at computersforall.com.au<mailto: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/20121219/c4b90fc1/attachment.htm>


More information about the asterisk-users mailing list