<p>Interestiong - how would you do this? I thought macros on the queue command were only for 1.6.</p><p>l.<br></p><p></p><br><div class="gmail_quote">2009/2/18 Danny Nicholas <span dir="ltr"><<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="blue">
<div>
<p><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Put this snippet in a macro and call the
macro. That way the data lives for the duration of the incoming call.</span></font></p>
<p><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>
<div>
<div align="center" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">
<hr size="2" width="100%" align="center">
</span></font></div>
<p><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b><span style="font-weight:bold">On Behalf Of </span></b>Lenz Emilitri<br>
<b><span style="font-weight:bold">Sent:</span></b> Wednesday, February 18, 2009
3:05 AM<br>
<b><span style="font-weight:bold">To:</span></b> Asterisk
Users Mailing List - Non-Commercial Discussion<br>
<b><span style="font-weight:bold">Subject:</span></b> [asterisk-users] Setting
SIP header on agent calls made by a queue</span></font></p>
</div><div><div class="Wj3C7c">
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Hello
list,</span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">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. <br clear="all">
</span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">If I use
the following code:</span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">exten
=> s,n,SIPAddHeader(X-Unique-ID: ${UNIQUEID})<br>
exten => s,n,Queue(myQueue)</span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">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. </span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">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. </span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">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.</span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> Any
suggestion but patching the source?</span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">l.</span></font></p>
<p style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
<p style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
-- <br>
Loway - home of QueueMetrics - <a href="http://queuemetrics.com" target="_blank">http://queuemetrics.com</a></span></font></p>
</div></div></div>
</div>
<br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Loway - home of QueueMetrics - <a href="http://queuemetrics.com">http://queuemetrics.com</a><br>
<br>