Check value of channel variable "remote_media_ip".

There are other channel variables that may help in cases like this: 
 #define SWITCH_R_SDP_VARIABLE "switch_r_sdp"

 #define SWITCH_REMOTE_MEDIA_IP_VARIABLE "remote_media_ip"
 #define SWITCH_REMOTE_MEDIA_PORT_VARIABLE "remote_media_port"
 #define SWITCH_REMOTE_VIDEO_IP_VARIABLE "remote_video_ip"
 #define SWITCH_REMOTE_VIDEO_PORT_VARIABLE "remote_video_port

See switch_types.h.




On Thu, Dec 2, 2021 at 9:20 PM Alexander Perkins <alexanderhenryperkins@gmail.com> wrote:
Hi All.  Is it possible to get the media IP from an invite?  We have a client that does not want to accept calls into his PBX if the media IP is not in the US.  Is this even possible?  If so, how?

Thank you,
Alex
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://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
https://freeswitch.com