Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Getting the Media IP


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
alexanderhenryperkins ...
Guest





PostPosted: Thu Dec 02, 2021 3:39 pm    Post subject: [Freeswitch-users] Getting the Media IP Reply with quote

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
Back to top
dragos at freeswitch.org
Guest





PostPosted: Fri Dec 03, 2021 3:20 am    Post subject: [Freeswitch-users] Getting the Media IP Reply with quote

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 (alexanderhenryperkins@gmail.com)> wrote:

Quote:
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 (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 (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
Back to top
Antony.Stone at freesw...
Guest





PostPosted: Fri Dec 03, 2021 9:58 am    Post subject: [Freeswitch-users] Getting the Media IP Reply with quote

On Thursday 02 December 2021 at 20:19:47, Alexander Perkins wrote:

Quote:
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?

https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables

variable_remote_media_ip ?


Antony.

--
The difference between theory and practice is that in theory there is no
difference, whereas in practice there is.

Please reply to the list;
please *don't* CC me.

_________________________________________________________________________

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
Back to top
dujinfang at gmail.com
Guest





PostPosted: Sat Dec 04, 2021 8:37 pm    Post subject: [Freeswitch-users] Getting the Media IP Reply with quote

you can get the entire sdp in channel var

On Fri, Dec 3, 2021 at 4:27 AM Alexander Perkins <alexanderhenryperkins@gmail.com (alexanderhenryperkins@gmail.com)> wrote:

Quote:
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 (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 (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



--
About: http://about.me/dujinfang
Blog: http://www.dujinfang.com
Proj:  http://www.freeswitch.org.cn
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services