[Freeswitch-users] Add new headers with APIs
Sayyed Mohammad Emami Razavi
emamirazavi at gmail.com
Mon Dec 23 11:35:04 MSK 2013
Thanks Yossi and Alex, problem was resolved with your useful guides.
For other ways in setting sip headers, i will ask other questions,
Thanks again,
#!/usr/bin/lua
require("ESL")
command = 'originate
{sip_h_X-varA=111,sip_h_X-varB=222,ignore_early_media=true,originate_timeout=60}user/
1000 at 192.168.1.5&playback(/usr/local/freeswitch/scripts/ZamanakSoundLogo.wav)';
...
bash# ./makecall.lua
and tcpdump shows to me:
....
11:57:55.204690 IP 192.168.1.5.sip > 192.168.1.2.53194: SIP, length: 1126
......."_<.'..E...Xv.. at ................n.4INVITE sip:1000 at 192.168.1.2:53194;ob
SIP/2.0
Via: SIP/2.0/UDP 192.168.1.5;rport;branch=z9hG4bKpHZgXQtQgHQKK
Max-Forwards: 70
From: "" <sip:0000000000 at 192.168.1.5>;tag=e2yg1t6gc5t4N
To: <sip:1000 at 192.168.1.2:53194;ob>
Call-ID: f67f2b26-e64e-1231-348c-002170ca8788
CSeq: 53557573 INVITE
Contact: <sip:mod_sofia at 192.168.1.5:5060>
User-Agent: FreeSWITCH-mod_sofia/1.2.10
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER,
REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, precondition, path, replaces
Allow-Events: talk, hold, conference, presence, dialog, line-seize,
call-info, sla, include-session-description, presence.winfo,
message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 205
X-varA: 111
X-varB: 222
X-FS-Support: update_display,send_info
Remote-Party-ID: <sip:0000000000 at 192.168.1.5
>;party=calling;screen=yes;privacy=off
....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131223/9eb6e147/attachment.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list