Upgrade 3CX to v18 and get it hosted free!

OpenSER module cpl-c

Author image

__cpl-c_ module implements a CPL (Call Processing Language – RFC3880) interpreter. It has support for uploading/downloading/removing scripts via SIP REGISTER method.

CPL is a powerful and flexible XML scripting language that allows each user to develop its call routing. Some common features like redirection, forward, speed-dial, call/black lists … can be implemented via CPL. Since XML processing is quite resource consuming, all scripts are loaded via the OpenSER daemon which converts them to a binary format for use in call processing. Some of the common features can be implemented via other OpenSER modules — see speeddial, avpops.

Example CPL script – reject anonymous calls:


   <?xml version="1.0" encoding="UTF-8"?>
   <cpl>
     <incoming>
       <address-switch field="origin" subfield="user">
         <address is="anonymous">
           <reject status="reject" reason="I reject anonymous calls"/>
         </address>
       </address-switch>
     </incoming>
   </cpl>

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.