[Asterisk-Users] Re: Budgetone and MWI
Aldo Bergamini
aab.lists at nb-a.com
Sat Jan 15 05:25:26 MST 2005
Aldo Bergamini is believed to have said:
>This is how it was before:
>
>
>; EXT. 2XXX
>; generic dialer
>
>exten => _2XXX,1,Dial(SIP/${EXTEN},20)
>exten => _2XXX,2,Voicemail(u${EXTEN})
>exten => _2XXX,3,Hangup()
>exten => _2XXX,102,Voicemail(b${EXTEN})
>exten => _2XXX,103,Hangup()
>
>
>And this is how I changed it:
>
>exten => _2XXX,1,GotoIf(${CALLERIDNUM}=${EXTEN}?5)
>exten => _2XXX,2,Dial(SIP/${EXTEN},20)
>exten => _2XXX,3,Voicemail(u${EXTEN})
>exten => _2XXX,4,Hangup()
>exten => _2XXX,5,Voicemailmain(s${CALLERIDNUM})
>exten => _2XXX,103,Voicemail(b${EXTEN})
>exten => _2XXX,104,Hangup()
>
>
>
>I reloaded the dialplan and it works! Asterisk is astonishingly flexible...
Well, sort of...
Pressing the message button sends me to voicemailmain. However, I go to
voicemailmain even if from ext. 2102 I dial 2101...
This is clearly a problem.
To understand what is going on I changed the 'dialer' fragment as follows:
; EXT. 2XXX
; generic dialer
exten => _2XXX,1,Answer
exten => _2XXX,2,NoOp(${CALLERID})
exten => _2XXX,3,GotoIf(${CALLERID}=${EXTEN}?7)
exten => _2XXX,4,Dial(SIP/${EXTEN},20)
exten => _2XXX,5,Voicemail(u${EXTEN})
exten => _2XXX,6,Hangup()
exten => _2XXX,7,Voicemailmain(s${CALLERIDNUM})
exten => _2XXX,104,Voicemail(b${EXTEN})
exten => _2XXX,105,Hangup()
Now I have noticed two things I do not understand:
a) I do not see the caller id printed on the console; why?
b) as it is now the GotoIf never matches; even if I am pressing the
message id button on one of the Budgetones; or if I dial my own extension..
I am running this version of Asterisk:
Asterisk CVS-HEAD-08/13/04-12:00:00-BRI-stuffed-0.1.0-RC4a built by
abuild at reger on a i686 running Linux
Thanks for any hint...
Aldo
More information about the asterisk-users
mailing list