Guest User

Untitled

a guest
Jan 14th, 2013
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 2.83 KB | None | 0 0
  1. [alarm]
  2. ;waehrend der Feiertage kein Abwurf bei besetzt oder nicht-melden!!!
  3. exten => 300,1,NoOp(=== Alarm Queue ===)
  4.      same => n,NoOp(From: ${CALLERID(NUM)})
  5.      same => n,NoOp(To:   ${EXTEN})
  6.      same => n,Macro(Normalize)
  7. ;     same => n,AGI(ast_get_phonebook.php)
  8.      same => n,Set(CALLERID(NAME)="Hotline")
  9.  
  10.      same => n,GotoIf($[${DB_EXISTS(ALARM/320)} & ${DB_EXISTS(ALARM/323)}]?both)
  11.      same => n,GotoIf($[${DB_EXISTS(ALARM/320)}]?alarm1)
  12.      same => n,GotoIf($[${DB_EXISTS(ALARM/323)}]?alarm2)
  13.      same => n,Goto(vpl)
  14.  
  15.      same => n(alarm1),NoOp(Nur Platz 320 angemeldet oder frei)
  16.      same => n,GotoIf($[${SIPPEER(3201,curcalls)}>0]?vpl)
  17.      same => n,GotoIf($[${SIPPEER(3202,curcalls)}>0]?vpl)
  18.      same => n,NoOp(Platz 320 frei - rufe)
  19.      same => n,Dial(SIP/3201&SIP/3202,20)
  20. ;     same => n,Dial(SIP/3201&SIP/3202)
  21.      same => n,GotoIf($[${DIALSTATUS}!=ANSWER]?vpl)
  22.      same => n,Goto(hangup)
  23.  
  24.      same => n(alarm2),NoOp(Nur Platz 323 angemeldet oder frei)
  25.      same => n,GotoIf($[${SIPPEER(3231,curcalls)}>0]?vpl)
  26.      same => n,GotoIf($[${SIPPEER(3232,curcalls)}>0]?vpl)
  27.      same => n,NoOp(Platz 323 frei - rufe)
  28.      same => n,Dial(SIP/3231&SIP/3232,20)
  29. ;     same => n,Dial(SIP/3231&SIP/3232)
  30.      same => n,GotoIf($[${DIALSTATUS}!=ANSWER]?vpl)
  31.      same => n,Goto(hangup)
  32.  
  33.      same => n(both),NoOp(Platz 320 und 323 angemeldet)
  34.      same => n,GotoIf($[${SIPPEER(3201,curcalls)}>0]?alarm2)
  35.      same => n,GotoIf($[${SIPPEER(3202,curcalls)}>0]?alarm2)
  36.      same => n,GotoIf($[${SIPPEER(3231,curcalls)}>0]?alarm1)
  37.      same => n,GotoIf($[${SIPPEER(3232,curcalls)}>0]?alarm1)
  38.      same => n,Dial(SIP/3201&SIP/3202&SIP/3231&SIP/3232,20)
  39. ;     same => n,Dial(SIP/3201&SIP/3202&SIP/3231&SIP/3232)
  40.      same => n,GotoIf($[${DIALSTATUS}!=ANSWER]?vpl)
  41.      same => n,Goto(hangup)
  42.  
  43.      same => n(vpl),NoOp(Niemand angemeldet, frei oder erreichbar - VPL)
  44.      same => n,Set(CALLERID(NAME)=Abw Alarm)
  45.      same => n,Goto(from-858,vpl,1)
  46. ;     same => n,NoOp(Keine Vermittlung waehrend der Feiertage)
  47. ;     same => n,Busy()                                                      
  48.  
  49.      same => n(hangup),NoOp()
  50.      same => n,HangUp()
  51.  
  52.  
  53. exten => _alarm.,1,NoOp(=== An-/Abmeldung Alarm ===)
  54.          same => n,Answer()
  55.          same => n,GotoIf($[${DB_EXISTS(ALARM/${CALLERID(NUM)})}]?logoff:logon)
  56.  
  57.          same => n(logon),NoOp(Anmeldung Platz ${CALLERID(NUM)})
  58.          same => n,Set(DB(ALARM/${CALLERID(NUM)})=on)
  59.          same => n,Set(DEVICE_STATE(Custom:alarm${CALLERID(NUM)})=BUSY)
  60.          same => n,Goto(hangup)
  61.  
  62.          same => n(logoff),NoOp(Abmeldung Platz ${CALLERID(NUM)})
  63.          same => n,Set(old=${DB_DELETE(ALARM/${CALLERID(NUM)})})
  64.          same => n,Set(DEVICE_STATE(Custom:alarm${CALLERID(NUM)})=NOT_INUSE)
  65.          same => n,Goto(hangup)
  66.  
  67.          same => n(hangup),Hangup()
Advertisement
Add Comment
Please, Sign In to add comment