Dial plan: when no registered clients, send call to an IP

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
ioan
Posts: 11
Joined: Fri Mar 16, 2007 9:58 am

Dial plan: when no registered clients, send call to an IP

Post by ioan »

1. Brekeke Product Name and version:
2.4.7.0/286.1

6. Your problem:

Is it possible to have a rule that will forward the call to the client "ioan" (To=sip:ioan@) if the client is registered, and if not, send the call to an IP ($target=123.123.123.123) ?
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

Rule-1:
------------------------------
[Matching Patterns]
$request = ^INVITE
$registered( "ioan" ) = true

[Deploy Patterns]
To = sip:ioan@
------------------------------

Rule-2:
------------------------------
[Matching Patterns]
$request = ^INVITE
To = sip:(.+)@

[Deploy Patterns]
To = sip:%1@123.123.123.123
------------------------------
Post Reply