Setting up CLIP switching

From sailpbx
Revision as of 21:16, 20 February 2012 by Adminwiki (talk | contribs) (Overview)
Jump to: navigation, search

Overview

There is some confusion over how SARK does switch-on-CLIP operations and how to set it up. SARK can switch on a given CLI or on a CLI class (for example all calls from a particular area code).

There are two steps to setting up the switching rule. First of all you have to turn on CLI checking in the inbound trunk or DDI/DiD. Next you create a special trunk object with a type of PTT_CLID or PTT_CLID_Class and a key that matches the CLI you intend to switch. What happens is that the SARKHPE routing code checks each CLI on an enabled trunk to see if it matches any PTT_CLID or PTT_CLID_Class entries in the database. If it does it replaces the original DNID with the CLID and recursively calls itself. This allows it to process the CLID through the same routing mechanism it uses to process regular calls. Here is an example. The trunk has a DDI of 01924918076. We want to catch calls from 01443219078 and do something with them. In the example we will simply issue a hangup, effectively barring calls from this number but we can switch them to any end-point in the SARK system in the normal way. To begin we will edit the trunk and turn on CLI processing by setting "Switch-on-CLIP" to YES.


Srkclip1.png


Next we will set up a new trunk object with a type of PTT_CLID to actually switch any calls coming from this CLI.


Srkclip2.png




Now we can edit it in the normal way to route the call. In this example we will just set the inbound routing to Hanup:Hangup




Srkclip3.png




Now this has been done, calls from 01443219078 will be detected and hung up. All other calls will simply be switched through the trunk in the normal way. Of course, once you have turned on CLI processing for a particular trunk you can create as many PTT_CLID and PTT_CLID_Class trunks as you like. Also, because you turn on CLI detection at the trunk/DDI level you can have some trunks which respond to a CLI switch and others which don't.