[asterisk-ss7] hai
sri shantha
abeysinghe316 at yahoo.com
Wed Oct 17 02:01:52 CDT 2007
dear friends,,,
i had a problem with my asterisk server.im using five pstn phone lines,,but i cant access with ,,,out going calls and incoming.but i can communicate without asterisk box,
here my configuration file,
exten => _[0-5]X.,203,Playback(all-circuits-busy-now)
exten => _[0-5]X.,204,Hangup
exten => _9X.,1,ChanIsAvail(Zap/6&Zap/7)
exten => _9X.,2,Cut(theChannel=AVAILCHAN,,1)
exten => _9X.,3,Dial(${theChannel}/9${EXTEN:1})
exten => _9X.,4,Congestion()
exten => _9X.,5,Hangup
exten => _XXX,1,ChanIsAvail(Zap/6&Zap/7)
exten => _XXX,2,Cut(theChannel=AVAILCHAN,,1)
exten => _XXX,3,Dial(${theChannel}/Wait${EXTEN})
exten => _XXX,4,Congestion()
exten => _XXX,5,Hangup
ignorepat => 9
include => sccp
include => from-sip
;###################### PSTN Line Information Ends ############################
;###################### Phone Line Extention Starts ###########################
[from-sip]
exten => 642,1,Dial(SIP/642,30,tr)
exten => 642,2,Answer
exten => 642,3,Hangup()
exten => 666,1,Dial(SIP/666,30,tr)
exten => 666,2,Answer
exten => 666,3,Hangup()
exten => 751,1,Dial(SIP/751,30,tr)
exten => 751,2,Answer
exten => 751,3,Hangup()
exten => 752,1,Dial(SIP/752,30,tr)
exten => 752,2,Answer
exten => 752,3,Hangup()
exten => 777,1,Dial(SIP/777,30,tr)
exten => 777,2,Answer
exten => 777,3,Hangup()
include => default
[sccp]
exten => 630,1,SetCalledParty("630",<630>)
exten => 630,2,Dial(SCCP/630,30,Ttr)
exten => 633,1,SetCalledParty("633",<633>)
exten => 633,2,Dial(SCCP/633,15,tr)
exten => 633,3,Dial(SCCP/646,30,tr)
exten => 634,1,SetCalledParty("634",<634>)
exten => 634,2,Dial(SCCP/634,30,Ttr)
exten => 635,1,SetCalledParty("635",<635>)
;exten => 635,2,Dial(SCCP/633,30,Ttr)
exten => 635,2,Dial(SCCP/635,30,Ttr)
exten => 637,1,SetCalledParty("637",<637>)
exten => 637,2,Dial(SCCP/637,30,Ttr)
exten => 639,1,SetCalledParty("639",<639>)
exten => 639,2,Dial(SCCP/639,30,Ttr)
exten => 631,1,SetCalledParty("631",<631>)
exten => 631,2,Dial(SCCP/631,30,Ttr)
exten => 640,1,SetCalledParty("640",<640>)
exten => 640,2,Dial(SCCP/640,30,Ttr)
exten => 641,1,SetCalledParty("641",<641>)
exten => 641,2,Dial(SCCP/641,30,Ttr)
exten => 644,1,SetCalledParty("644",<644>)
exten => 644,2,Dial(SCCP/644,30,Ttr)
exten => 646,1,SetCalledParty("646",<646>)
exten => 646,2,Dial(SCCP/646,30,Ttr)
exten => 647,1,SetCalledParty("647",<647>)
exten => 647,2,Dial(SCCP/647,30,tr)
exten => 666,1,SetCalledParty("666",<666>)
exten => 666,2,Dial(SCCP/666,30,tr)
exten => 800,1,SetCalledParty("800",<800>)
exten => 800,3,Dial(SCCP/800,30,tr)
;###################### Phone Line Extention Ends ###########################
;Extention for transfer Calls into a queue
exten => 675,1,Queue(test)
exten => 675,2,SetVar(QUEUE_PRIO=10)
exten => 675,3,Goto(from-test,675,1)
;Extention for Queue Login
exten => 81,1,AddQueueMember(test)
exten => 81,2,Playback(agent-loginok)
exten => 81,3,Hangup
;Extention for agent log off
exten => 82,1,RemoveQueueMember(test)
exten => 82,2,Playback(agent-loginok)
exten => 82,3,Hangup
include => default
[voicemail]
exten => 8500,1,Wait,2
exten => 8500,2,VoicemailMain
exten => 8500,3,Hangup
[music]
exten => 6000,1,Answer
exten => 6000,2,MusicOnHold()
[conference]
exten => 8000,1,MeetMe(8000)
;exten => 8000,1,Hungup
[ivr-recoding]
exten => 12,1,Wait(1)
exten => 12,2,Record(/tmp/asterisk-recording:gsm)
exten => 12,3,Hungup
exten => 13,1,Playback(/tmp/asterisk-recording)
exten => 13,2,Wait(2)
exten => 13,3,Hungup
[date-time]
exten => 14,1,DateTime()
exten => 14,2,Wait(1)
exten => 14,3,Hangup
[moniter]
exten => 8159,1,ZapBarge
exten => 8159,2,Hangup
[parkedcalls]
exten => 70,1,Answer
exten => 70,2,SetMusicOnHold(random)
exten => 70,3,ParkAndAnnounce(PARKED,60,SCCP/444,70,4)
exten => 70,4,Macro(SCCP,tr)
;Extention for call pickup
exten => _7[1-5],1,ParkedCall(${EXTEN})
[sms]
exten => _X.,1,SetAccount(SMS)
exten => _X.,2,Answer
exten => _X.,3,SMS(default,,${EXTEN},${MSG})
exten => _X.,4,SMS(default)
exten => _X.,5,Hangup
[callforward]
; Unconditional Call Forward
exten => _*21*X.,1,DBput(CFIM/${CALLERIDNUM}=${EXTEN:4})
exten => _*21*X.,2,Hangup
exten => #21#,1,DBdel(CFIM/${CALLERIDNUM})
exten => #21#,2,Hangup
; Call Forward on Busy or Unavailable
exten => _*61*X.,1,DBput(CFBS/${CALLERIDNUM}=${EXTEN:4})
exten => _*61*X.,2,Hangup
exten => #61#,1,DBdel(CFBS/${CALLERIDNUM})
exten => #61#,2,Hangup
;########################### Test in IVR For NLB Starts ##################
[ivr]
exten => i,1,Playback(invalid)
exten => i,2,Goto(s,5)
exten => s,1,Wait()
exten => s,2,Answer()
exten => s,3,DigitTimeout(5)
exten => s,4,ResponseTimeout(10)
exten => s,5,BackGround(newintro)
exten => s,6,NoOp()
exten => 1,1,Goto(lang-type-sh,s,1) ;include XXX only 123 allowed
exten => 2,1,Goto(lang-type-tm,s,1)
exten => 3,1,Goto(lang-type-en,s,1)
exten => s,102,Hangup
exten => t,1,Hangup
[lang-type-sh]
exten => s,1,Answer
exten => s,2,Set(LANGUAGE()=sh)
exten => s,3,Background(lottarytype)
exten => _[1-8],1,Set(LOT-TYPE=${EXTEN})
exten => _[1-8],2,Goto(drowno,s,1)
exten => i,1,Playback(invalidno)
exten => i,2,Goto(s,2)
exten => t,1,Hangup
[lang-type-tm]
exten => s,1,Answer
exten => s,2,Set(LANGUAGE()=tm)
exten => s,3,Background(lottype-newTM)
exten => _[1-8],1,Set(LOT-TYPE=${EXTEN})
exten => _[1-8],2,Goto(drowno,s,1)
exten => i,1,Playback(invalidno)
exten => i,2,Goto(s,2)
exten => t,1,Hangup
[lang-type-en]
exten => s,1,Answer
exten => s,2,Set(LANGUAGE()=en)
exten => s,3,Background(lottarytype) ;need to sound for LT,SV,VS
exten => _[1-8],1,Set(LOT-TYPE=${EXTEN})
exten => _[1-8],2,Goto(drowno,s,1)
exten => i,1,Playback(invalidno)
exten => i,2,Goto(s,2)
exten => t,1,Hangup
[drowno]
exten => s,1,Answer
exten => s,2,Wait(1)
exten => s,3,ResponseTimeout(5)
exten => s,4,Background(drowno)
exten => _.,1,Set(DROWNO=${EXTEN})
exten => _.,2,Goto(getdata,s,1)
exten => t,1,Hangup
[getdata]
exten => s,1,Answer
exten => s,2,SetCallerID(${LOT-TYPE}_${DROWNO})
exten => s,3,AGI(nlb1.php) ;ExeCUTe the PHP
exten => s,4,Set(newno1=${CUT(no1|-|1)})
exten => s,5,Set(newno2=${CUT(no1|-|2)}) ; A-1-2-3-4-5-6 -----for MS
exten => s,6,Set(newno3=${CUT(no1|-|3)}) ; A-12-13-14-15 -----for GS
exten => s,7,Set(newno4=${CUT(no1|-|4)}) ; A-1-2-3-4 ------for JV
exten => s,8,Set(newno5=${CUT(no1|-|5)}) ; 1-2-3-4-5(bonus)for VS
exten => s,9,Set(newno6=${CUT(no1|-|6)}) ; A-1-2-3-4 ------for SV
exten => s,10,Set(newno7=${CUT(no1|-|7)}) ; 1-2-3-4-5-6-----for LT
exten => s,11,GotoIf($[${newno1} = 99]?dberror|s|1) ;need to chnge the php for -1
exten => s,12,GotoIf($[${LOT-TYPE} = 1]?saynoGS|s|1)
exten => s,13,GotoIf($[${LOT-TYPE} = 2]?saynoMS|s|1)
exten => s,14,GotoIf($[${LOT-TYPE} = 3]?saynoJV|s|1)
exten => s,15,GotoIf($[${LOT-TYPE} = 4]?saynoVS|s|1)
exten => s,16,GotoIf($[${LOT-TYPE} = 5]?saynoSV|s|1)
exten => s,17,GotoIf($[${LOT-TYPE} = 6]?saynoLT|s|1)
exten => s,18,GotoIf($[${LOT-TYPE} = 7]?saynoSRV|s|1)
exten => s,19,GotoIf($[${LOT-TYPE} = 8]?saynoASD|s|1)
[saynoGS]
exten => s,1,Answer
exten => s,2,Playback(englishletter) ;A-1-2-3-4-------for GS
exten => s,3,Playback(${newno1}) ;we have to Extract a Letter variable from tha DB
exten => s,4,Playback(winningno)
exten => s,5,Playback(${newno2})
exten => s,6,Playback(${newno3})
exten => s,7,Playback(${newno4})
exten => s,8,Playback(${newno5})
exten => s,9,Background(rept)
exten => s,10,Background(stop)
exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)
exten => 1,2,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)
exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)
exten => 9,1,Playback(thank)
exten => 9,2,Hangup
exten => i,1,Goto(s,9)
exten => t,1,Hangup
[saynoMS]
exten => s,1,Answer
exten => s,2,Playback(englishletter) ;A-1-2-3-4-5-6---for MS
exten => s,3,Playback(${newno1}) ;we have to Extract a Letter variable from tha DB
exten => s,4,Playback(winningno) ;
exten => s,5,Playback(${newno2})
exten => s,6,Playback(${newno3})
exten => s,7,Playback(${newno4})
exten => s,8,Playback(${newno5})
exten => s,9,Playback(${newno6})
exten => s,10,Playback(${newno7})
exten => s,11,Background(rept)
exten => s,12,Background(stop)
exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)
exten => 1,2,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)
exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)
exten => 9,1,Playback(thank)
exten => 9,2,Hangup
exten => i,1,Playback(invalidno)
exten => t,2,Hangup
[saynoJV]
exten => s,1,Answer
exten => s,2,Playback(englishletter) ;A-1-2-3-4-------for JV
exten => s,3,Playback(${newno1}) ;we have to Extract a Letter variable from tha DB
exten => s,4,Playback(winningno)
exten => s,5,Playback(${newno2})
exten => s,6,Playback(${newno3})
exten => s,7,Playback(${newno4})
exten => s,8,Playback(${newno5})
exten => s,9,Background(rept)
exten => s,10,Background(stop)
exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)
exten => 1,2,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)
exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)
exten => 9,1,Playback(thank)
[root at pbx asterisk]# vi extensions.conf
exten => s,2,Playback(englishletter) ;A-1-2-3-4-------for JV
exten => s,3,Playback(${newno1}) ;we have to Extract a Letter variable from tha DB
exten => s,4,Playback(winningno)
exten => s,5,Playback(${newno2})
exten => s,6,Playback(${newno3})
exten => s,7,Playback(${newno4})
exten => s,8,Playback(${newno5})
exten => s,9,Background(rept)
exten => s,10,Background(stop)
exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)
exten => 1,2,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)
exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)
exten => 9,1,Playback(thank)
exten => 9,2,Hangup
exten => i,1,Goto(s,9)
exten => t,1,Hangup
[saynoVS]
exten => s,1,Answer
exten => s,2,Playback(winningno) ;1-2-3-4-b5(bonus)for VS
exten => s,3,Playback(${newno1})
exten => s,4,Playback(${newno2})
exten => s,5,Playback(${newno3})
exten => s,6,Playback(${newno4})
exten => s,7,Playback(bonusno)
exten => s,8,Playback(${newno5})
exten => s,9,Background(rept)
exten => s,10,Background(stop)
exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)
exten => 1,2,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)
exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)
exten => 9,1,Playback(thank)
exten => 9,2,Hangup
exten => i,1,Goto(s,9)
exten => t,1,Hangup
[saynoSV]
exten => s,1,Answer
exten => s,2,Playback(englishletter) ;A-1-2-3-4-------for SV
exten => s,3,Playback(${newno1}) ;we have to Extract a Letter variable from tha DB
exten => s,4,Playback(winningno)
exten => s,5,Playback(${newno2})
exten => s,6,Playback(${newno3})
exten => s,7,Playback(${newno4})
exten => s,8,Playback(${newno5})
exten => s,9,Background(rept)
exten => s,10,Background(stop)
exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)
exten => 1,2,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)
exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)
exten => 9,1,Playback(thank)
exten => 9,2,Hangup
exten => i,1,Goto(s,9)
exten => t,1,Hangup
[saynoLT]
exten => s,1,Answer
exten => s,2,Playback(${newno1}) ;1-2-3-4-5-6-----for LT
exten => s,3,Playback(${newno2})
exten => s,4,Playback(${newno3})
exten => s,5,Playback(${newno4})
exten => s,6,Playback(${newno5})
exten => s,7,Playback(${newno6})
exten => s,8,Background(rept)
exten => s,9,Background(stop)
exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)
exten => 1,2,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)
exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)
exten => 9,1,Playback(thank)
exten => 9,2,Hangup
exten => i,1,Goto(s,9)
exten => t,1,Hangup
[saynoSRV]
exten => s,1,Answer
exten => s,2,Playback(winningno) ;1-2-3-4-b5(bonus)for SRV
exten => s,3,Playback(${newno1})
exten => s,4,Playback(${newno2})
exten => s,5,Playback(${newno3})
exten => s,6,Playback(${newno4})
exten => s,7,Playback(bonusno)
exten => s,8,Playback(${newno5})
exten => s,9,Background(rept)
exten => s,10,Background(stop)
exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)
exten => 1,2,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)
exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)
exten => 9,1,Playback(thank)
exten => 9,2,Hangup
exten => i,1,Goto(s,9)
exten => t,1,Hangup
[saynoASD]
exten => s,1,Answer
exten => s,2,Playback(winningno) ;1-2-3-4-b5(bonus)for ASD
exten => s,3,Playback(${newno1})
exten => s,4,Playback(${newno2})
exten => s,5,Playback(${newno3})
exten => s,6,Playback(${newno4})
exten => s,7,Background(rept)
exten => s,8,Background(stop)
exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)
exten => 1,2,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)
exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)
exten => 9,1,Playback(thank)
exten => 9,2,Hangup
exten => i,1,Goto(s,9)
exten => t,1,Hangup
[dberror]
exten => s,1,Answer
exten => s,2,Playback(invalidno) ;invalid new one
exten => s,3,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)
exten => s,4,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)
exten => s,5,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)
;############################ Test in IVR NLB Ends ########################
Type :quit<Enter> to exit Vim 601,1 Bot
Indra Sri Shantha Abeysinghe
abeysinghe316 at yahoo.com
indrasrishantha at gmail.com
0724-301904
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-ss7/attachments/20071017/23916d5e/attachment-0001.htm
More information about the asterisk-ss7
mailing list