Thursday, September 24, 2015

Tips of using Elastix in your business center

Elastix is a feature-rich PBX system built on top of Asterisk.  It simplifies many administrative tasks via providing a GUI, making it a good choice for IT/administrator to adopt the open-source platform.

What is more, Elastix has a useful feature for business center.  The inbound route allows us to specify a DID-based text that would be shown on the front-desk IP phone.  It could be the company name of a business center's tenant and the front-desk staff could greet the caller accordingly.

By default, Elastix disallows input of UTF-8 characters in this text.  We can enable it with a few modifications and the front-desk staff could then see Chinese company name.

First of all, we have to change the charset of  the table asterisk.incoming to utf8.  This table keeps the information of the inbound route.

By enabling support of utf8, we can keep Chinese characters in the inbound route.

Secondly, we can use a quick way to disable the charset restriction in the php page that handles inbound route input.  Below code disables the charset validation in the corresponding php. 

1. /var/www/html/modules/pbxadmin/js/libfreepbx.javascripts.js
… (Line 1 to 129)
function isLetter(c)
{return true;}
//{return(((c>="a")&&(c<="z"))||((c>="A")&&(c<="Z"))||(c==" ")||(c=="&")||(c=="'")||(c=="(")||(c==")")||(c=="-")||(c=="/"))}
function isURLChar(c)
function isCallerIDChar(c)
{return true;}
//{return(((c>="a")&&(c<="z"))||((c>="A")&&(c<="Z"))||((c>="0")&&(c<="9"))||(c==":")||(c=="_")||(c=="-")||(c=="<")||(c==">")||(c=="(")||(c==")")||(c==" ")||(c=="\"")||(c=="&")||(c=="@")||(c==".")||(c=="+"))}

2. /var/www/html/admin/components.class.php
find and replace the code from htmlentities($currentvalue) to htmlentities($currentvalue, ENT_COMPAT | ENT_HTML401, "utf-8")

Now, you can create an Inbound Route with a Chinese CID prefix.  If the inbound route is hit by an incoming call, the CID prefix would be sent as part of the caller name to the route destination.  If your destination phone is capable of displaying Chinese characters, you will see the CID prefix string associated with the DID number.

Input Chinese characters in Inbound Route
IP phone shows Chinese CID prefix



  1. Hi Derek,

    Thanks for your sharing.
    Is this setting only apply on Elastix 2.4? As i can't found the js folder under '/var/www/html/modules/pbxadmin/' with Elastix 2.5


  2. voip business Our data centres are based in the UK and the Xinix VoIP wholesale is becoming an increasingly popular business model nowadays. It supposes tra c aggregation and exchange between VoIP operators. In other words, wholesale VoIP providers receive tra c from one carrier and transmit it to another one acting as a ‘man in the middle’ between them.

  3. Become the best voip reseller services provider and earn quick money by providing Internet phone services. You only need signing for a reseller program to start the service.Visit here:-

  4. Myicon serviced office provides fully furnished serviced office and Business Center. The fully furnished serviced office offers free internet access, photocopying, pantry, and customer reception services as well as fully-equipped conference rooms.

  5. International Phone Call Communication, International SMS And Voice Service.Voip System, IP Phone Ant Tone,Inc. voip phone

  6. It is Very Useful information, this is both good reading for, have quite a few good key points and I learn some new stuff from it too. It's necessary to know about this. Keep continuing the post.
    buy gw

  7. I appreciate your idea here. Definitely it has a good content. Thank you for imparting more of your own thoughts. Good job! buy mt2 10mg

  8. Thank you for the great article.

    Owner CEL Financial Services
    IRS Registered Tax Preparer
    Registered bonded California CTEC Tax Preparer

  9. This blog is very intersting for me and for those who are interested in blogging field. You’re doing great work and thanks for sharing such a good blog, Keep it up.
    If anyone looking for "Matrimonial Services" Please visit our website. Best matrimonial service in all over India and abroad.
    Best Matrimonial Sites

  10. Your article is very useful for me, your website also looks very good.
    Visit us To Download :
    - Brother Printer Drivers
    - Canon Printer Drivers
    - Samsung Printer Drivers

  11. I am very impressed for your great information.Thanks a lot for sharing.
    Flexiload Software Available here

  12. Very good article, hope this article is useful for other writers and readers. india tourist visa