How to set Dialplan in this case?

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
hslee
Posts: 15
Joined: Tue Sep 20, 2011 11:28 pm
Location: S. Korea

How to set Dialplan in this case?

Post by hslee »

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??
Thank you
janP
Posts: 336
Joined: Sun Nov 25, 2007 2:55 pm

Post by 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
Post Reply