Ok, this suggestion did work!!!
Here the code-snipped in modules/ringtones/functions.inc.php:
[code:1]
// deal with group CID prefix
// but strip only if you plan on setting a new one
if ($grppre != ‘’) {
$ext->add($contextname, $grpnum, ‘’, new ext_gotoif(’$[“foo${RGPREFIX}” = “foo”]’, ‘REPCID’));
$ext->add($contextname, $grpnum, ‘’, new ext_gotoif(’$["${RGPREFIX}" != “${CALLERID(name):0:${LEN(${RGPREFIX})}}”]’, ‘REPCID’));
$ext->add($contextname, $grpnum, ‘’, new ext_noop(‘Current RGPREFIX is ${RGPREFIX}…stripping from Caller ID’));
$ext->add($contextname, $grpnum, ‘’, new ext_setvar(‘CALLERID(name)’, ‘${CALLERID(name):${LEN(${RGPREFIX})}}’));
$ext->add($contextname, $grpnum, ‘’, new ext_setvar(’_RGPREFIX’, ‘’));
$ext->add($contextname, $grpnum, ‘REPCID’, new ext_noop(‘CALLERID(name) is ${CALLERID(name)}’));
$ext->add($contextname, $grpnum, ‘’, new ext_setvar(’_RGPREFIX’, $grppre));
$ext->add($contextname, $grpnum, '', new extension('SetCallerPres(allowed_not_screened)'));
$ext->add($contextname, $grpnum, '', new ext_setvar('CALLERID(name)','${RGPREFIX}${CALLERID(name)}'));
}
[/code:1]
I did not create a new class for this because the behavior of extention was sufficient
Bugreport needed?