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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Peter Corlett
Sent: 05 July 2004 01:30 PM
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] Divert to arbitrary number.


Jaun Terblanche <[EMAIL PROTECTED]> 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/[EMAIL PROTECTED],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 [EMAIL PROTECTED] for full key
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to