sip_nat.conf per network card. Possible?

garfield81

Joined
Jan 22, 2010
Messages
49
Likes
0
Points
0
#1
Ok so I have a elastix with two network cards. One of the nic cards is plugged into a sip provider with a public IP. The other is plugged into the local network with a private IP address. In elastix I have two sip trunks one coming from the sip provider over nic1 and the other coming over the internet over nic2. Since nic2 is a private IP I went into sip_nat.conf and configured the external IP and everything works fine.
A few days later the internet has a hiccup and goes down temporarily but now the incoming audio for the dedicated sip trunk also stops. So this makes me think that the audio to the dedicated sip trunk goes over nic1 with the public IP but sip_nat.conf tags the audio with the external data ip which makes the audio come back over nic2.
So my question is if sip_nat.conf can be configured per sip trunk and not as a global setting?
 

danardf

Joined
Dec 3, 2007
Messages
8,069
Likes
10
Points
88
#2
I think that no. But I could be wrong.
Maybe playing with route add, to add a static route to be sure that every call goes to the good way.
An idea like that. :huh:
 

garfield81

Joined
Jan 22, 2010
Messages
49
Likes
0
Points
0
#3
danardf: Thanks for the reply. Yes I have the routes added and the calls(audio) seems to be going out through the right interface but it's just the incoming audio that is channeled through the externip defined in sip_nat.conf
 

danardf

Joined
Dec 3, 2007
Messages
8,069
Likes
10
Points
88
#4
Do you have a qualify=yes into your trunk?
 

danardf

Joined
Dec 3, 2007
Messages
8,069
Likes
10
Points
88
#5

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,563
Latest member
dineshr
Top