Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Control the number of channels allowed in a SIP trunk
Author Message
uhupfeld
Brekeke Talented


Joined: 08 Nov 2008
Posts: 77
Location: Brazil

PostPosted: Tue Aug 15, 2017 2:50 pm    Post subject: Control the number of channels allowed in a SIP trunk Reply with quote

1. Brekeke Product Name and Version: SIP Server 3.6.3.0/454

2. Java version: 1.8.0_121-b13

3. OS type and the version: Win7 Pro

4. UA (phone), gateway or other hardware/software involved:

5. Your problem:
I would like to limit the number of simultaneous calls in a SIP trunk. Can this be done? If yes, how?

BR

Udo
Back to top
View user's profile
snuyzm
Brekeke Talented


Joined: 11 Feb 2015
Posts: 97

PostPosted: Thu Aug 17, 2017 8:03 am    Post subject: Reply with quote

How about this?
http://wiki.brekeke.com/wiki/Limit-concurrent-sessions-through-a-route
Back to top
View user's profile
uhupfeld
Brekeke Talented


Joined: 08 Nov 2008
Posts: 77
Location: Brazil

PostPosted: Thu Aug 17, 2017 8:41 am    Post subject: Reply with quote

Great, this is exactly what I was looking for, thanks. I was relying too much on the PDF...

So, to make it more complicated, if I want to restrict overall calls to 30 from a customer which may have 2 or more IP adresses as origin (like 1.1.1.1 and 2.2.2.2) AND I use a prefix for the call (like 1212), the Dial Plan rule would be:

Matching Patterns
$request = ^INVITE
To = sip:1212(.+)@
$or("$addr = 1\.1\.1\.1","$addr=2\.2\.2\.2") = true
$route.underlimit( "gateway1", "30" ) = true
Deploy Patterns
To = sip:1212%1@172.16.1.101
$routename = gateway1
$continue = true



Right?

BR

Udo
Back to top
View user's profile
taitan
Brekeke Master Guru


Joined: 15 Mar 2008
Posts: 237

PostPosted: Mon Aug 21, 2017 11:16 am    Post subject: Reply with quote

Try this.

Matching Patterns
$request = ^INVITE
$addr = ^1\.1\.1\.1$|^2\.2\.2\.2$
To = sip:(1212.+)@
$route.underlimit("gateway1","30") = true
Deploy Patterns
To = sip:%1@172.16.1.101
$routename = gateway1
$continue = true
Back to top
View user's profile
DarrahLog
Brekeke Newbie


Joined: 01 Sep 2017
Posts: 1

PostPosted: Thu Sep 07, 2017 11:45 pm    Post subject: Reply with quote

uhupefeld wrote:
This works well if the originating IP is in the From field of the INVITE.
What if this list of originating IPs is in the Contact field?
What do I play online bingo instead of $addr ?


That worked for me thanks Taitan.


Last edited by DarrahLog on Thu Aug 23, 2018 12:12 am; edited 1 time in total
Back to top
View user's profile
uhupfeld
Brekeke Talented


Joined: 08 Nov 2008
Posts: 77
Location: Brazil

PostPosted: Thu Oct 26, 2017 11:20 am    Post subject: Reply with quote

This works well if the originating IP is in the From field of the INVITE.
What if this list of originating IPs is in the Contact field?
What do I use instead of $addr ?
Back to top
View user's profile
taitan
Brekeke Master Guru


Joined: 15 Mar 2008
Posts: 237

PostPosted: Thu Oct 26, 2017 7:31 pm    Post subject: Reply with quote


Matching Patterns
$request = ^INVITE
$getHost(Contact) = ^1\.1\.1\.1$|^2\.2\.2\.2$
To = sip:(1212.+)@
$route.underlimit("gateway1","30") = true
Back to top
View user's profile
uhupfeld
Brekeke Talented


Joined: 08 Nov 2008
Posts: 77
Location: Brazil

PostPosted: Tue Nov 28, 2017 6:23 pm    Post subject: Reply with quote

Thanks!
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1