Custom Search

News World

Dec 4, 2011

VoIP (10)! FreePBX CONFIGURATION FOR INTERCONNECTION WITH SKYPE, Gizmo5 AND VOIP




Create IVR (Section 2)
Log into the linux console and add the following code to the file
/ etc / asterisk / extensions_custom.conf


[baca_tiket]
exten = h,1,Hangup
exten = s,1,Set(LOOPCOUNT=0)
exten = s,n(begin),Set(TIMEOUT(digit)=3)
exten = s,n,Background(custom/welcome)
exten = s,n,Set(TIMEOUT(response)=10)
; Read DTMF 12 Digit, Di ulang max 3X kalau timeout
exten = s,n,Read(INPUT_TIKET,custom/if-u-know-ext-dial,19,,3)
; Pengecekan kalau inputan kosong
exten = s,n,Gotoif($[ "${LEN(${INPUT_TIKET})}" < "1"]?i,1)
; Digit lebih dari 4 karakter
exten = s,n,Gotoif($[ ${LEN(${INPUT_TIKET})} > 4]?checkMore4Digit)
; Digit lebih dari 10 karakter
exten = s,n,Gotoif($[ ${LEN(${INPUT_TIKET})} >10]?checkMore4Digit)
; Digit diawali 1 ke arah Trunk Nortel
exten = s,n,Gotoif($[ "${INPUT_TIKET:0:1}" = "1"]?dialNortel)
; Digit diawali 2 ke arah Trunk Nortel
exten = s,n,Gotoif($[ "${INPUT_TIKET:0:1}" = "2"]?dialNortel)
; Digit diawali 3 ke arah Trunk Nortel
exten = s,n,Gotoif($[ "${INPUT_TIKET:0:1}" = "3"]?dialNortel)
; Digit diawali 4 ke arah Trunk Nortel
exten = s,n,Gotoif($[ "${INPUT_TIKET:0:1}" = "4"]?dialNortel)
; Digit diawali 6 direct dial ekstension voip
exten = s,n,Gotoif($[ "${INPUT_TIKET:0:1}" = "6"]?dialVoIP)
; Loncat ke label checkMore4Digit
exten = s,n,Goto(checkMore4Digit)
; Dial via trunk VoIPToNortel
exten = s,n(dialNortel),Dial(SIP/VoIPToNortel/${INPUT_TIKET}) exten = s,n,Hangup
; Dial via langsung ke ekstension voip
exten = s,n(dialVoIP),Dial(SIP/${INPUT_TIKET})
exten = s,n,Hangup
; Panjang digit lebih dari 4 karakter ke sini
exten = s,n(checkMore4Digit),Wait(1)
; Digit diawali 9 dial ke PSTN via trunk VoIPToNortel
exten = s,n,Gotoif($[ "${INPUT_TIKET:0:1}" = "9"]?dialPSTNLokal) ; Digit diawali 80 dial ke voiprakyat
exten = s,n,Gotoif($[ "${INPUT_TIKET:0:2}" = "80"]?dialVoiprakyat)
; Digit diawali 82 dial ke PSTN/Internasional via trunk
; Skype/Gizmo
exten = s,n,Gotoif($[ "${INPUT_TIKET:0:2}" = "82"]?dialSkype)
; Dial via VoIPToNortel
exten = s,n(dialPSTNLokal),Dial(SIP/VoIPToNortel/${INPUT_TIKET}) exten = s,n,Hangup
; Dial via Voiprakyat
exten = s,n(dialVoiprakyat),Dial(SIP/Voiprakyat.or.id/${INPUT_TIKET:2}) exten = s,n,Hangup
; Set caller ID dahulu sebelum dial
exten = s,n,Set(CALLERID(num)=99051000003780)
; Dial via skype
exten = s,n(dialSkype),Dial(SIP/${INPUT_TIKET:2}@SkypeGate)
exten = s,n,Hangup
exten = i,1,Hangup

No comments:

IT Conversations

Moneycontrol Latest News

Latest new pages on Computer Hope

Latest from Infoworld

Door Lock

Door Lock Import Top Door Lock from China Contact Quality Manufacturers Now