<div dir="ltr">You can set variables in your agent contact:<div><br></div><div><agent name="1001@default" type="callback" contact="[origination_caller_id_name='Queue Caller',call_timeout=10]user/1001@default" status="Available" max-no-answer="3" wrap-up-time="10" reject-delay-time="10" busy-delay-time="60" /><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->originate_string);</div><div><br></div><div>h->originate_string is the contact of the agent</div><div><br></div><div>So it'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"><<a href="mailto:ali.jibran44@gmail.com" target="_blank">ali.jibran44@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Didn't work :/<div><br></div><div>So there'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 <<a href="mailto:italorossib@gmail.com" target="_blank">italorossib@gmail.com</a>> 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"><<a>ali.jibran44@gmail.com</a>></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->fs->call center->agent</div><div><br></div><div>I can get the header to Freeswitch but it's not showing after the call is bridged to agent.</div><div>I tried sip_copy_custom_headers=true but it didn't work</div><div><div><div><br>On Wednesday, March 18, 2015, Ben Langfeld <<a>ben@langfeld.co.uk</a>> 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"><<a>ali.jibran44@gmail.com</a>></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: [ 'a: foo' ]</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: <sip:900@anonymous.invalid></div><div> From: <sip:anonymous.hfsqa4@anonymous.invalid>;tag=depmif1fo5</div><div> Call-ID: l5pieavpjguoset7ugvd</div><div> CSeq: 1458 INVITE</div><div> <b> a: foo</b></div><div> Contact: <sip:8rgi365g@9jscv0q24s4m.invalid;transport=ws;ob></div><div> Allow: ACK,CANCEL,BYE,OPTIONS,INVITE,MESSAGE</div><div> Content-Type: application/sdp</div><div> Contact: <sip:8rgi365g@9jscv0q24s4m.invalid;transport=ws;ob></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'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>