Sample Dial Plan: Notify Incoming Call
The first rule sends a push notification to the destination user which To-URI of an incoming INVITE indicates. The second rule waits for a REGISTER if the destination user is not yet listed in the Register database.
Note:
- Brekeke Phone can receive Push Notification as default without the following settings.
Rule: Send Notification
--------------------------------------------- [Matching Patterns] $request = ^INVITE $getSIPuser(To) = (.+) $pn.user("%1") = true [Deploy Patterns] &pn.notify.user = %1 &pn.notify.message = Call from %{$getSIPuser(From)} &pn.notify.pushtype = voip $continue = true ---------------------------------------------
Rule: Wait REGISTER
--------------------------------------------- [Matching Patterns] $request = ^INVITE &pn.notify.user = (.+) $registered = false [Deploy Patterns] $wait4reg = %1 ---------------------------------------------