Verwenden der Goto-Anweisung
Buch - Scripte

 

beispiel.conf


[macro-localsip]
exten => s,1,Set(LANGUAGE()=de)
exten => s,n,Dial(SIP/${ARG1},10,tT)
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Playback(vm-theperson)
exten => s-NOANSWER,n,SayDigits(${ARG1})
exten => s-NOANSWER,n,Playback(vm-isunavail)
exten => s-NOANSWER,n,Hangup

exten => s-BUSY,1,Playback(vm-theperson)
exten => s-BUSY,2,SayDigits(${ARG1})
exten => s-BUSY,3,Playback(vm-isonphone)
exten => s-BUSY,Hangup

exten => _s-.,1,Goto(s-NOANSWER,1)