Page 1 of 1

question regarding the externip under sip.conf

PostPosted: Wed Jul 30, 2014 5:03 pm
by sarxiejr
I just want to know if its possible to set two different extern public ip in the externip under /etc/asterisk/sip.conf configuration
because were planning to set our wan connection into dhcp of the dialer..

this is our network topology

modem >> router (support dual wan) >> firewall >> dialer >> switch >> station

also is there any script or anything that will you suggest to automatically obtain wan connection in the vicidial settings..

Re: question regarding the externip under sip.conf

PostPosted: Thu Jul 31, 2014 3:25 am
by geoff3dmg
You can only have one externip setting. If this needs to change you either need to write a script to update it and reload the sip config, or use externhost= instead or use STUN.

The newer vicibox installers appear to set the exernip setting correctly.

Re: question regarding the externip under sip.conf

PostPosted: Thu Jul 31, 2014 1:35 pm
by sarxiejr
Thanks for the clarification.. :shock:

hope someone will guide me on how to do it :wink:

Re: question regarding the externip under sip.conf

PostPosted: Fri Aug 01, 2014 10:54 am
by geoff3dmg
Which option? I suggested 3.

Re: question regarding the externip under sip.conf

PostPosted: Mon Aug 04, 2014 5:40 pm
by sarxiejr
that it will automatically update my two public ip under externip

like for example externip = "public ip 1", "public ip 2";

is it possible?

because we had two different isp..and were using dual wan router

Re: question regarding the externip under sip.conf

PostPosted: Tue Aug 05, 2014 2:58 am
by geoff3dmg
You can only use one ip at any one time.

Re: question regarding the externip under sip.conf

PostPosted: Tue Aug 05, 2014 11:19 am
by williamconley
geoff3dmg wrote:You can only use one ip at any one time.

Not true. You can communicate with multiple carriers over different IPs all at once. But your externip value may need to be different for each if you are natting.

This works well if you merely have different routes where one is better to each provider. But if your problem is that circuits are unreliable and you may need to "switch between them", you may need a script that detects the change and modifies the configuration files and reloads asterisk to suit. Could be a bit complex.

Re: question regarding the externip under sip.conf

PostPosted: Tue Aug 05, 2014 12:33 pm
by sarxiejr
@william: i agree with you..theres no impossible in the vicidial :),

Re: question regarding the externip under sip.conf

PostPosted: Tue Aug 05, 2014 5:22 pm
by williamconley
sarxiejr wrote:@william: i agree with you..theres no impossible in the vicidial :),

LOL: Actually, that's merely Asterisk with networking. Vicidial is a whole different set of miracles.