Jaun Terblanche <jterblanche@altoa.com> wrote:> I am looking for a way to allow users to dial *21*, followed by a
> number and the pound key. Asterisk must then divert all incoming
> calls to the user's extension to the number given.
[...]
Dial the Local interface. I have this:
; Macro to place a call to an internal number
; ${ARG1} - Extension (e.g. "300")
[macro-dialexten]
; Look up divert-all number
exten => s,1,DBGet(DIVERT=divertall/${ARG1})
; Dial the diverted-to extension
exten => s,2,Dial(Local/${DIVERT}@local,300)
exten => s,3,Hangup
; if the DBGet fails, we come here - jump to call attempt
exten => s,102,Goto(1001)
; if the Dial fails or is busy, we come here - jump to busy voicemail
exten => s,103,Goto(2001)
On a related note, how do you get a Cisco 7940 to dial numbers with a
hash in them, instead of just using the hash as a dial key. For
example, I have *#21# to check diverts, but the phone will just dial
"*" as soon as you type the # after it.
--
PGP key ID E85DC776 - finger abuse@mooli.org.uk for full key