[Asterisk-Users] Agent Callback,
how to "see" wath queue is calling the agent?
Massimo Nuvoli
massimo at archivio.it
Fri May 26 05:57:27 MST 2006
Massimo Nuvoli ha scritto:
> Kevin P. Fleming ha scritto:
>> Kyle Sexton wrote:
>>> Could you just set the variable in the part of the dialplan where they
>>> enter
>>> the queue and then reference it here?
>> Yes, that is the way to do this. Set a variable in the dialplan before
>> putting the _caller_ into the queue, and prefix the variable with at
>> least one underscore ('_'). This will cause the variable to be inherited
>> into the channel that is created to dial the queue member (agent).
> Sorry! when i read about the "channel variable" i forgot to check this
> "_"... :-( i am sorry....
> Please wait until i made some test, if it is working i post my
> configuration here. :-)
when the channel is received:
exten => 123456789,n,SetVar(__CODA=coda1)
(note: TWO underscore "__" and not ONE)
in the callback:
exten => _6XXX,n,UserEvent(FOP_Popup|URL:
/cmgr/api/popup?e=${EXTEN:1}&cid=${CALLERIDNUM}&q=${CODA})
now is working!
Thnks to everyone helped me!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060526/639a96f8/signature.pgp
More information about the asterisk-users
mailing list