How to overcome Call Failed “Busy Here” continuous on xlite


Ketika anda menelepon via xlite atau sejenisnya, dimana nomor yang di tuju sibuk, me-reject dll, maka yang terlihat di xlite adalah Call Failed “Busy Here” dan secara terus menerus akan terdegar tone ” tut tut tut tut” yang berkepanjangan.

Berikut adalah tip private bagaimana cara mengatasi call Failed “Busy here” pada xlite sehingga apapun kondisinya otomatis hangup.

Pada script dialplan dibawah ini maka saya menangkap ${DIALSTATUS} dan ${HANGUPCAUSE} setip ada call outbound. Nah misalnya saja , nomor yang dituju me-REJECT maka akan kita dapatkan ${DIALSTATUS} or ${CAUSEHANUP} dan pasti pasti ada bunyi ” tut tut tut: yang secara terus menurus, maka ke priority hangup say menambahkan sebuah voice “silence” di command playback:) dan pastinya otomatis hangup:)

exten => _9X.,1,Dial(SIP/1000/${EXTEN:1},30,tT)
;exten => _9X.,n,NoOp(DIALSTATUS=${DIALSTATUS} dan HANGUPCAUSE=${HANGUPCAUSE})
exten => _9X.,n,Macro(dial-result,${DIALSTATUS})
exten => _9X.,n,Hangup()

[macro-dial-result]
#include “macro-dial-result.conf”

exten => s,1,Wait(1)
exten => s,2,Noop(${CHANNEL})
exten => s,3,NoCDR()
exten => s,4,GotoIf($[${ISNULL(${ARG1})}]?7:5)
exten => s,5,Set(RC=${ARG1})
exten => s,6,Goto(s,9)
exten => s,7,GotoIf($[${ISNULL(${DIALSTATUS})}]?8:rc-${DIALSTATUS},1)
exten => s,8,Set(RC=${IF($[${ISNULL(${HANGUPCAUSE})}]?0:${HANGUPCAUSE})})
exten => s,9,Goto(rc-${RC},1)
exten => s,10,Hangup(${RC})
exten => i,1,Set(RC=0)
exten => i,2,Goto(s,9)

;; remap DIALSTATUS to HANGUPCAUSE
exten => rc-ANSWER,1,Set(RC=16)
exten => rc-ANSWER,2,Goto(s,9)

exten => rc-BUSY,1,Set(RC=17)
exten => rc-BUSY,2,Goto(s,9)

exten => rc-CANCEL,1,Set(RC=16)
exten => rc-CANCEL,2,Goto(s,9)

exten => rc-CHANUNAVAIL,1,Set(RC=44)
exten => rc-CHANUNAVAIL,2,Goto(s,9)

exten => rc-CONGESTION,1,Set(RC=34)
exten => rc-CONGESTION,2,Goto(s,9)

exten => rc-NOANSWER,1,Set(RC=19)
exten => rc-NOANSWER,2,Goto(s,9)

;; HANGUPCAUSE mapping
exten => rc-0,1,NoOp(NOTDEFINED)
exten => rc-0,n,Goto(s,10)

exten => rc-1,1,NoOp(UNALLOCATED)
exten => rc-1,n,Goto(s,10)

exten => rc-2,1,NoOp(NO_ROUTE_TRANSIT_NET)
exten => rc-2,n,Goto(s,10)

exten => rc-3,1,NoOp(NO_ROUTE_DESTINATION)
exten => rc-3,n,Goto(s,10)

exten => rc-6,1,NoOp(CHANNEL_UNACCEPTABLE)
exten => rc-6,n,Goto(s,10)

exten => rc-7,1,NoOp(CALL_AWARDED_DELIVERED)
exten => rc-7,n,Goto(s,10)

exten => rc-16,1,NoOp(NORMAL_CLEARING)
exten => rc-16,n,Goto(s,10)

exten => rc-17,1,NoOp(USER_BUSY)
;exten => rc-17,n,Busy() ; we need this for bristuff, because bristuff seems not to support Hangup(17)
;exten => rc-17,n,SoftHangup()
exten => rc-17,n,Playback(silence)
exten => rc-17,n,Goto(s,10)

exten => rc-18,1,NoOp(NO_USER_RESPONSE)
exten => rc-18,n,Goto(s,10)

exten => rc-19,1,NoOp(NO_ANSWER)
exten => rc-19,n,Playback(silence)
exten => rc-19,n,Goto(s,10)

exten => rc-21,1,NoOp(CALL_REJECTED)
exten => rc-21,n,Goto(s,10)

exten => rc-22,1,NoOp(NUMBER_CHANGED)
exten => rc-22,n,Goto(s,10)

