Forums Read-only archive

How to set Dialplan in this case?

2 posts · Brekeke SIP Server Forum

hslee Original post
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/ ... terns.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??
janP
> 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