[anrufregel]
exten => 622,1,Answer()
exten => 622,n,Set(CALLERID(name)=49${CALLERID(number):1})
exten => 622,n,Set(CALLERID(number)=49${CALLERID(number):1})
exten => 622,n,Background(hello)
exten => 622,n,Background(hello2)
exten => 622,n,WaitExten(10)
exten => 622,n,Background(hello)
exten => 622,n,Background(hello2)
exten => 622,n,WaitExten(10)
exten => 622,n,Dial(SIP/**601@Fritzbox)
exten => 1,1,Playback(auswahl1)
exten => 2,2,ExecIf($[ ${DEVICE_STATE(SIP/$**601@Fritzbox)} = BUSY ]?GoTo(2,4):Playback(hello))
exten => 2,3,GoToIf($[ ${DEVICE_STATE(SIP/$**601@Fritzbox)} = BUSY ]?:2,2)
exten => 1,2,Dial(SIP/**601@Fritzbox)
exten => 2,1,Playback(auswahl2)
exten => 2,2,ExecIf($[ ${DEVICE_STATE(SIP/$**602@Fritzbox)} = BUSY ]?GoTo(2,4):Playback(hello))
exten => 2,3,GoToIf($[ ${DEVICE_STATE(SIP/$**602@Fritzbox)} = BUSY ]?:2,2)
exten => 2,4,Dial(SIP/**602@Fritzbox)
exten => 91,1,Answer()
exten => 91,n,Record(/usr/share/asterisk/sounds/custom/hello3.ulaw,3,10)
exten => 91,n,Playback(/usr/share/asterisk/sounds/custom/hello3)
exten => 91,n,GoTo(91,1)
exten => 92,1,Answer()
exten => 92,n,Record(/usr/share/asterisk/sounds/custom/hello2.ulaw,,,,skip)
exten => 92,n,GoTo(622,5)
exten => 93,1,Answer()
exten => 93,n,Record(/usr/share/asterisk/sounds/custom/auswahl1.ulaw,,,,skip)
exten => 93,n,GoTo(622,4)
exten => 94,1,Answer()
exten => 94,n,Record(/usr/share/asterisk/sounds/custom/auswahl2.ulaw,,,,skip)
exten => 94,n,GoTo(622,4)
exten => i,1,GoTo(622,3)