Answered a thousand times I'm sure! Custom dialplans

Hi,

I’m sure this has been answered a thousand times already. I’m trying to add a call to Slack to let us know when we receive a voicemail message so that my staff can follow it up pretty much straight away.

However I’m trying to override [macro-vm] and I’m finding that my override just appends to the existing dialplan.

So for arguments sake;

extensions_custom.conf
[macro-vm]
exten => exit-SUCCESS,1,GotoIf($["${RETVM}" = “RETURN”]?exit-RETURN,1)
exten => exit-SUCCESS,n,Playback(goodbye)
exten => exit-SUCCESS,n,Playback(goodbye)
exten => exit-SUCCESS,n,Playback(goodbye)
exten => exit-SUCCESS,n,Playback(goodbye)
exten => exit-SUCCESS,n,Playback(goodbye)
exten => exit-SUCCESS,n,Playback(goodbye)
exten => exit-SUCCESS,n,Playback(goodbye)
exten => exit-SUCCESS,n,Playback(goodbye)
exten => exit-SUCCESS,n,Hangup

Gives me an appended dialplan of;
Command: dialplan show macro-vm

‘exit-SUCCESS’ => 1. GotoIf($["${RETVM}" = “RETURN”]?exit-RETURN,1) [extensions_additional.conf:5680]
2. Playback(goodbye) [extensions_additional.conf:5681]
3. Hangup() [extensions_additional.conf:5682]
4. Playback(goodbye) [extensions_custom.conf:5]
5. Playback(goodbye) [extensions_custom.conf:6]
6. Playback(goodbye) [extensions_custom.conf:7]
7. Playback(goodbye) [extensions_custom.conf:8]
8. Playback(goodbye) [extensions_custom.conf:9]
9. Playback(goodbye) [extensions_custom.conf:10]
10. Hangup() [extensions_custom.conf:11]

It’s my first delve into dialplan manipulation and I’m struggling to understand the concept of overriding.

I’d appreciate the help.

Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.