Bug report ("Intra-Company"+"CID Num Alias") and patching

“Intra-Company” checkbox in Outbound routes doesn’t work for “CID Num Alias” in Extensions because of:


[outrt-1] ; ROUTENAME
include => outrt-1-custom
exten => …skip…,1,Macro(user-callerid,LIMIT,EXTERNAL,)

i.e.“EXTERNAL” is whenever “Intra-Company” is checked or not.

Resolving by patching /var/www/html/admin/modules/core/functions.inc.php:

— $ext->add($context, $fpattern[‘base_pattern’], ‘’, new ext_macro(‘user-callerid,LIMIT,EXTERNAL’));
+++ if ($route[‘intracompany_route’] != ‘’) {
+++ $ext->add($context, $fpattern[‘base_pattern’], ‘’, new ext_macro(‘user-callerid,LIMIT’));
+++ } else {
+++ $ext->add($context, $fpattern[‘base_pattern’], ‘’, new ext_macro(‘user-callerid,LIMIT,EXTERNAL’));
+++ }

Enjoy it.
(sorry for my english)

You can visit issues.freepbx.org to create feature request and bug tickets.

1 Like

Please note to accept code we need a CSA http://wiki.freepbx.org/display/DC/Code+License+Agreement

Yes, I accept this agreement (CSA http://wiki.freepbx.org/display/DC/Code+License+Agreement). You may use this code as you wish. I have not any copyright or any other clame for code in top message.

I’m guessing you didn’t click the link. There needs to be a proper bug in issues.FreePBX.org and you have to submit back a CSA