question regarding the externip under sip.conf

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

question regarding the externip under sip.conf

Postby sarxiejr » Wed Jul 30, 2014 5:03 pm

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..
VERSION: 2.4-309a
BUILD: 110430-1642
Asterisk Version: 1.4.38-vici
Goautodial.iso installation(version 2.1)
Single Server
sarxiejr
 
Posts: 25
Joined: Fri Feb 07, 2014 1:46 pm

Re: question regarding the externip under sip.conf

Postby geoff3dmg » Thu Jul 31, 2014 3:25 am

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.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: question regarding the externip under sip.conf

Postby sarxiejr » Thu Jul 31, 2014 1:35 pm

Thanks for the clarification.. :shock:

hope someone will guide me on how to do it :wink:
VERSION: 2.4-309a
BUILD: 110430-1642
Asterisk Version: 1.4.38-vici
Goautodial.iso installation(version 2.1)
Single Server
sarxiejr
 
Posts: 25
Joined: Fri Feb 07, 2014 1:46 pm

Re: question regarding the externip under sip.conf

Postby geoff3dmg » Fri Aug 01, 2014 10:54 am

Which option? I suggested 3.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: question regarding the externip under sip.conf

Postby sarxiejr » Mon Aug 04, 2014 5:40 pm

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
VERSION: 2.4-309a
BUILD: 110430-1642
Asterisk Version: 1.4.38-vici
Goautodial.iso installation(version 2.1)
Single Server
sarxiejr
 
Posts: 25
Joined: Fri Feb 07, 2014 1:46 pm

Re: question regarding the externip under sip.conf

Postby geoff3dmg » Tue Aug 05, 2014 2:58 am

You can only use one ip at any one time.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: question regarding the externip under sip.conf

Postby williamconley » Tue Aug 05, 2014 11:19 am

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: question regarding the externip under sip.conf

Postby sarxiejr » Tue Aug 05, 2014 12:33 pm

@william: i agree with you..theres no impossible in the vicidial :),
VERSION: 2.4-309a
BUILD: 110430-1642
Asterisk Version: 1.4.38-vici
Goautodial.iso installation(version 2.1)
Single Server
sarxiejr
 
Posts: 25
Joined: Fri Feb 07, 2014 1:46 pm

Re: question regarding the externip under sip.conf

Postby williamconley » Tue Aug 05, 2014 5:22 pm

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 112 guests