<div dir="ltr">You can set variables in your agent contact:<div><br></div><div>&lt;agent name=&quot;1001@default&quot; type=&quot;callback&quot; contact=&quot;[origination_caller_id_name=&#39;Queue Caller&#39;,call_timeout=10]user/1001@default&quot; status=&quot;Available&quot; max-no-answer=&quot;3&quot; wrap-up-time=&quot;10&quot; reject-delay-time=&quot;10&quot; busy-delay-time=&quot;60&quot; /&gt;<br></div><div><br></div><div>And probably you can set variables to be expanded, in mod_callcenter.c I see</div><div><br></div><div>dialstr = switch_channel_expand_variables(member_channel, h-&gt;originate_string);</div><div><br></div><div>h-&gt;originate_string is the contact of the agent</div><div><br></div><div>So it&#39;ll probably work.</div><div><br></div><div>NOT TESTED!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 18, 2015 at 12:10 PM, Ali Jibran <span dir="ltr">&lt;<a href="mailto:ali.jibran44@gmail.com" target="_blank">ali.jibran44@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Didn&#39;t work :/<div><br></div><div>So there&#39;s no way I can export data to mod_<span></span>callcenter? <div><div class="h5"><br><br>On Wednesday, March 18, 2015, Ítalo Rossi &lt;<a href="mailto:italorossib@gmail.com" target="_blank">italorossib@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">using mod_callcenter? try setting cc_export_vars</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 18, 2015 at 9:47 AM, Ali Jibran <span dir="ltr">&lt;<a>ali.jibran44@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ok yeah :) thank you that worked.<div><br></div><div>One more thing. I can access the Header now in my dialplan. But I pass the call into call Center.</div><div>Now how do I pass the header into call Center so that it pops up to which ever agent picked it up.</div><div><br></div><div>Like</div><div>Web-&gt;fs-&gt;call center-&gt;agent</div><div><br></div><div>I can get the header to Freeswitch but it&#39;s not showing after the call is bridged to agent.</div><div>I tried sip_copy_custom_headers=true but it didn&#39;t work</div><div><div><div><br>On Wednesday, March 18, 2015, Ben Langfeld &lt;<a>ben@langfeld.co.uk</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Prefix the header with X-. Anything else is invalid.</div><div class="gmail_extra"><br><div class="gmail_quote">On 18 March 2015 at 07:51, Ali Jibran <span dir="ltr">&lt;<a>ali.jibran44@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all.<br>I make a call to FS callcenter using webRTC. Now I would like to add some additional data to the header. <br>That I did by using extraheaders. Now all that is good. I can see the custom header in the sip trace on freeswitch.<br><br>For e.g in sip.js I add:<div><div><div>var options = {</div><div>  extraHeaders: [ &#39;a: foo&#39; ]</div><div>};</div></div><br><br>on FS i get:<div><div> INVITE sip:900@anonymous.invalid SIP/2.0</div><div>   Via: SIP/2.0/WS 9jscv0q24s4m.invalid;branch=z9hG4bK1002472</div><div>   Max-Forwards: 70</div><div>   To: &lt;sip:900@anonymous.invalid&gt;</div><div>   From: &lt;sip:anonymous.hfsqa4@anonymous.invalid&gt;;tag=depmif1fo5</div><div>   Call-ID: l5pieavpjguoset7ugvd</div><div>   CSeq: 1458 INVITE</div><div>  <b> a: foo</b></div><div>   Contact: &lt;sip:8rgi365g@9jscv0q24s4m.invalid;transport=ws;ob&gt;</div><div>   Allow: ACK,CANCEL,BYE,OPTIONS,INVITE,MESSAGE</div><div>   Content-Type: application/sdp</div><div>   Contact: &lt;sip:8rgi365g@9jscv0q24s4m.invalid;transport=ws;ob&gt;</div><div>   Allow: ACK,CANCEL,BYE,OPTIONS,INVITE,MESSAGE</div><div>   Content-Type: application/sdp</div><div>   Supported: outbound</div><div>   User-Agent: SIP.js/0.5.0</div><div>   Content-Length: 3636</div></div></div><div><br></div><div>How do I access it in the dialplan? I tried ${sip_h_X-a} but it didnt&#39;t work. Help please?</div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a>consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a>FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</blockquote></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a>consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a>FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Ítalo Rossi<br></div></div>
</div>
</blockquote></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Ítalo Rossi<br></div></div>
</div>