[Freeswitch-users] Add new headers with APIs

Sayyed Mohammad Emami Razavi emamirazavi at gmail.com
Mon Dec 23 10:44:39 MSK 2013


Hello Alex,
I used your guide in my lua script but in tcpdump and fs_cli, i can find no
new headers set.
This is my lua code:

#!/usr/bin/lua
require("ESL")
local command = 'originate
{ignore_early_media=true,originate_timeout=60}user/1000 at 192.168.1.5&playback(/usr/local/freeswitch/scripts/HelloWorld.wav)';
local args = table.concat({}, " ");
local con = ESL.ESLconnection("localhost", "8021", "ClueCon");
con:execute("set", "sip_h_X-Token=abc123");
con:execute("set", "X-Token=abc123");
con:execute("set", "<![CDATA[sip_h_P-Charge-Info=<sip:${caller_id_number}@
${domain_name}>;npi=0;noa=3]]>");
local e = con:bgapi(command, args);
print(e:getBody());

Can you help me more?!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131223/75df0a3e/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list