trunk IP addresses

jaray

Member
Joined
Dec 17, 2007
Messages
71
Reaction score
0
My trunk provider has 8 or 10 different IP addresses that incoming calls could come from. How do I allow for that in the incoming settings of FreePBX where I'm only used to ever entering 1 ip address.
Do I have to build a separate trunk for every IP address? I suspect not but theres got to be a way to put a range of IP's into the host line...
 
When I tried WhistlePhone I had to create an Inbound route for each server they had, else the call would randomly get rejected.
 
On the host= line in your Trunk configuration (under incoming settings) you can list all the possible source IP addresses separated by '&'

eg, for my provider (PlusNet in the UK) I use;

host=sip.plus.net&79.135.125.154&79.135.125.155

Andy.
 
No kidding, I'll have to get trying this one.
thanks...
 
Same thing goes for extensions if you want to allow from multiple sources as well. Just separate IP's and/or ip/subnet with "&"
 
Odd, I use DIDWW for a DID I have, and entering the multiple IP addresses in the fashion andywright suggested does not work.
DIDWW tells me I need a separate trunk
for each IP.
I'd surely think theres got to be a working way to tell asterisk of multiple IP's. The original suggestion sure did look like a surefire way to do it...
 
It might depend on the version of Asterisk that you are running.
 
There was another post in Endpoints where Sip2Sip.info won't register and I had this thought:

There is a post in the Trunks forum of a suggestion to make your host line look like host=a.b.c.d&e.f.g.h&etc...

Now I read & to mean all must be true like registering an operator extension at office and home in 2 locations (as it mentions you can do this in extensions too (in deny/permit)) at all times. So what is the Symbol for an OR instead of an AND -- this may try the first and if it fails do the 2nd and so on.

Worth a shot.

I have not had my Sip2Sip successfully register in 4 months since I have *1.8-Purple w/ Incredible. Its kind of OK though because I have no one to video with at the moment anyways and the phone is in the bedroom as I get woken up for military flights and have to send out pages at 3 am :smile5: My weird thing is the Nortel 1535 doesn't like one of the pager numbers I have to call and they are both in Maine.

Anyways maybe an OR would get the trunk to accept the IPs that way.
 
Good suggestion, not sure if there an "or" but hopefully someone will chime in here with another suggestion or the answer.
I'm going to have to build a bunch of individual trunks soon though for each IP address.
 
The ampersand sign does mean OR in this context. It wouldn't make sense if it meant AND - the Sip signalling couldn't come from eg. 3 separate sources simultaneously.

So in the example I gave before it should be read as "accept inbound connections from IP address A or B or C"
 
I'm using Asterisk V 1.4.21.2
FreePBX 2.7.0.

Here is what I have at host=
host=46.19.209.10&46.19.209.11&46.19.209.12&46.19.209.13&46.19.209.14&46.19.209.15&46.19.209.75&46.19.209.76&46.19.209.77&46.19.209.78&46.19.209.79&46.19.209.80
 
Does anyone else have multiple IP's for a trunk working on just one trunk config? I always get the feeling having so many individual trunks will load my system down...any thoughts on that? Maybe it doesn't matter at all anyway?
 

Members online

Forum statistics

Threads
26,686
Messages
174,406
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top