Telegram - ?

Merion Networks

When you integrate your PBX with database (so it can juxtapose caller number with his name) or when you are using other methods, where CallerID name has bigger length, in CDR you will see trimmed by CallerID name call records. In this article we will show how to fix it.


It is extremely easy to do so you just need to use CALLERID function. In first step just open the file extensions_additional.conf:

vim /etc/asterisk/extensions_additional.conf

Find the context [macro-user-callerid] and copy it to the file extensions_override_freepbx.conf, which is located in /etc/asterisk. In this context search for a string:

exten => s,n,Set(CALLERID(name)=${CALLERID(name):0:40})

Change the value from 40 to 100:

exten => s,n,Set(CALLERID(name)=${CALLERID(name):0:100})
  CallerID Name  Asterisk

Thats basically all - after this you just need to execute dialplan reload command.