Asterisk TrixBox - the dark side of the force
TrixBox: do not install it. Install a clean Asterisk instead.
Adding a prefix for outgoing calls in extensions_custom.conf
[from-internal-custom]
exten => _XXXX,1,Set(CALLERID(num)=3${CALLERID(num)})
exten => _XXXX,2,Goto(outbound-allroutes,${EXTEN},1)
3 is the prefix used to route calls from TrixBox to another PBX, conventionally the "main office." TrixBox has three-digit numbers, while the main office has four-digit numbers.
Incorrect CallerID Name in sip_additional.conf
As a result, the ${CALLERID(name)} function returns device. The initial check looks like this:
# cat /etc/asterisk/sip_additional.conf | grep callerid
callerid=device <105>
callerid=device <110>
callerid=device <111>
callerid=device <112>
callerid=device <114>
callerid=device <117>
/var/www/html/admin/modules/core/functions.inc.php contains this code:
$sipfields[] = array($account,'callerid',$db->escapeSimple((isset($_REQUEST['description']) && $_REQUEST['description'])?$_REQUEST['description']." <".$account.'>':'device'." <".$account.'>') ,$flag++);
Change it to:
$sipfields[] = array($account,'callerid',$db->escapeSimple((isset($_REQUEST['name']) && $_REQUEST['name'])?$_REQUEST['name']." <".$account.'>':'device'." <".$account.'>') ,$flag++);
The changes will appear in sip\_additional.conf after saving an extension's settings. Open and save each extension, then reload.