exten => rc-27,1,NoOp(DESTINATION_OUT_OF_ORDER)
exten => rc-27,n,Goto(s,10)

exten => rc-28,1,NoOp(INVALID_NUMBER_FORMAT)
exten => rc-28,n,Goto(s,10)

exten => rc-29,1,NoOp(FACILITY_REJECTED)
exten => rc-29,n,Goto(s,10)

exten => rc-30,1,NoOp(RESPONSE_TO_STATUS_ENQUIRY)
exten => rc-30,n,Goto(s,10)

exten => rc-31,1,NoOp(NORMAL_UNSPECIFIED)
exten => rc-31,n,Goto(s,10)

exten => rc-34,1,NoOp(NORMAL_CIRCUIT_CONGESTION)
;exten => rc-34,n,Congestion() ; we need this for bristuff, because bristuff seems not to support Hangup(34)
exten => rc-34,n,Playback(vm-goodbye)
exten => rc-34,n,Goto(s,10)

exten => rc-38,1,NoOp(NETWORK_OUT_OF_ORDER)
exten => rc-38,n,Goto(s,10)

exten => rc-41,1,NoOp(NORMAL_TEMPORARY_FAILURE)
exten => rc-41,n,Goto(s,10)

exten => rc-42,1,NoOp(SWITCH_CONGESTION)
exten => rc-42,n,Goto(s,10)

exten => rc-43,1,NoOp(ACCESS_INFO_DISCARDED)
exten => rc-43,n,Goto(s,10)

exten => rc-44,1,NoOp(REQUESTED_CHAN_UNAVAIL)
exten => rc-44,n,Goto(s,10)

exten => rc-45,1,NoOp(PRE_EMPTED)
exten => rc-45,n,Goto(s,10)

exten => rc-50,1,NoOp(FACILITY_NOT_SUBSCRIBED)
exten => rc-50,n,Goto(s,10)

exten => rc-52,1,NoOp(OUTGOING_CALL_BARRED)
exten => rc-52,n,Goto(s,10)

exten => rc-54,1,NoOp(INCOMING_CALL_BARRED)
exten => rc-54,n,Goto(s,10)

exten => rc-57,1,NoOp(BEARERCAPABILITY_NOTAUTH)
exten => rc-57,n,Goto(s,10)

exten => rc-58,1,NoOp(BEARERCAPABILITY_NOTAVAIL)
exten => rc-58,n,Goto(s,10)

exten => rc-65,1,NoOp(BEARERCAPABILITY_NOTIMPL)
exten => rc-65,n,Goto(s,10)

exten => rc-66,1,NoOp(CHAN_NOT_IMPLEMENTED)
exten => rc-66,n,Goto(s,10)

exten => rc-69,1,NoOp(FACILITY_NOT_IMPLEMENTED)
exten => rc-69,n,Goto(s,10)

exten => rc-81,1,NoOp(INVALID_CALL_REFERENCE)
exten => rc-81,n,Goto(s,10)

exten => rc-88,1,NoOp(INCOMPATIBLE_DESTINATION)
exten => rc-88,n,Goto(s,10)

exten => rc-95,1,NoOp(INVALID_MSG_UNSPECIFIED)
exten => rc-95,n,Goto(s,10)

exten => rc-96,1,NoOp(MANDATORY_IE_MISSING)
exten => rc-96,n,Goto(s,10)

exten => rc-97,1,NoOp(MESSAGE_TYPE_NONEXIST)
exten => rc-97,n,Goto(s,10)

exten => rc-98,1,NoOp(WRONG_MESSAGE)
exten => rc-98,n,Goto(s,10)
exten => rc-99,1,NoOp(IE_NONEXIST)
exten => rc-99,n,Goto(s,10)

exten => rc-100,1,NoOp(INVALID_IE_CONTENTS)
exten => rc-100,n,Goto(s,10)

exten => rc-101,1,NoOp(WRONG_CALL_STATE)
exten => rc-101,n,Goto(s,10)

exten => rc-102,1,NoOp(RECOVERY_ON_TIMER_EXPIRE)
exten => rc-102,n,Goto(s,10)

exten => rc-103,1,NoOp(MANDATORY_IE_LENGTH_ERROR)
exten => rc-103,n,Goto(s,10)

exten => rc-111,1,NoOp(PROTOCOL_ERROR)
exten => rc-111,n,Goto(s,10)

exten => rc-127,1,NoOp(INTERWORKING)
exten => rc-127,n,Goto(s,10)

exten => rc-.,1,Noop(TRUNK Dial failed due to ${DIALSTATUS} and hangupCause ${HANGUPCAUSE}- failing through to other trunks)
exten => rc-.,n,Busy()
exten => rc-.,n,Goto(s,10)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

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: