Monthly Archives: September 2014

ASERISK EXTENSION_STATE


[from-agents]

exten => 4003,hint,SIP/${EXTEN}
exten => 4002,hint,SIP/${EXTEN}
exten => 4001,hint,SIP/${EXTEN}
exten => _4X.,1,Set(EXT_STATE=${EXTENSION_STATE(${EXTEN}@from-agents)})

exten => _4X.,n,ExecIf($[ “${EXT_STATE}” == “NOT_INUSE” ]?Set(IN_USED=READY))

exten => _4X.,n,ExecIf($[ “${EXT_STATE}” == “INUSE” | “${EXT_STATE}” == “RINGING” | “${EXT_STATE}” == “INUSE&RINGING” | “${EXT_STATE}” == “BUSY” ]?Set(IN_USED=BUSY))

exten => _4X.,n,ExecIf($[ “${EXT_STATE}” == “UNAVAILABLE” | “${EXT_STATE}” == “UNKNOWN” ]?Set(IN_USED=UNAVAILABLE))
exten => _4X.,n,Noop(EXTENSION_STATUS=${IN_USED})

exten => _4X.,n(ok),Dial(SIP/${EXTEN},30,A(/var/lib/asterisk/sounds/vm-tmpexists)) –> play sound ketika di answer

exten => _4X.,n,Hangup()

shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: