Forums Read-only archive

How to bar IDD calls

4 posts · Brekeke PBX Forum

michaelkoh Original post
1. Brekeke Product Name and version:

2. Java version:

3. OS type and the version:

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

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

6. Your problem:

To dial a local number(62529313) is 962529313.
To dial a oversea (0016032529313) is 90016032529313

How do I bar 1 user from making the 2nd call?
bespineda
you can bar a specific user from the dial-plan, from the matching pattern from=100 (100 being the user) and on the deploy put in action=603
michaelkoh
bespineda wrote:you can bar a specific user from the dial-plan, from the matching pattern from=100 (100 being the user) and on the deploy put in action=603
Shouldn't I put 9001 at the action?

By putting 9001 at the action, it means this pattern is allowed or barred? Can you please explain? Thank you.
Andrea
Hi,

You should not set a user number in action.
$action = 603 means the error response 603 (Decline) will be returned to the caller.

Example (to ban the user 9001 to call international call):

Matching Patterns:
$request = ^INVITE
To = sip:9(.{10,})@
From = sip:9001@

Deploy Patterns:
$action = 603


Good luck,
Andrea