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) ?
Dial plan: when no registered clients, send call to an IP
Moderator: Brekeke Support Team
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
------------------------------
------------------------------
[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
------------------------------