[asterisk-users] Howto get origin IP address from SIP call reliably

Roger Schreiter roger at planinternet.de
Fri Oct 19 05:23:44 CDT 2007


Hi,

incoming SIP calls have a channel name in the form of:
SIP/<ip-adresss-of-peer>-<handle>

This is a way to get fetch the IP address of the remote side
of a SIP call - in most cases.

However, sometimes, instead of the IP address, there is a host
name in the channel name. I assume, this value in the channel name
is not the real IP address, but just a field filled in by the
remote SIP client. Thus, this is not a reliable way to check the
origin of a SIP call.

What is a reliable way to read the real IP address of the origin
of a SIP call?


Regards,
Roger.




More information about the asterisk-users mailing list