Ich hab es jetzt so gelöst, dass ich 1 bzw. 2 wählen muss um die beiden Mailboxen abzufragen. Ich würde es aber gerne ohne Ziffernwahl machen.
extensions.conf
[internal]
exten => 10,1,Dial(Zap/g1/10,20,Tt)
exten => 10,2,Hangup
exten => 20,1,Dial(Zap/g1/20,20,Tt)
exten => 20,2,Hangup
exten => 30,1,Dial(Zap/g1/30,20,Tt)
exten => 30,2,Hangup
exten => 40,1,Dial(Zap/g1/40,20,Tt)
exten => 40,2,Hangup
exten => 123456,1,Dial(Zap/g1/123456,20,Tt)
exten => 123456,2,Voicemail2(su123456)
exten => 123456,3,Hangup
exten => 123456,102,Voicemail2(sb123456)
exten => 123456,103,Hangup
exten => 654321,1,Dial(Zap/g1/654321,20,Tt)
exten => 654321,2,Voicemail2(su654321)
exten => 654321,3,Hangup
exten => 654321,102,Voicemail2(sb654321)
exten => 654321,103,Hangup
exten => 1234567,1,Dial(Zap/g1/654321,20,Tt)
exten => 1234567,2,Voicemail2(su654321)
exten => 1234567,3,Hangup
exten => 1234567,102,Voicemail2(sb654321)
exten => 1234567,103,Hangup
[external-ISDN]
exten => _9.,1,Dial(CAPI/@123456:${EXTEN:1},,Tt)
exten => _9.,2,Congestion
[external-SIP]
exten => _0.,1,Dial(SIP/${EXTEN:1}@1und1,30,Ttr)
exten => _0.,2,Congestion
[vmailbox]
;
; Mit 8000 kann man die Voicemailbox anrufen.
;
ANZAHL=0
exten => 1,1,HasNewVoiceMail(123456@default:INBOX|ANZAHL)
exten => 1,2,SendText(keine Mail :-()
exten => 1,102,SendText(${ANZAHL} Mail(s) fuer Moni)
exten => 1,103,Wait(5)
exten => 1,104,VoicemailMain(123456)
exten => 2,1,HasNewVoiceMail(654321@default:INBOX|ANZAHL)
exten => 2,2,SendText(keine Mail :-()
exten => 2,102,SendText(${ANZAHL} Mail(s) fuer Juergen)
exten => 2,103,Wait(5)
exten => 2,104,VoicemailMain(654321)
;exten => 8000,1,VoicemailMain
;exten => 8000,102,VoicemailMain
[conference]
exten => 1000,1,MeetMe(1234)
[default]
include => vmailbox
include => internal
include => external-ISDN
include => external-SIP
include => conference