David,

if you do sofia status, does it show that you have a internal profile named whatever, bound to 172.16.110.6 port 5080 (or else).
Then, in conf/sip_profiles/, do you have a whatever.xml file, which includes whatever/*.xml ?
And in whatever/, is there a XML file defining your gateway GW with IP 10.71.3.100:5060 , that you use in your dialplan with something link:
bridge sofia/gateway/GW/22222222

I am pretty sure something is wrong in your configuration, like your GW.xml is in the wrong subdirectory (in external/ perhaps ?).

David Ponzone  Direction Technique
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26

Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.




Le 18 avr. 2017 à 20:53, David Villasmil <david.villasmil.work@gmail.com> a écrit :

Hello Brian,

I have 2 profiles, one on each ip. And the gw is configured on the private side...
On Tue, Apr 18, 2017 at 8:33 PM Brian West <brian@freeswitch.org> wrote:
Thats all going to depend on what you've setup on your sofia profile and where its bound.

/b


On Tue, Apr 18, 2017 at 11:55 AM, David Villasmil <david.villasmil.work@gmail.com> wrote:
Hello guys,

i've got this weird situation where I have multiple interfaces on my FS.
I have one default gateway with ip i.e. 1.2.3.245 and another with ip 172.16.110.6,
on my dialplan i'm sending the bridge to 10.71.3.100 which is supposed to go out via 172.16.110.6, but i see fs sending on the correct interface but with a wrong ip:


INVITE sip:2222222@10.71.3.100 SIP/2.0.
Via: SIP/2.0/UDP 1.2.3.245:5080;rport;branch=z9hG4bKXpZN0ZQQN6B9j.
Max-Forwards: 69.
From: "1111111" <sip:1111111@1.2.3.245>;tag=Zv4XUZNaDamHc.
Call-ID: 1eca3592-9ef9-1235-63ae-0026b955dc81.
CSeq: 105930868 INVITE.
Contact: <sip:gw+gw_int2expresso@1.2.3.245:5080;transport=udp;gw=gw_int2expresso>.
User-Agent: FreeSWITCH-mod_sofia/1.4.26+git~20160205T175853Z~ca9207aa32~64bit.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY.
Supported: timer, path, replaces.
Allow-Events: talk, hold, conference, refer.
Content-Type: application/sdp.
Content-Disposition: session.
Content-Length: 275.
X-cid: MGNiZjNlZTA1NmY0YThlNjAyZTZkNjNjN2NmYTViNTM..
X-FS-Support: update_display,send_info.
Remote-Party-ID: "1111111" <sip:1111111@1.2.3.245>;party=calling;screen=yes;privacy=off.


my routes:

root@HayoSW:~# ip route
default via 1.2.3.241 dev eth0  metric 100
10.10.0.0/24 dev eth0  proto kernel  scope link  src 10.10.0.112
10.71.0.0/24 via 172.16.110.5 dev eth1
172.16.110.4/30 dev eth1  proto kernel  scope link  src 172.16.110.6
1.2.3.240/29 dev eth0  proto kernel  scope link  src 1.2.3.245

Help is greatly appreciated!

Regards,

David Villasmil
ᐧ




--

Brian West
brian@freeswitch.org

Twitter: @FreeSWITCH , @briankwest

http://www.freeswitchbook.com 
http://www.freeswitchcookbook.com

Book a phone call (CST)

Allison prompts for FreeSWITCH:

https://www.gofundme.com/allison-prompts-for-freeswitch

Got Bugs? Report them here! | Reddit: /r/freeswitch

T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
Skype:briankwest

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.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
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.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
http://www.freeswitch.org