[asterisk-users] Right timing for a queue call
Andrea Spadaccini
a.spadaccini at mediatechnologies.it
Thu Jan 3 19:12:45 CST 2008
Ciao Atis,
> > Do you think that it's a good idea? How can it be implemented? I see that
> > uniqueid changes for each call in the scenario that I described, so I'm a
> > bit stuck.
> >
> > I'm using asterisk 1.2.2x (I know that I should migrate.. This is the last
> > release of our product that uses 1.2).
>
> You can set some inheritable variable to uniqueid of channel before
> entering queue, and then in answer-macro (Dial(..,..,M()) set the CDR
> userfield to that variable. This would require use of Agent or Local
> channel, so you can do custom Dial for queue member. Works for me.
Thanks for your answer.
It didn't seem to work for me, as I already tried it.
Before calling the Queue app I set a variable to uniqueid, and then in the
context called from the Queue app I tried accessing it and it doesn't work.
I don't have the code right here (I'm at home), but it was something like
queues.conf
[somequeue]
member => Local/211 at somecontext
...
..
extensions.conf
[queue-caller]
exten => s,1,Set(TEST=a)
exten => s,n,Queue(various args)
[somecontext]
exten => 211,1,NoOP(${TEST})
exten => 211,n,Dial(SIP/211)
And then NoOp prints nothing.
Maybe I made some mistakes in the syntax (it's 2 AM here, and I'm just back
home), but I think that the concept is right.
Is this the same kind of setup that you have? Does it work for you?
Can you post some simplified working code?
Thanks in advance! :)
--
Dott. Andrea Spadaccini
Multimedia Technologies Institute s.r.l.
More information about the asterisk-users
mailing list