Sysop installieren: Unterschied zwischen den Versionen

Aus metasec wiki
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „*agenten anlegen *wahlplan anlgen / ändern / anpassen *agis installieren *warteschlangen anlegen **z.b. "zentrale" <pre> [amt] exten => 0, 1, Set(__SYSOP_CALLI…“)
(kein Unterschied)

Version vom 11. November 2009, 22:36 Uhr

  • agenten anlegen
  • wahlplan anlgen / ändern / anpassen
  • agis installieren
  • warteschlangen anlegen
    • z.b. "zentrale"

[amt]
exten => 0, 1, Set(__SYSOP_CALLIDNUM=${CALLERID(num)})
exten => 0, 2, Set(__SYSOP_EXTEN=${EXTEN})
exten => 0, 3, Set(__SYSOP_CHANNEL=${CHANNEL})
exten => 0, 4, GoTo(default,105,1)

exten => _XXX,1,GoTo(default,${EXTEN},1)

[default]

; zentrale 
exten => 105, 1, Set(UML=${DB(uml/zentrale)})
exten => 105, 2, GoToIf($["${UML}"="1"]?100)
exten => 105, 3, Answer
exten => 105, 4, Queue(zentrale)
exten => 105, 5, NoOp(=== ABWURF AUS DER AGENTENWS ===)
exten => 105, 6, Macro(ab_zentrale,${V_TARGET_N})
exten => 105, 7, Hangup

; agentenanmeldung über sysop webgui
exten => _sysop., 1, Answer
exten => _sysop., 2, Set(AGENTID=${CUT(EXTEN|-|2)})
exten => _sysop., 3, Set(ACTION=${CUT(EXTEN|-|3)})
exten => _sysop., 4, NoOp(${AGENTID} ${ACTION} ${EXTEN})
exten => _sysop., 5, GoToIf($["${ACTION}"="login"]?100)
exten => _sysop., 6, Agi(zphone_sysop_agent.php,${AGENTID},logout)
exten => _sysop., 7, Playback(agent-loggedoff)
exten => _sysop., 8, Hangup

exten => _sysop., 100, Agi(zphone_sysop_agent.php,${AGENTID},login)
exten => _sysop., 101, Playback(agent-loginok)
exten => _sysop., 102, Hangup


; wildcardrouting
exten => _ZXX, 1, Agi(zphone_sysop_macro.php,${EXTEN})
exten => _ZXX, 2, Set(UML=${DB(uml/zentrale)})
exten => _ZXX, 3, NoOp(${EXTEN} ${V_TARGET} ${V_TARGET_N} ${V_TAG} ${V_TIME} ${V_SOUND} ${UML})
exten => _ZXX, 4, GoToIf($["${CUSTOMER}"="V"]?100)
exten => _ZXX, 5, GoToIf($["${CUSTOMER}"="B"]?200)
exten => _ZXX, 6, GoTo(default,105,1)

exten => _ZXX, 100, NoOp(Virtueller Kunde)
exten => _ZXX, 101, TrySystem(/usr/local/metasec/bin/zphone_msg.sh "${EXTEN}" "${CALLERID(num)}" i "${CHANNEL}" "${UNIQUEID}")
exten => _ZXX, 102, Set(__SYSOP_EXTEN=${EXTEN})
exten => _ZXX, 103, Set(__SYSOP_CHANNEL=${CHANNEL})
exten => _ZXX, 104, Set(__SYSOP_CALLIDNUM=${CALLERID(num)})
exten => _ZXX, 105, GoToIf($["${UML}"!="1"]?200)
exten => _ZXX, 106, GoTo(default,${V_TARGET_N},1)

exten => _ZXX, 200, GoToIf($["${V_TARGET}"="105"]?300)
exten => _ZXX, 201, GoToIf($[${LEN(${V_TARGET})}>4]?400)
exten => _ZXX, 202, GoTo(default,${V_TARGET},1)

exten => _ZXX, 300, NoOp
exten => _ZXX, 301, Set(__SYSOP_CALLIDNUM=${CALLERID(num)})
exten => _ZXX, 302, Set(__SYSOP_EXTEN=${EXTEN})
exten => _ZXX, 303, Set(__SYSOP_CHANNEL=${CHANNEL})
exten => _ZXX, 304, GoTo(default,105,1)
exten => _ZXX, 305, Hangup

exten => _ZXX, 400, Set(CDR(accountcode)=${EXTEN})
exten => _ZXX, 401, Set(CALLERID(num)=${EXTEN})
exten => _ZXX, 402, GoTo(default,${V_TARGET},1)


[callback-cc]
exten => h, 1, NoOp(--- kunde hat aufgelegt ---)
exten => h, 2, Macro(callupdate,${SYSOP_CHANNEL},${SYSOP_EXTEN},${EXTEN})

exten => _1XX, 1, TrySystem(/var/www/webtapi/sysop/scripts/caller_info.sh ${SYSOP_EXTEN} ${SYSOP_CHANNEL} ${SYSOP_CALLIDNUM} ${EXTEN})
exten => _1XX, 2, Wait(1)
exten => _1XX, 3, Dial(SIP/${EXTEN},,M(callupdate^${SYSOP_CHANNEL}^${SYSOP_EXTEN}^${EXTEN}))
exten => _1XX, 4, Hangup

[sysop]

#include extensions-custom-sysop.conf

#include extensions-fax-sysop.conf

exten => _0X., 1, Set(CALLERID(num)=987654321)
exten => _0X., 2, Dial(SIP/${EXTEN:1}@yps)

exten => _11X, 1, SIPAddHeader(Alert-Info: info=alert-autoanswer)
exten => _11X, 2, Set(_ALERT_INFO=info=alert-autoanswer)
exten => _11X, 3, Dial(SIP/${EXTEN})

exten => _70X., 1, NoOp(==== SYSOP CALL ${EXTEN} ======)
exten => _70X., 2, Set(CDR(accountcode)=${EXTEN:2:3})
exten => _70X., 3, Set(CALLERID(num)=${EXTEN:2:3})
exten => _70X., 4, Dial(SIP/${EXTEN:6}@yps)
exten => _70X., 5, Hangup

exten => _7ZX., 1, NoOp(==== SYSOP CALL ${EXTEN} ======)
exten => _7ZX., 2, Set(CDR(accountcode)=${EXTEN:1:4})
exten => _7ZX., 3, Set(CALLERID(num)=${EXTEN:1:4})
exten => _7ZX., 4, Dial(SIP/${EXTEN:6}@yps)
exten => _7ZX., 5, Hangup

exten => _XXX, 1, GoTo(default,${EXTEN},1)

exten => _XXXX, 1, GoTo(default,${EXTEN},1)

[sysop_meetme]

#include extensions-custom-sysop_meetme.conf

#include extensions-fax-sysop_meetme.conf
exten => _X., 1, Answer
exten => _X., 2, MeetMe(${EXTEN},dq)
exten => _X., 3, Hangup