I am using 3 digit extension so I thought I could change the first part but am getting a busy signal and error in the logs when dialing the feature code. Does it require the use of 4 digit extension? Since its only a select group of people I could just create some extra unused 4 digit extension since everything goes to their email anyway.
The relevant log, i think: -
Executing [**55202@from-internal:2] Gosub("PJSIP/202-0000000c", "toggle-dynvm-ext,5202,1") in new stack
I changed this part:
[from-internal-custom]
; Create feature code previx with hints. Each extension can enable/disable vm group membership by dialing the
; feature code prefix to their extension number. If assigned to a BLF, the LED will indicate group membership.
; An AstDB key is generated or deleted to indicate dyn vm blast group membership
exten => _**55XXX,hint,Custom:DYNVM_${EXTEN:3} ; set up hint for 4 digit extensions and strip leading 4 digits
exten => _**55XXX,1,Noop(Entering user defined context from-internal-custom in extensions_custom.conf)
exten => _**55XXX,n,Gosub(toggle-dynvm-ext,${EXTEN:3},1)
exten => _**55XXX,n,hangup
full error:
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio TOS bits 184 in TCLASS field.
== Using SIP RTP Audio CoS mark 5
-- Executing [**55202@from-internal:1] NoOp("PJSIP/202-0000000c", "Entering user defined context from-internal-custom in extensions_custom.conf") in new stack
-- Executing [**55202@from-internal:2] Gosub("PJSIP/202-0000000c", "toggle-dynvm-ext,5202,1") in new stack
-- Executing [5202@toggle-dynvm-ext:1] NoOp("PJSIP/202-0000000c", "") in new stack
-- Executing [5202@toggle-dynvm-ext:2] GotoIf("PJSIP/202-0000000c", "0?unset:set") in new stack
-- Goto (toggle-dynvm-ext,5202,4)
-- Executing [5202@toggle-dynvm-ext:4] Set("PJSIP/202-0000000c", "DEVICE_STATE(Custom:DYNVM_5202)=BUSY") in new stack
-- Executing [5202@toggle-dynvm-ext:5] Set("PJSIP/202-0000000c", "DB(dynvm/5202)=1") in new stack
-- Executing [5202@toggle-dynvm-ext:6] Return("PJSIP/202-0000000c", "") in new stack
-- Executing [**55202@from-internal:3] Hangup("PJSIP/202-0000000c", "") in new stack
== Spawn extension (from-internal, **55202, 3) exited non-zero on 'PJSIP/202-0000000c'
-- Executing [h@from-internal:1] Macro("PJSIP/202-0000000c", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("PJSIP/202-0000000c", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("PJSIP/202-0000000c", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] Hangup("PJSIP/202-0000000c", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'PJSIP/202-0000000c' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/202-0000000c'
Thank you again for helping me