Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
How to set Dialplan in this case?
Author Message
hslee
Brekeke Member


Joined: 20 Sep 2011
Posts: 15
Location: S. Korea

PostPosted: Sun Sep 25, 2011 10:50 pm    Post subject: How to set Dialplan in this case? Reply with quote

1. Brekeke Product Name and version: 2.4.8.6/286.3

2. Java version: 1.6.0_27

3. OS type and the version: Linux cent5

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

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html : 4

6. Your problem:

I want to know how to set dialplan in these cases...


1. Allow calls from defined IP address(1.1.1.1)
2. Allow calls from registered user
3. Reject all calls except case1,2


I has set like follows, but it didn't work as i intended.

1. $Request = ^INVITE $auth = true
$target = xxx.xxx.xxx.xxx(IP)
$continue = true

2. $Request = ^INVITE $auth = false
$addr = ^1|.1|.1|.1$ $target = xxx.xxx.xxx.xxx(IP)
$continue = true


What is wrong with that??

_________________
Thank you
Back to top
View user's profile
janP
Brekeke Master Guru


Joined: 25 Nov 2007
Posts: 336

PostPosted: Sun Sep 25, 2011 11:03 pm    Post subject: Reply with quote

> 1. Allow calls from defined IP address(1.1.1.1)

$addr = ^1.1.1.1$


> 2. Allow calls from registered user

$registered( From ) = true
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