I had the Class of Service module installed, but I decided that I would do dialplan restrictions a different way (copying and modifying a template in Endpoint Manager), so I uninstalled it. It gave me an error when it uninstalled, saying that it failed to run the uninstaller script. Now there are still these entries in extensions_additional.conf:
;[outbound-restricted-routes]
;include => outbound-restricted-routes-custom
;exten => _[+0-9].,1,Macro(user-callerid,LIMIT)
;exten => _[+0-9].,n,Set(ROUTEUSER=${IF($["${EXTTOCALL}"!=""]?${EXTTOCALL}:${AMPUSER})})
;exten => _[+0-9].,n,GotoIf($["${BLINDTRANSFER}" == “”]?notblind)
;exten => _[+0-9].,n,Set(ENDPOINT=${CUT(BLINDTRANSFER,-,1)})
;exten => _[+0-9].,n,Set(ROUTEUSER=${CUT(ENDPOINT,/,2)})
;exten => _[+0-9].,n(notblind),GotoIf($[${LEN(${ROUTEUSER})}>0 & ${DB_EXISTS(AMPUSER/${ROUTEUSER}/outroute_hash)}]?${DB(AMPUSER/${ROUTEUSER}/outroute_hash)},${EXTEN},2:outbound-allroutes,${EXTEN},2)
;exten => h,1,Hangup
;–== end of [outbound-restricted-routes] ==–;
;[restrictedroute-cfcd208495d565ef66e7dff9f98764da]
;include => restrictedroute-cfcd208495d565ef66e7dff9f98764da-custom
;exten => null,1,Noop(Unused Variable)
;exten => h,1,Hangup
;exten => i,1,Goto(bad-number,s,1)
;–== end of [restrictedroute-cfcd208495d565ef66e7dff9f98764da] ==–;
and in [from-internal-additional]
the line:
;include => outbound-restricted-routes ; extensionroutes
I commented them out to troubleshoot, which allows the restrictions to go away. It’s restricting dialing extensions over an IAX trunk to another site. Obviously when I make a change in the GUI the commented out lines are uncommented again.
/var/log/asterisk/full tells me:
[2017-09-25 11:05:37] VERBOSE[19551] pbx.c: Including context ‘outbound-restricted-routes’ in context ‘from-internal-additional’
How do I get pbx_config to stop adding those entries to extensions_additional? I tried reinstalling and uninstalling the module a couple of times to no avail. If Class of Service is causing me problems this way, I want to get rid of the changes that it makes, not reinstall it and set it up to allow calling between sites.
Thank you,
Court