Elastix plus sign on caller ID messing things up.

This article will tell you how to remove the leading + sign on caller ID that some carriers insert.

If you look at your CDR report and see all of your incoming calls look like this:

+18885556666

Your SIP provider is passing on incoming calls to your PBX with a + sign in front of the Caller ID. This plus sign is a veritable gremlin inside your PBX and will reek all sorts of havoc. Here is a list of just a few things that having leading plus sign breaks that I have discovered so far:

Inbound routes sorted by CID
On-Demand Call Recording Web Interface
Return Calls to Missed Callers

The good news is that you can fix this relatively easily thanks to a little trunk programming that was originally posted on Spiceworks by ericTR

Step 1

Go to PBX tools Asterisk File Editor and edit extensions_custom.conf or use ssh to edit /etc/asterisk/extensions_custom.conf

Add the following Context and Dialplan to the bottom of the file

[from-trunk-remove-plus] 
exten => _X!,1,GotoIf($["${CALLERID(num):0:2}" != "+1"]?noplusatstart) 
exten => _X!,n,Set(CALLERID(num)=${CALLERID(num):1}) 
exten => _X!,n(noplusatstart),Goto(from-trunk,${EXTEN},1)

Reload Asterisk

Step 2
Go to the settings for each trunk that is adding the + sign and add the line:

context=from-trunk-remove-plus

Save the settings

Step 3
Click Apply Changes from the FreePBX GUI
After the changes are applied, “+” should no longer show up on incoming CallerIDs.

 

Posted in VoIP.

Leave a Reply

Your email address will not be published. Required fields are marked *