Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Network range in trunk definition


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
ldardini at gmail.com
Guest





PostPosted: Tue Sep 08, 2015 2:22 pm    Post subject: [asterisk-users] Network range in trunk definition Reply with quote

I have some problem finding a smart way to add inbound trunks ip authentication. I don't want to set allowguests=yes

Some of my providers just list some IP and I add them like:


[provider](!)
context=fromoutside
type=friend
insecure=port,invite
disallow=all
allow=g729
allow=ulaw
allow=alaw
canreinvite=no


[magrathea1](provider)
host=87.238.72.129 
[magrathea2](provider)
host=87.238.72.130
[magrathea3](provider)
host=87.238.72.131
[magrathea4](provider)
host=87.238.72.132



But some providers are not giving single IP, but networks, like 37.157.52.128/25 and other also /24


How can I deal with them?


Leandro
Back to top
jcolp at digium.com
Guest





PostPosted: Tue Sep 08, 2015 2:24 pm    Post subject: [asterisk-users] Network range in trunk definition Reply with quote

On 15-09-08 04:21 PM, Leandro Dardini wrote:
Quote:
I have some problem finding a smart way to add inbound trunks ip
authentication. I don't want to set allowguests=yes

Some of my providers just list some IP and I add them like:

[provider](!)
context=fromoutside
type=friend
insecure=port,invite
disallow=all
allow=g729
allow=ulaw
allow=alaw
canreinvite=no

[magrathea1](provider)
host=87.238.72.129
[magrathea2](provider)
host=87.238.72.130
[magrathea3](provider)
host=87.238.72.131
[magrathea4](provider)
host=87.238.72.132

But some providers are not giving single IP, but networks, like
37.157.52.128/25 <http://37.157.52.128/25> and other also /24

chan_sip requires you to use individual entries like this. The res_pjsip
functionality in 13 and above allows multiple IPs and ranges in a single
identify section.

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
ldardini at gmail.com
Guest





PostPosted: Thu Sep 10, 2015 8:07 am    Post subject: [asterisk-users] Network range in trunk definition Reply with quote

I see, really thank you ... I have just migrated my config. By the way ... is pjsip realtime supporting realtime registrations?

Leandro


2015-09-08 21:23 GMT+02:00 Joshua Colp <jcolp@digium.com (jcolp@digium.com)>:
Quote:
On 15-09-08 04:21 PM, Leandro Dardini wrote:
Quote:
I have some problem finding a smart way to add inbound trunks ip
authentication. I don't want to set allowguests=yes

Some of my providers just list some IP and I add them like:

[provider](!)
context=fromoutside
type=friend
insecure=port,invite
disallow=all
allow=g729
allow=ulaw
allow=alaw
canreinvite=no

[magrathea1](provider)
host=[url=tel:87.238.72.129]87.238.72.129[/url]
[magrathea2](provider)
host=[url=tel:87.238.72.130]87.238.72.130[/url]
[magrathea3](provider)
host=[url=tel:87.238.72.131]87.238.72.131[/url]
[magrathea4](provider)
host=[url=tel:87.238.72.132]87.238.72.132[/url]

But some providers are not giving single IP, but networks, like
37.157.52.128/25 <http://37.157.52.128/25> and other also /24

chan_sip requires you to use individual entries like this. The res_pjsip functionality in 13 and above allows multiple IPs and ranges in a single identify section.

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
jcolp at digium.com
Guest





PostPosted: Thu Sep 10, 2015 8:10 am    Post subject: [asterisk-users] Network range in trunk definition Reply with quote

Leandro Dardini wrote:
Quote:
I see, really thank you ... I have just migrated my config. By the way
... is pjsip realtime supporting realtime registrations?

There is a wiki page[1] which documents the usage of realtime with PJSIP.

[1] https://wiki.asterisk.org/wiki/display/AST/Setting+up+PJSIP+Realtime

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services