[Freeswitch-users] Get caller IP address

Brian West brian at freeswitch.org
Tue Dec 16 17:17:56 MSK 2014


network_addr variable will have the real IP in it.

On Tue, Dec 16, 2014 at 7:06 AM, Sergey Okhapkin <sos at 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 at 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 at 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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141216/218e18b7/attachment.html 


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