[rwl]
exten => _0.,1,NoOp(RWL aus ${EXTEN} 0[1=sofort|2=BUSY|3=nach Zeit|4.=Folow me])
exten => 0,1,NoOp(RWL aus ALLE)
exten => _04.,2,Set(RWL_TEXT=${IF(${DB_EXISTS(RWL/${EXTEN:2})}?${DB_RESULT}:0!0!0!0!0!0!25)})
exten => _0.,2,Set(RWL_TEXT=${IF(${DB_EXISTS(RWL/${CALLERID(number)})}?${DB_RESULT}:0!0!0!0!0!0!25)})
exten => 0,2,Set(RWL_TEXT=${IF(${DB_EXISTS(RWL/${CALLERID(number)})}?${DB_RESULT}:0!0!0!0!0!0!25)})
exten => 0,3,Set(RWL_EA_sofort=0)
exten => _04.,3,Set(RWL_EA_sofort=0)
exten => 01,3,Set(RWL_EA_sofort=0)
exten => _0!,3,Set(RWL_EA_sofort=${CUT(DB_RESULT,'!',1)})
exten => _0!,4,Set(RWL_sofort=${CUT(DB_RESULT,'!',2)})
exten => 0,5,Set(RWL_EA_busy=0)
exten => 02,5,Set(RWL_EA_busy=0)
exten => _0!,5,Set(RWL_EA_busy=${CUT(DB_RESULT,'!',3)})
exten => _0!,6,Set(RWL_busy=${CUT(DB_RESULT,'!',4)})
exten => 0,7,Set(RWL_EA_zeit=0)
exten => 03,7,Set(RWL_EA_zeit=0)
exten => _0!,7,Set(RWL_EA_zeit=${CUT(DB_RESULT,'!',5)})
exten => _0!,8,Set(RWL_zeit=${CUT(DB_RESULT,'!',6)})
exten => _0!,9,Set(RWL_VE_zeit=${CUT(DB_RESULT,'!',7)})
exten => _0!,10,Set(RWL_EA_sofort=1)
exten => _04.,11,SET(DB(RWL/${EXTEN:2})=${RWL_EA_sofort}!${RWL_sofort}!${RWL_EA_busy}!${RWL_busy}!${RWL_EA_zeit}!${RWL_zeit}!${RWL_VE_zeit})
exten => 0,11,SET(DB(RWL/${CALLERID(number)})=${RWL_EA_sofort}!${RWL_sofort}!${RWL_EA_busy}!${RWL_busy}!${RWL_EA_zeit}!${RWL_zeit}!${RWL_VE_zeit})
exten => _0.,11,SET(DB(RWL/${CALLERID(number)})=${RWL_EA_sofort}!${RWL_sofort}!${RWL_EA_busy}!${RWL_busy}!${RWL_EA_zeit}!${RWL_zeit}!${RWL_VE_zeit})
exten => _0!,12,Playback(rufuml_aus)
exten => _0!,n,Wait(1)
exten => _0!,n,NoOp(${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
exten => _0!,n,Hangup
exten => _1.,1,NoOp(RWL sofort ein mit Rufnummer)
exten => 1,1,NoOp(RWL sofort ein ohne nummer)
exten => _1!,2,Set(RWL_TEXT=${IF(${DB_EXISTS(RWL/${CALLERID(number)})}?${DB_RESULT}:0!0!0!0!0!0!25)})
exten => _1!,n,Set(RWL_EA_sofort=${CUT(DB_RESULT,'!',1)})
exten => _1!,n,Set(RWL_sofort=${CUT(DB_RESULT,'!',2)})
exten => _1!,n,Set(RWL_EA_busy=${CUT(DB_RESULT,'!',3)})
exten => _1!,n,Set(RWL_busy=${CUT(DB_RESULT,'!',4)})
exten => _1!,n,Set(RWL_EA_zeit=${CUT(DB_RESULT,'!',5)})
exten => _1!,n,Set(RWL_zeit=${CUT(DB_RESULT,'!',6)})
exten => _1!,n,Set(RWL_VE_zeit=${CUT(DB_RESULT,'!',7)})
exten => _1!,n(rwl1),Set(RWL_EA_sofort=1)
exten => 1,rwl1+1,Goto(rwl1_on)
exten => _1!,rwl1+1,Set(RWL_sofort=${EXTEN:1})
exten => _1!,rwl1+2(rwl1_on),SET(DB(RWL/${CALLERID(number)})=${RWL_EA_sofort}!${RWL_sofort}!${RWL_EA_busy}!${RWL_busy}!${RWL_EA_zeit}!${RWL_zeit}!${RWL_VE_zei
exten => _1!,n,Playback(rufuml_an)
exten => _1!,n,SayDigits(${RWL_sofort})
exten => _1!,n,Wait(1)
exten => _1!,n,NoOp(${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
exten => _1!,n,Hangup
exten => _2.,1,NoOp(RWL BUSY ein mit Rufnummer)
exten => 2,1,NoOp(RWL BUSY ein ohne nummer)
exten => _2!,2,Set(RWL_TEXT=${IF(${DB_EXISTS(RWL/${CALLERID(number)})}?${DB_RESULT}:0!0!0!0!0!0!25)})
exten => _2!,n,Set(RWL_EA_sofort=${CUT(DB_RESULT,'!',1)})
exten => _2!,n,Set(RWL_sofort=${CUT(DB_RESULT,'!',2)})
exten => _2!,n,Set(RWL_EA_busy=${CUT(DB_RESULT,'!',3)})
exten => _2!,n,Set(RWL_busy=${CUT(DB_RESULT,'!',4)})
exten => _2!,n,Set(RWL_EA_zeit=${CUT(DB_RESULT,'!',5)})
exten => _2!,n,Set(RWL_zeit=${CUT(DB_RESULT,'!',6)})
exten => _2!,n,Set(RWL_VE_zeit=${CUT(DB_RESULT,'!',7)})
exten => _2!,n(rwl2),Set(RWL_EA_busy=1)
exten => 2,rwl2+1,Goto(rwl2_on)
exten => _2!,rwl2+1,Set(RWL_busy=${EXTEN:1})
exten => _2!,rwl2+2(rwl2_on),SET(DB(RWL/${CALLERID(number)})=${RWL_EA_sofort}!${RWL_sofort}!${RWL_EA_busy}!${RWL_busy}!${RWL_EA_zeit}!${RWL_zeit}!${RWL_VE_zei
exten => _2!,n,Playback(rufuml_an)
exten => _2!,n,SayDigits(${RWL_busy})
exten => _2!,n,Wait(1)
exten => _2!,n,NoOp(${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
exten => _2!,n,Hangup
exten => _3.,1,NoOp(RWL nach Zeit ein mit Rufnummer)
exten => 3,1,NoOp(RWL nach Zeit ein ohne nummer)
exten => _3!,2,Set(RWL_TEXT=${IF(${DB_EXISTS(RWL/${CALLERID(number)})}?${DB_RESULT}:0!0!0!0!0!0!25)})
exten => _3!,n,Set(RWL_EA_sofort=${CUT(DB_RESULT,'!',1)})
exten => _3!,n,Set(RWL_sofort=${CUT(DB_RESULT,'!',2)})
exten => _3!,n,Set(RWL_EA_busy=${CUT(DB_RESULT,'!',3)})
exten => _3!,n,Set(RWL_busy=${CUT(DB_RESULT,'!',4)})
exten => _3!,n,Set(RWL_EA_zeit=${CUT(DB_RESULT,'!',5)})
exten => _3!,n,Set(RWL_zeit=${CUT(DB_RESULT,'!',6)})
exten => _3!,n,Set(RWL_VE_zeit=${CUT(DB_RESULT,'!',7)})
exten => _3!,n(rwl3),Set(RWL_EA_zeit=1)
exten => 3,rwl3+1,Goto(rwl3_on)
exten => _3!,rwl3+1,Set(RWL_zeit=${EXTEN:1})
exten => _3!,rwl3+2(rwl3_on),SET(DB(RWL/${CALLERID(number)})=${RWL_EA_sofort}!${RWL_sofort}!${RWL_EA_busy}!${RWL_busy}!${RWL_EA_zeit}!${RWL_zeit}!${RWL_VE_z
exten => _3!,n,Playback(rufuml_an)
exten => _3!,n,SayDigits(${RWL_zeit})
exten => _3!,n,Wait(1)
exten => _3!,n,NoOpp(${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
exten => _3!,n,Hangup
exten => _4.,1,NoOp(RWL Follow me)
exten => _4!,2,Set(RWL_TEXT=${IF(${DB_EXISTS(RWL/${EXTEN:1})}?${DB_RESULT}:0!0!0!0!0!0!25)})
exten => _4!,n,Set(RWL_EA_sofort=${CUT(DB_RESULT,'!',1)})
exten => _4!,n,Set(RWL_sofort=${CUT(DB_RESULT,'!',2)})
exten => _4!,n,Set(RWL_EA_busy=${CUT(DB_RESULT,'!',3)})
exten => _4!,n,Set(RWL_busy=${CUT(DB_RESULT,'!',4)})
exten => _4!,n,Set(RWL_EA_zeit=${CUT(DB_RESULT,'!',5)})
exten => _4!,n,Set(RWL_zeit=${CUT(DB_RESULT,'!',6)})
exten => _4!,n,Set(RWL_VE_zeit=${CUT(DB_RESULT,'!',7)})
exten => _4!,n,Set(RWL_EA_sofort=1)
exten => _4!,n,Set(RWL_sofort=${CALLERID(number)})
exten => _4!,n,SET(DB(RWL/${EXTEN:1})=${RWL_EA_sofort}!${RWL_sofort}!${RWL_EA_busy}!${RWL_busy}!${RWL_EA_zeit}!${RWL_zeit}!${RWL_VE_zeit})
exten => _4!,n,Playback(rufuml_an)
exten => _4!,n,SayDigits(${RWL_sofort})
exten => _4!,n,Wait(1)
exten => _4!,n,NoOp(${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
exten => _4!,n,Hangup