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