[asterisk-users] Setting SIP header on agent calls made by a queue

Lenz Emilitri lenz.loway at gmail.com
Wed Feb 18 03:04:40 CST 2009


Hello list,

I am trying to set a custom SIP header on all calls that are made by the app
queue because I want to track a certain state at the SIP level.

If I use the following code:

exten => s,n,SIPAddHeader(X-Unique-ID: ${UNIQUEID})
exten => s,n,Queue(myQueue)

this works fine for the FIRST call made from the queue to an agent; but if
that call does not go through, it's not repeated on subsequent calls.

I know I could use Local channels as members of the queue, but I was
wondering if ther was something more general and that worked whatever your
channel configuration might be.

I also tried exporting the variable by setting the URL field of the queue()
call, but it is not shown in the resulting SIP dialog.

 Any suggestion but patching the source?

l.




-- 
Loway - home of QueueMetrics - http://queuemetrics.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090218/80bd27e6/attachment.htm 


More information about the asterisk-users mailing list