CLI> database put PRIVCHANS 1210 3
[macro-dialout-trunk-predial-hook]
;
; - check if the trunk is a fake trunk we configure
; - if not, just exit (do nothing)
; - if so, lookup in a maintained astdb structure for a specific channel, e.g.
;
; - PRIVCHANS/<exten_num> : <zapchan>
;
; If that channel exists, then try dialing on that specific channel
; in either case, return BYPASS
;
exten => s,1,Set(PREDIAL_HOOK_RET=)
exten => s,n,GotoIf($["${OUT_${DIAL_TRUNK}}" != "AMP:Local/faketrunk"]?continue)
exten => s,n,GotoIf($["${DB(PRIVCHANS/${AMPUSER})}" = ""]?leave)
exten => s,n,Set(OUT_${DIAL_TRUNK}=ZAP/${DB(PRIVCHANS/${AMPUSER})})
exten => s,n,Set(custom=)
exten => s,n(continue),MacroExit()
exten => s,n(leave),Set(PREDIAL_HOOK_RET=BYPASS)
Link up your team and customers Phone System Live Chat Video Conferencing
Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.
Check your inbox!
We’ve sent you an email. Click on the button in the email body to verify your email address – (if you can not find it, check your spam folder).
Upon verification you will be directed to the 3CX setup wizard.