Getting IP from connection information is totally wrong, because this parameter keeps media server IP and it can be different from Invite sender. You can take a look RFC 3261 for headers' area of usages.
________________________________ From: ikuzar RABE <[email protected]> To: [email protected] Sent: Thursday, January 24, 2013 12:27 AM Subject: [Sip-implementors] retrieve sender IP address Hi all, I 'd like to retrieve IP address of INVITE sender. Today I retrieve it from Contact header field. But is it a good idea ? What about retrieving it from Message Body (from creator/owner (o) or connection information (c) ) ? thanks for your help _______________________________________________ Sip-implementors mailing list [email protected] https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors _______________________________________________ Sip-implementors mailing list [email protected] https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
