[Asterisk-Users] Divert to arbitrary number.
Jaun Terblanche
jterblanche at altoa.com
Mon Jul 5 05:37:28 MST 2004
Not sure how to do on the Cisco, but I have found
that in certain setups * picks up # as %23.
Try putting *%2321%23,1,.... in the dialplan for *#21#,1,....
(or whatever your priority is)
-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com]On Behalf Of Peter Corlett
Sent: 05 July 2004 01:30 PM
To: asterisk-users at lists.digium.com
Subject: Re: [Asterisk-Users] Divert to arbitrary number.
Jaun Terblanche <jterblanche at 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 at mooli.org.uk for full key
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list