Elastix and extensions.conf

Posted on

Elastix and extensions.conf – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, voip, asterisk, , .

My VOIP provider required me to add this into /etc/asterisk/extensions.conf:

exten => h,1,Hangup
exten => _00X.,1, Answer
exten => _00X.,n, Set(CALLERID(num)=96354205144239) ;
exten => _00X.,n, Dial(SIP/${EXTEN}@Trunk_Name)
exten => _00X.,n, Hangup

Could you please explain what is this syntax mean and what can it do .?

Also how to add this syntax using Elastix GUI instead of adding it manually into extenisons.conf.

Solution :

It looks like they are trying to have you set your outgoing Caller ID string to that sequence of digits (which you should probably obscure). It should be sufficient to set your outgoing Caller ID for the outgoing SIP trunk to that value.

It appears your provider doesn’t understand Asterisk very well (unless the provider is doing something very non-standard, it’s wrong to “Answer” the call at this point) but the main thing that this appears to be doing is setting your outgoing Caller ID number to 96354205144239. Assuming that you have created an outgoing trunk in Elastix (actually in FreePBX), you can achieve the same effect by going to the trunk settings page for the provider, and setting the Outbound CallerID field to that number, and then setting the CID Options dropdown to Force Trunk CID. Those two changes will most likely be all you’ll need, again assuming you have your trunk configured correctly otherwise. Don’t forget to “Submit Changes” and do an orange bar reload after making the above modifications to the trunk configuration. And note that you cannot modify extensions.conf directly in FreePBX anyway, because if you do, any changes you make will be overwritten the next time you make any other change in FreePBX. So do it on the FreePBX (Elastix) trunk configuration page for your trunk for this provider.

This is nothing but the provider sets the Outbound caller ID to that number. If you have a outbound trunk you can do it by setting CALLERID in the GUI. Click on the outbound trunk, change the CALLER ID and reload Asterisk.


Leave a Reply

Your email address will not be published.