Hi, How can i get the caller IP from session? In sip trace I've: Call-ID: 7XHCXNSJABE2NGOBAHSXRZIGPA@1.2.3.4 i want to get the IP 1.2.3.4 i my Lua script, anyone knows how? Thanks, Snabel
Don't relay on Call-ID header, it may but may not contain IP address. In many cases it could contain internal IP address of NATed client. Many SIP clients do not include IP address to call-id. On Tuesday 16 December 2014 14:57:14 Snabel Kabiya wrote:
Hi,
How can i get the caller IP from session?
In sip trace I've:
Call-ID: 7XHCXNSJABE2NGOBAHSXRZIGPA@1.2.3.4
i want to get the IP 1.2.3.4 i my Lua script, anyone knows how?
Thanks, Snabel
network_addr variable will have the real IP in it. On Tue, Dec 16, 2014 at 7:06 AM, Sergey Okhapkin <sos@sokhapkin.dyndns.org> wrote:
Don't relay on Call-ID header, it may but may not contain IP address. In many cases it could contain internal IP address of NATed client. Many SIP clients do not include IP address to call-id.
On Tuesday 16 December 2014 14:57:14 Snabel Kabiya wrote:
Hi,
How can i get the caller IP from session?
In sip trace I've:
Call-ID: 7XHCXNSJABE2NGOBAHSXRZIGPA@1.2.3.4
i want to get the IP 1.2.3.4 i my Lua script, anyone knows how?
Thanks, Snabel
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
participants (3)
-
Brian West
-
Sergey Okhapkin
-
Snabel Kabiya