Contexts in the extensions_custom.conf do not appear to be working (or being used):
extensions_additional.conf has an include for ext-did-custom:
[ext-did]
include => ext-did-custom
exten => fax,1,Goto(ext-fax,in_fax,1)
exten => s,1,Set(FROM_DID=s)
I have the following [ext-did-custom] context in extensions_custom.conf:
[ext-did-custom]
exten => s,1,NoOp("CallerID Modified with ext-did-custom") ;to show in log file
exten => s,n,Set(modifiedcallerid=${CALLERID(number):3:12})
exten => s,n,Set(CALLERID(number)=0${modifiedcallerid})
exten => s,n,NoOp("CallerID is now ${CALLERID(number)}")
It doesn't seem to be being called - this from the log:
Dec 17 12:07:47 VERBOSE[3220] logger.c: -- Executing NoOp("SIP/441953660050-08eb0b88", "Catch-All DID Match - Found 7777 - You probably want a DID for this.") in new stack
Dec 17 12:07:47 VERBOSE[3220] logger.c: -- Executing Goto("SIP/441953660050-08eb0b88", "ext-did|s|1") in new stack
Dec 17 12:07:47 VERBOSE[3220] logger.c: -- Goto (ext-did,s,1)
Dec 17 12:07:47 VERBOSE[3220] logger.c: -- Executing Set("SIP/441953660050-08eb0b88", "FROM_DID=s") in new stack
Dec 17 12:07:47 VERBOSE[3220] logger.c: -- Executing Gosub("SIP/441953660050-08eb0b88", "cidlookup|cidlookup_1|1") in new stack