How can we help you?

How to Remove a plus sign in the CallerID with FreePBX
Posted by: Agustín Gudiño Posted on: Mar-29th, 2016 14:46


Many times Incoming phone calls (especially on SIP trunks) will contain a "+" on the CallerID. This can be annoying for users who try to call back numbers from their call history on their phones. The following solution fixes this problem at the root.

Add the following Context and Dialplan to /etc/asterisk/extensions_custom.conf :

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)

Modify the trunk's peer settings context to "from-trunk-remove-plus"

By default. Incoming phone calls that are coming from some sort of trunk are going to "from-trunk". What you want to do is change this context to the one we just created so the dialplan that removes the plus is applied.

Click Apply Changes from the FreePBX GUI

After the changes are applied, "+" should no longer show up on incoming CallerIDs and wont be on the recording filename either.

The information was gathered from the following link:

Leave a comment