Iif you're just forwarding to another destination, you'd better let the destination answer the call, instead of you answering _after_ bridging it:

 <condition field="network_addr" expression="^xx\.yy\.zz\.tt$">  <-- As Ciprian pointed out, using the IP is not always a good idea. Are you also using ACL?
        <action application="set" data="ringback=...."/>
        <action application="pre_answer" data=""/>
        <action application="bridge" data="{...}sofia/external/${destination_number}@$${OTHER_PROVIDER}"/>
        <action application="answer" data=""/>  <--- shouldn't be here, you're answering the call after you've transferred it.
        <action application="hangup" data=""/>
 </condition>


You're also not using a gateway, but an IP address, instead create a gateway and use it like so:

<action application="bridge" data="{...}sofia/gateway/[your-gateway]/${destination_number}"/>

About the media, according to Brian:

bypass_media=false

Does nothing.
 
proxy_media=false

Does nothing. 

But that was in regards to t.38, so...

Regards,

David Villasmil
phone: +34669448337


On Fri, Nov 29, 2019 at 11:03 PM Ciprian Dosoftei <ciprian.dosoftei@gmail.com> wrote:
1- is this the right way?

It really depends on your circumstances and the use case, so it's difficult to tell. Also, the network address criteria may not be as stable as expected, perhaps another variable is better suited for that condition.
 
2- when i do like this, do RTP packages go over my server?

In most circumstances, the RTP will flow through your server indeed.
 
3- what should i do, just to transfer signalling, not to transfer media over my server?

Check bypass_media and/or bypass_media_after_bridge: https://freeswitch.org/confluence/display/FREESWITCH/Variables+Master+List#VariablesMasterList-bypass_media
_________________________________________________________________________

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