Thank you for the heads up. I figured out the answer to my boneheaded question about the feature code. Since we aren’t ready to upgrade yet, I was trying to work on a quick fix to just get rid of the toggling functionality. From the dial plan, here is the code in question:
[timeconditions-toggles]
include => timeconditions-toggles-custom
exten => *9271,1,Macro(user-callerid,)
exten => *9271,n,Macro(toggle-tc,1)
exten => *9271,n,Hangup
exten => *9271,hint,Custom:TC1
I tried adding this code into extensions_custom.conf
[timeconditions-toggles-custom]
exten => *9271,1,Macro(user-callerid,)
exten => *9271,n,Hangup
exten => *9271,hint,Custom:TC1
basically just removing the toggle. However, the sort order of the dial plan still uses the code from [timeconditions-toggles] instead of the custom code:
APFDEV*CLI> dialplan show *9271@from-internal
[ Included context ‘timeconditions-toggles’ created by ‘pbx_config’ ]
’*9271’ => hint: Custom:TC1 [pbx_config]
1. Macro(user-callerid,) [pbx_config]
2. Macro(toggle-tc,1) [pbx_config]
3. Hangup() [pbx_config]
[ Included context ‘timeconditions-toggles-custom’ created by ‘pbx_config’ ]
’*9271’ => hint: Custom:TC1 [pbx_config]
1. Macro(user-callerid,) [pbx_config]
2. noop(Entering user defined context, ${CONTEXT} defined in extensions_override_freepbx.conf) [pbx_config]
3. Hangup() [pbx_config]
-= 2 extensions (8 priorities) in 2 contexts. =-
I also tried moving the custom code to extensions_override_freepbx.conf. This fell victim to the same dial plan sort order issue:
APFDEV*CLI> dialplan show *9271@from-internal
[ Included context ‘timeconditions-toggles’ created by ‘pbx_config’ ]
’*9271’ => hint: Custom:TC1 [pbx_config]
1. Macro(user-callerid,) [pbx_config]
2. Macro(toggle-tc,1) [pbx_config]
3. Hangup() [pbx_config]
[ Included context ‘timeconditions-toggles-custom’ created by ‘pbx_config’ ]
’*9271’ => hint: Custom:TC1 [pbx_config]
1. Macro(user-callerid,) [pbx_config]
2. noop(Entering user defined context, ${CONTEXT} defined in extensions_override_freepbx.conf) [pbx_config]
3. Hangup() [pbx_config]
-= 2 extensions (8 priorities) in 2 contexts. =-
I tried naming the context to something entirely different in extensions_override_freepbx.conf also, but it still ends up being the last match in the dial plan.
Can someone help fill in the blanks for me on the dial plan sort order? I’m sure I’m probably missing something simple due to my lack of experience.
Thank you.