[asterisk-users] Erratic Snom MWI lights
Andrew Kohlsmith
akohlsmith-asterisk at benshaw.com
Wed Jan 17 14:10:33 MST 2007
On Wednesday 17 January 2007 3:43 pm, Colin Anderson wrote:
> Sometimes it's "asterisk", sometimes it's "unknown" sometimes, it's
> "Unknown" so:
>
> exten => asterisk,1,VoicemailMain(${CALLERIDNUM})
> exten => Unknown,1,VoicemailMain(${CALLERIDNUM})
> exten => unknown,1,VoicemailMain(${CALLERIDNUM})
>
> This behavior varies seems like according to firmware rev. I just put these
> lines in the default context (I run a modified version of the AMP dialplan,
> so the context I use is [from-internal]
This is just a plain old bad idea, especially if your caller id is not
consistently and religiously set up. It seems like you're trusting the
phones too much.
Personally, my voicemail stuff looks a little like this:
exten => _*98XXX,1,VoiceMailMain(${EXTEN:3}@default)
exten => *97,1,GotoIf($[${LEN(${CALLERID(num)})} == 3]?good)
exten => *97,n,Set(VMBOX=)
exten => *97,n(done),VoiceMailMain(${VMBOX}@default)
and then the standard extension:
; if VOICEMAILTO is set, send voicemail to there instead of ${ARG1}
[macro-stdexten]
exten => s,1,GotoIf($[ "${VOICEMAILTO}" != "" ]?vmto)
exten => s,n,Set(VOICEMAILTO=${ARG1})
exten => s,n(vmto),Dial(${ARG2},20,g)
exten => s,n,GotoIf($[${DIALSTATUS} = BUSY]?busy)
exten => s,n,GotoIf($[${DIALSTATUS} = CONGESTION]?busy)
exten => s,n,GotoIf($[${DIALSTATUS} = ANSWER]?done)
exten => s,n,Voicemail(${VOICEMAILTO}@default,su)
exten => s,n,Goto(done)
exten => s,n(busy),Voicemail(${VOICEMAILTO}@default,sb)
exten => s,n(done),Hangup
The phones (polycom in my case) are set that vmcallback is *97, and *98XXX is
used more for administrators and DISA-style applications.
-A.
More information about the asterisk-users
mailing list