<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:14pt">dear friends,,,<br>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,<br>here my configuration file,<br><br><br>exten => _[0-5]X.,203,Playback(all-circuits-busy-now)<br>exten => _[0-5]X.,204,Hangup<br><br>exten => _9X.,1,ChanIsAvail(Zap/6&Zap/7)<br>exten => _9X.,2,Cut(theChannel=AVAILCHAN,,1)<br>exten => _9X.,3,Dial(${theChannel}/9${EXTEN:1})<br>exten => _9X.,4,Congestion()<br>exten => _9X.,5,Hangup<br><br>exten => _XXX,1,ChanIsAvail(Zap/6&Zap/7)<br>exten => _XXX,2,Cut(theChannel=AVAILCHAN,,1)<br>exten => _XXX,3,Dial(${theChannel}/Wait${EXTEN})<br>exten => _XXX,4,Congestion()<br>exten
=> _XXX,5,Hangup<br><br>ignorepat => 9<br>include => sccp<br>include => from-sip<br><br>;###################### PSTN Line Information Ends ############################<br><br>;###################### Phone Line Extention Starts ###########################<br><br>[from-sip]<br><br><br><br>exten => 642,1,Dial(SIP/642,30,tr)<br>exten => 642,2,Answer<br>exten => 642,3,Hangup()<br><br>exten => 666,1,Dial(SIP/666,30,tr)<br>exten => 666,2,Answer<br>exten => 666,3,Hangup()<br><br>exten => 751,1,Dial(SIP/751,30,tr)<br>exten => 751,2,Answer<br>exten => 751,3,Hangup()<br><br>exten => 752,1,Dial(SIP/752,30,tr)<br>exten => 752,2,Answer<br>exten => 752,3,Hangup()<br><br>exten => 777,1,Dial(SIP/777,30,tr)<br>exten => 777,2,Answer<br>exten => 777,3,Hangup()<br><br>include => default<br><br>[sccp]<br><br>exten => 630,1,SetCalledParty("630",<630>)<br>exten =>
630,2,Dial(SCCP/630,30,Ttr)<br><br>exten => 633,1,SetCalledParty("633",<633>)<br>exten => 633,2,Dial(SCCP/633,15,tr)<br>exten => 633,3,Dial(SCCP/646,30,tr)<br><br><br>exten => 634,1,SetCalledParty("634",<634>)<br>exten => 634,2,Dial(SCCP/634,30,Ttr)<br><br>exten => 635,1,SetCalledParty("635",<635>)<br>;exten => 635,2,Dial(SCCP/633,30,Ttr)<br>exten => 635,2,Dial(SCCP/635,30,Ttr)<br><br><br>exten => 637,1,SetCalledParty("637",<637>)<br>exten => 637,2,Dial(SCCP/637,30,Ttr)<br><br>exten => 639,1,SetCalledParty("639",<639>)<br>exten => 639,2,Dial(SCCP/639,30,Ttr)<br><br><br>exten => 631,1,SetCalledParty("631",<631>)<br>exten => 631,2,Dial(SCCP/631,30,Ttr)<br><br><br>exten => 640,1,SetCalledParty("640",<640>)<br>exten => 640,2,Dial(SCCP/640,30,Ttr)<br><br><br>exten => 641,1,SetCalledParty("641",<641>)<br>exten => 641,2,Dial(SCCP/641,30,Ttr)<br><br><br>exten
=> 644,1,SetCalledParty("644",<644>)<br>exten => 644,2,Dial(SCCP/644,30,Ttr)<br><br><br>exten => 646,1,SetCalledParty("646",<646>)<br>exten => 646,2,Dial(SCCP/646,30,Ttr)<br><br>exten => 647,1,SetCalledParty("647",<647>)<br>exten => 647,2,Dial(SCCP/647,30,tr)<br><br><br>exten => 666,1,SetCalledParty("666",<666>)<br>exten => 666,2,Dial(SCCP/666,30,tr)<br><br>exten => 800,1,SetCalledParty("800",<800>)<br>exten => 800,3,Dial(SCCP/800,30,tr)<br><br>;###################### Phone Line Extention Ends ###########################<br><br>;Extention for transfer Calls into a queue<br>exten => 675,1,Queue(test)<br>exten => 675,2,SetVar(QUEUE_PRIO=10)<br>exten => 675,3,Goto(from-test,675,1)<br><br><br>;Extention for Queue Login<br><br>exten => 81,1,AddQueueMember(test)<br>exten => 81,2,Playback(agent-loginok)<br>exten => 81,3,Hangup<br><br>;Extention for agent log off<br><br>exten =>
82,1,RemoveQueueMember(test)<br>exten => 82,2,Playback(agent-loginok)<br>exten => 82,3,Hangup<br><br>include => default<br><br>[voicemail]<br><br>exten => 8500,1,Wait,2<br>exten => 8500,2,VoicemailMain<br>exten => 8500,3,Hangup<br><br>[music]<br><br>exten => 6000,1,Answer<br>exten => 6000,2,MusicOnHold()<br><br>[conference]<br><br>exten => 8000,1,MeetMe(8000)<br>;exten => 8000,1,Hungup<br><br>[ivr-recoding]<br><br>exten => 12,1,Wait(1)<br>exten => 12,2,Record(/tmp/asterisk-recording:gsm)<br>exten => 12,3,Hungup<br><br>exten => 13,1,Playback(/tmp/asterisk-recording)<br>exten => 13,2,Wait(2)<br>exten => 13,3,Hungup<br><br>[date-time]<br><br>exten => 14,1,DateTime()<br>exten => 14,2,Wait(1)<br>exten => 14,3,Hangup<br><br>[moniter]<br><br>exten => 8159,1,ZapBarge<br>exten => 8159,2,Hangup<br><br>[parkedcalls]<br><br>exten => 70,1,Answer<br>exten => 70,2,SetMusicOnHold(random)<br>exten
=> 70,3,ParkAndAnnounce(PARKED,60,SCCP/444,70,4)<br>exten => 70,4,Macro(SCCP,tr)<br><br>;Extention for call pickup<br><br>exten => _7[1-5],1,ParkedCall(${EXTEN})<br><br>[sms]<br><br>exten => _X.,1,SetAccount(SMS)<br>exten => _X.,2,Answer<br>exten => _X.,3,SMS(default,,${EXTEN},${MSG})<br>exten => _X.,4,SMS(default)<br>exten => _X.,5,Hangup<br><br>[callforward]<br>; Unconditional Call Forward<br>exten => _*21*X.,1,DBput(CFIM/${CALLERIDNUM}=${EXTEN:4})<br>exten => _*21*X.,2,Hangup<br>exten => #21#,1,DBdel(CFIM/${CALLERIDNUM})<br>exten => #21#,2,Hangup<br><br>; Call Forward on Busy or Unavailable<br>exten => _*61*X.,1,DBput(CFBS/${CALLERIDNUM}=${EXTEN:4})<br>exten => _*61*X.,2,Hangup<br>exten => #61#,1,DBdel(CFBS/${CALLERIDNUM})<br>exten => #61#,2,Hangup<br><br>;########################### Test in IVR For NLB Starts ##################<br>[ivr]<br>exten => i,1,Playback(invalid)<br>exten =>
i,2,Goto(s,5)<br><br>exten => s,1,Wait()<br>exten => s,2,Answer()<br>exten => s,3,DigitTimeout(5)<br>exten => s,4,ResponseTimeout(10)<br>exten => s,5,BackGround(newintro)<br>exten => s,6,NoOp()<br><br>exten => 1,1,Goto(lang-type-sh,s,1) ;include XXX only 123 allowed<br>exten => 2,1,Goto(lang-type-tm,s,1)<br>exten => 3,1,Goto(lang-type-en,s,1)<br><br>exten => s,102,Hangup<br>exten => t,1,Hangup<br><br>[lang-type-sh]<br>exten => s,1,Answer<br>exten => s,2,Set(LANGUAGE()=sh)<br>exten => s,3,Background(lottarytype)<br><br>exten => _[1-8],1,Set(LOT-TYPE=${EXTEN})<br>exten => _[1-8],2,Goto(drowno,s,1)<br><br>exten => i,1,Playback(invalidno)<br>exten => i,2,Goto(s,2)<br>exten => t,1,Hangup<br><br>[lang-type-tm]<br>exten => s,1,Answer<br>exten => s,2,Set(LANGUAGE()=tm)<br>exten => s,3,Background(lottype-newTM)<br><br>exten => _[1-8],1,Set(LOT-TYPE=${EXTEN})<br>exten =>
_[1-8],2,Goto(drowno,s,1)<br><br>exten => i,1,Playback(invalidno)<br>exten => i,2,Goto(s,2)<br><br>exten => t,1,Hangup<br><br>[lang-type-en]<br>exten => s,1,Answer<br>exten => s,2,Set(LANGUAGE()=en)<br>exten => s,3,Background(lottarytype) ;need to sound for LT,SV,VS<br><br>exten => _[1-8],1,Set(LOT-TYPE=${EXTEN})<br>exten => _[1-8],2,Goto(drowno,s,1)<br><br>exten => i,1,Playback(invalidno)<br>exten => i,2,Goto(s,2)<br>exten => t,1,Hangup<br><br>[drowno]<br>exten => s,1,Answer<br>exten => s,2,Wait(1)<br>exten => s,3,ResponseTimeout(5)<br>exten => s,4,Background(drowno)<br><br>exten => _.,1,Set(DROWNO=${EXTEN})<br>exten => _.,2,Goto(getdata,s,1)<br><br>exten => t,1,Hangup<br><br>[getdata]<br>exten => s,1,Answer<br>exten => s,2,SetCallerID(${LOT-TYPE}_${DROWNO})<br>exten =>
s,3,AGI(nlb1.php) ;ExeCUTe the PHP<br>exten => s,4,Set(newno1=${CUT(no1|-|1)})<br>exten => s,5,Set(newno2=${CUT(no1|-|2)}) ; A-1-2-3-4-5-6 -----for MS<br>exten => s,6,Set(newno3=${CUT(no1|-|3)}) ; A-12-13-14-15 -----for GS<br>exten => s,7,Set(newno4=${CUT(no1|-|4)}) ; A-1-2-3-4 ------for JV<br>exten => s,8,Set(newno5=${CUT(no1|-|5)}) ;
1-2-3-4-5(bonus)for VS<br>exten => s,9,Set(newno6=${CUT(no1|-|6)}) ; A-1-2-3-4 ------for SV<br>exten => s,10,Set(newno7=${CUT(no1|-|7)}) ; 1-2-3-4-5-6-----for LT <br>exten => s,11,GotoIf($[${newno1} = 99]?dberror|s|1) ;need to chnge the php for -1<br>exten => s,12,GotoIf($[${LOT-TYPE} = 1]?saynoGS|s|1)<br>exten => s,13,GotoIf($[${LOT-TYPE} = 2]?saynoMS|s|1)<br>exten => s,14,GotoIf($[${LOT-TYPE} = 3]?saynoJV|s|1)<br>exten => s,15,GotoIf($[${LOT-TYPE} = 4]?saynoVS|s|1)<br>exten => s,16,GotoIf($[${LOT-TYPE} = 5]?saynoSV|s|1)<br>exten => s,17,GotoIf($[${LOT-TYPE} =
6]?saynoLT|s|1)<br>exten => s,18,GotoIf($[${LOT-TYPE} = 7]?saynoSRV|s|1)<br>exten => s,19,GotoIf($[${LOT-TYPE} = 8]?saynoASD|s|1)<br><br>[saynoGS]<br><br>exten => s,1,Answer<br>exten => s,2,Playback(englishletter) ;A-1-2-3-4-------for GS<br>exten => s,3,Playback(${newno1}) ;we have to Extract a Letter variable from tha DB<br>exten => s,4,Playback(winningno)<br>exten => s,5,Playback(${newno2})<br>exten => s,6,Playback(${newno3})<br>exten => s,7,Playback(${newno4})<br>exten => s,8,Playback(${newno5})<br>exten => s,9,Background(rept)<br>exten => s,10,Background(stop)<br><br>exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)<br>exten => 1,2,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)<br>exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)<br><br>exten =>
9,1,Playback(thank)<br>exten => 9,2,Hangup<br><br>exten => i,1,Goto(s,9)<br><br>exten => t,1,Hangup<br><br>[saynoMS]<br><br>exten => s,1,Answer<br>exten => s,2,Playback(englishletter) ;A-1-2-3-4-5-6---for MS<br>exten => s,3,Playback(${newno1}) ;we have to Extract a Letter variable from tha DB<br>exten => s,4,Playback(winningno) ;<br>exten => s,5,Playback(${newno2})<br>exten => s,6,Playback(${newno3})<br>exten => s,7,Playback(${newno4})<br>exten => s,8,Playback(${newno5})<br>exten => s,9,Playback(${newno6})<br>exten => s,10,Playback(${newno7})<br>exten => s,11,Background(rept)<br>exten => s,12,Background(stop)<br><br>exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)<br>exten =>
1,2,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)<br>exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)<br><br>exten => 9,1,Playback(thank)<br>exten => 9,2,Hangup<br><br>exten => i,1,Playback(invalidno)<br>exten => t,2,Hangup<br><br>[saynoJV]<br>exten => s,1,Answer<br>exten => s,2,Playback(englishletter) ;A-1-2-3-4-------for JV<br>exten => s,3,Playback(${newno1}) ;we have to Extract a Letter variable from tha DB<br>exten => s,4,Playback(winningno)<br>exten => s,5,Playback(${newno2})<br>exten => s,6,Playback(${newno3})<br>exten => s,7,Playback(${newno4})<br>exten => s,8,Playback(${newno5})<br>exten => s,9,Background(rept)<br>exten => s,10,Background(stop)<br><br>exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)<br>exten => 1,2,GotoIf($[${LANGUAGE} =
tm]?lang-type-tm|s|3)<br>exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)<br><br>exten => 9,1,Playback(thank)<br>[root@pbx asterisk]# vi extensions.conf <br>exten => s,2,Playback(englishletter) ;A-1-2-3-4-------for JV<br>exten => s,3,Playback(${newno1}) ;we have to Extract a Letter variable from tha DB<br>exten => s,4,Playback(winningno)<br>exten => s,5,Playback(${newno2})<br>exten => s,6,Playback(${newno3})<br>exten => s,7,Playback(${newno4})<br>exten => s,8,Playback(${newno5})<br>exten => s,9,Background(rept)<br>exten => s,10,Background(stop)<br><br>exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)<br>exten => 1,2,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)<br>exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)<br><br>exten =>
9,1,Playback(thank)<br>exten => 9,2,Hangup<br><br>exten => i,1,Goto(s,9)<br><br>exten => t,1,Hangup<br><br>[saynoVS]<br>exten => s,1,Answer<br>exten => s,2,Playback(winningno) ;1-2-3-4-b5(bonus)for VS<br>exten => s,3,Playback(${newno1})<br>exten => s,4,Playback(${newno2})<br>exten => s,5,Playback(${newno3})<br>exten => s,6,Playback(${newno4})<br>exten => s,7,Playback(bonusno)<br>exten => s,8,Playback(${newno5})<br>exten => s,9,Background(rept)<br>exten => s,10,Background(stop)<br><br>exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)<br>exten => 1,2,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)<br>exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)<br><br>exten => 9,1,Playback(thank)<br>exten => 9,2,Hangup<br><br>exten => i,1,Goto(s,9)<br><br>exten => t,1,Hangup<br><br><br>[saynoSV]<br><br>exten =>
s,1,Answer<br>exten => s,2,Playback(englishletter) ;A-1-2-3-4-------for SV<br>exten => s,3,Playback(${newno1}) ;we have to Extract a Letter variable from tha DB<br>exten => s,4,Playback(winningno)<br>exten => s,5,Playback(${newno2})<br>exten => s,6,Playback(${newno3})<br>exten => s,7,Playback(${newno4})<br>exten => s,8,Playback(${newno5})<br>exten => s,9,Background(rept)<br>exten => s,10,Background(stop)<br><br>exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)<br>exten => 1,2,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)<br>exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)<br><br>exten => 9,1,Playback(thank)<br>exten => 9,2,Hangup<br><br>exten => i,1,Goto(s,9)<br><br>exten => t,1,Hangup<br>[saynoLT]<br><br>exten => s,1,Answer<br>exten =>
s,2,Playback(${newno1}) ;1-2-3-4-5-6-----for LT<br>exten => s,3,Playback(${newno2})<br>exten => s,4,Playback(${newno3})<br>exten => s,5,Playback(${newno4})<br>exten => s,6,Playback(${newno5})<br>exten => s,7,Playback(${newno6})<br>exten => s,8,Background(rept)<br>exten => s,9,Background(stop)<br><br><br>exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)<br>exten => 1,2,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)<br>exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)<br><br>exten => 9,1,Playback(thank)<br>exten => 9,2,Hangup<br><br>exten => i,1,Goto(s,9)<br><br>exten => t,1,Hangup<br><br>[saynoSRV]<br><br>exten => s,1,Answer<br>exten => s,2,Playback(winningno) ;1-2-3-4-b5(bonus)for SRV<br>exten => s,3,Playback(${newno1})<br>exten
=> s,4,Playback(${newno2})<br>exten => s,5,Playback(${newno3})<br>exten => s,6,Playback(${newno4})<br>exten => s,7,Playback(bonusno)<br>exten => s,8,Playback(${newno5})<br>exten => s,9,Background(rept)<br>exten => s,10,Background(stop)<br><br>exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)<br>exten => 1,2,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)<br>exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)<br><br>exten => 9,1,Playback(thank)<br>exten => 9,2,Hangup<br><br>exten => i,1,Goto(s,9)<br><br>exten => t,1,Hangup<br><br>[saynoASD]<br><br>exten => s,1,Answer<br>exten => s,2,Playback(winningno) ;1-2-3-4-b5(bonus)for ASD<br>exten => s,3,Playback(${newno1})<br>exten => s,4,Playback(${newno2})<br>exten => s,5,Playback(${newno3})<br>exten => s,6,Playback(${newno4})<br>exten =>
s,7,Background(rept)<br>exten => s,8,Background(stop)<br><br>exten => 1,1,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)<br>exten => 1,2,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)<br>exten => 1,3,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)<br><br>exten => 9,1,Playback(thank)<br>exten => 9,2,Hangup<br><br>exten => i,1,Goto(s,9)<br><br>exten => t,1,Hangup<br><br><br>[dberror]<br><br>exten => s,1,Answer<br>exten => s,2,Playback(invalidno) ;invalid new one<br>exten => s,3,GotoIf($[${LANGUAGE} = sh]?lang-type-sh|s|3)<br>exten => s,4,GotoIf($[${LANGUAGE} = tm]?lang-type-tm|s|3)<br>exten => s,5,GotoIf($[${LANGUAGE} = en]?lang-type-en|s|3)<br><br>;############################ Test in IVR NLB Ends ########################<br>Type :quit<Enter> to exit
Vim 601,1 Bot<br><br><div> </div><div><font color="#0000bf" face="comic sans ms" size="4">Indra Sri Shantha Abeysinghe</font></div> <div><font color="#0000bf" face="comic sans ms" size="4"><a rel="nofollow" target="_blank" href="mailto:abeysinghe316@yahoo.com">abeysinghe316@yahoo.com</a></font></div> <div><font color="#0000bf" face="comic sans ms" size="4"><a rel="nofollow" target="_blank" href="mailto:indrasrishantha@gmail.com">indrasrishantha@gmail.com</a></font><font color="#0000bf"><br><font face="Comic Sans MS"
size="4">0724-301904</font></font></div><div><br></div></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>