[asterisk-users] Passive wait in dialplan?
Sammy Govind
govoiper at gmail.com
Wed Oct 5 05:41:51 CDT 2011
Can you please explain what you are trying to do? What I've perceived from
this thread is that you want to put call on hold (passively as in no
resources usage) and then on the base of some User's input from UI proceed
with the call accordingly !!
On Wed, Oct 5, 2011 at 3:33 PM, Yaroslav Panych <panych.y at gmail.com> wrote:
> I don't know much about queues, but if channel enter into queue it
> should not change its state. I.e. not answer, no moh, no interacting
> with user input(DTMF). Less I use unknown helpers, better my
> configuration is.
> Second issue which can appear using queues - its async state. User can
> issue 2 serial commands, and I should have synchronisation tools. In
> dialplan I using UserEvent application - which issues event in AMI,
> with given data headers. Queue - is there any possibility to customise
> queue join(or like) AMI event? Without patches(I already have made
> some patches to core and wrote additional module to make * work as I
> require).
>
>
> 2011/10/5 Nasir Iqbal <nasir at ictinnovations.com>:
> > What about waiting in "queues"?
> > Nasir Iqbal
> >
> > ICT Innovations
> > http://www.ictinnovations.com/
> >
> >
> >
> > On Wed, Oct 5, 2011 at 1:35 PM, Yaroslav Panych <panych.y at gmail.com>
> wrote:
> >>
> >> Hello, everyone
> >>
> >> Here part of my dialplan context
> >> [globals]
> >> CMD_NOOP=0
> >> CMD_DOSTUFF1=1
> >> CMD_DOSTUFF2=2
> >> CMD_DOSTUFF3=2
> >>
> >> [blah-context]
> >> same => n,Set(COMMAND=${CMD_NOOP})
> >> same => n,UserEvent(blah-event,CHANNEL:${CHANNEL(name)}
> >> same =>
> >>
> n(COMMAND_SWITCH),GoToIf($["${COMMAND}"="${CMD_DOSTUFF1}"]?LBL_DO_STUFF1)
> >> same => n,GoToIf($["${COMMAND}"="${CMD_DOSTUFF2}"]?LBL_DO_STUFF2)
> >> same => n,GoToIf($["${COMMAND}"="${CMD_DOSTUFF3}"]?LBL_DO_STUFF3)
> >> same => n,Wait(0.2)
> >> same => n,GoTo(COMMAND_SWITCH)
> >> same => n,NoOp(--- NOT REACHED ---)
> >>
> >> UserEvent sends blah-event via AMI to high-level UI, user makes
> >> decision and issues some command via Action:SetVar, then dialplan
> >> continues to work.
> >>
> >> The problem is, in dialplan there is an active wait loop, i.e. waiting
> >> mechanism which rapidly checks some var(consuming processor resources
> >> and flooding logs). Is it possible to create passive waiting loop
> >> within current abilities of Asterisk 1.8?
> >>
> >> regards, Yaroslav
> >>
> >> --
> >> _____________________________________________________________________
> >> -- 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
> >
>
> --
> _____________________________________________________________________
> -- 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111005/e08b36eb/attachment.htm>
More information about the asterisk-users
mailing list