Todd How do you have the context in the phones sip configs set? Bryant From: "Todd Reese" treese65 at gmail.com Hi all, I've been have problems with getting this system on line and would like to acquire some help with the extensions.conf. My current problem is that the phones won't dialout.on the VOIP lines listed as dialout1, dialout2, dialout3. This version of asterisk is 1.6.2.11. Below is the extensions.conf file. [globals] QPHONE0=SIP/10 QPHONE1=SIP/11 QPHONE2=SIP/12 QPHONE3=SIP/13 QPHONE4=SIP/14 QPHONE5=SIP/15 QPHONE6=SIP/16 QPHONE7=SIP/17 ACAPHONE0=SIP/20 ACAPHONE1=SIP/21 ACAPHONE2=SIP/22 ACAPHONE3=SIP/23 ACAPHONE4=SIP/24 ACAPHONE5=SIP/25 ACAPHONE6=SIP/26 ACAPHONE7=SIP/27 GMNETPHONE0=SIP/30 GMNETPHONE1=SIP/31 GMNETPHONE2=SIP/32 GMNETPHONE3=SIP/33 GMNETPHONE4=SIP/34 GMNETPHONE5=SIP/35 GMNETPHONE6=SIP/36 GMNETPHONE7=SIP/37 EXTERNPHONE0=SIP/150 CPHONE1=SIP/16780000000 CPHONE2=SIP/17700000000 EMERGENCY=0 EMERGENCY_TRUNK=DAHDI/G1 ; Change this for production use: EMERGENCY_NUM=6789542133 [from-pstn] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming1,s,1) [from-pstn1] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming1,s,1) [from-pstn2] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming1,s,1) [from-pstn3] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming1,s,1) [from-pstn4] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming3,s,1) [from-pstn5] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming2,s,1) [from-pstn6] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming1,s,1) [from-pstn7] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming1,s,1) [from-pstn8] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming1,s,1) [incoming1] include => from-internal include => parkedcalls exten => s,1,Answer exten => s,n,Wait(1) exten => s,n,Set(CHANNEL(musicclass)=QCI) exten => s,n,Set(TIMEOUT(digit)=5) exten => s,n,Set(TIMEOUT(response)=10) exten => s,n,Background(thank-you-for-calling) exten => s,n,Dial(${QPHONE0}&${QPHONE1}&${QPHONE2}&${QPHONE3}&${QPHONE4}&${QPHONE5}&$ {QPHONE6}&${QPHONE7},40,Ttr) exten => s,n,Hangup [incoming2] include => from-internal include => parkedcalls exten => s,1,Answer exten => s,n,Wait(1) exten => s,n,Set(CHANNEL(musicclass)=QCI) exten => s,n,Set(TIMEOUT(digit)=5) exten => s,n,Set(TIMEOUT(response)=10) exten => s,n,Background(thank-you-for-calling) exten => s,n,Dial(${ACAPHONE0}&${ACAPHONE1}&${ACAPHONE2}&${ACAPHONE3}&${ACAPHONE4}&${ ACAPHONE5}&${ACAPHONE6}&${ACAPHONE7},40,TTr) exten => s,n,Hangup [incoming3] include => from-internal include => parkedcalls exten => s,1,Answer exten => s,n,Wait(1) exten => s,n,Set(CHANNEL(musicclass)=QCI) exten => s,n,Set(TIMEOUT(digit)=5) exten => s,n,Set(TIMEOUT(response)=10) exten => s,n,Background(thank-you-for-calling) exten => s,n,GotoIfTime(17:01-09:00|*|*|*?closed,s,1) exten => s,n,Dial(${GMNETPHONE0}&${GMNETPHONE1}&${GMNETPHONE2}&${GMNETPHONE3}&${GMNET PHONE4}&${GMNETPHONE5}&${GMNETPHONE6}&${GMNETPHONE7},40,Ttr) exten => s,n,Hangup [from-interal] include => dialout1 include => dialout2 include => dialout3 include => parkedcalls include => intercom exten => 10,1,Macro(oneline,${QPHONE0}) exten => 11,1,Macro(oneline,${QPHONE1}) exten => 12,1,Macro(oneline,${QPHONE2}) exten => 13,1,Macro(oneline,${QPHONE3}) exten => 14,1,Macro(oneline,${QPHONE4}) exten => 15,1,Macro(oneline,${QPHONE5}) exten => 16,1,Macro(oneline,${QPHONE6}) exten => 17,1,Macro(oneline,${QPHONE7}) exten => 20,1,Macro(oneline,${ACAPHONE0}) exten => 21,1,Macro(oneline,${ACAPHONE1}) exten => 22,1,Macro(oneline,${ACAPHONE2}) exten => 23,1,Macro(oneline,${ACAPHONE3}) exten => 24,1,Macro(oneline,${ACAPHONE4}) exten => 25,1,Macro(oneline,${ACAPHONE5}) exten => 26,1,Macro(oneline,${ACAPHONE6}) exten => 27,1,Macro(oneline,${ACAPHONE7}) exten => 30,1,Macro(oneline,${GMNETPHONE0}) exten => 31,1,Macro(oneline,${GMNETPHONE1}) exten => 32,1,Macro(oneline,${GMNETPHONE2}) exten => 33,1,Macro(oneline,${GMNETPHONE3}) exten => 34,1,Macro(oneline,${GMNETPHONE4}) exten => 35,1,Macro(oneline,${GMNETPHONE5}) exten => 36,1,Macro(oneline,${GMNETPHONE6}) exten => 37,1,Macro(oneline,${GMNETPHONE7}) exten => 40,1,Macro(oneline,${QPHONE0}) exten => 41,1,Macro(oneline,${QPHONE1}) exten => 42,1,Macro(oneline,${QPHONE2}) exten => 43,1,Macro(oneline,${QPHONE3}) exten => 44,1,Macro(oneline,${QPHONE4}) exten => 45,1,Macro(oneline,${QPHONE5}) exten => 46,1,Macro(oneline,${QPHONE6}) exten => 47,1,Macro(oneline,${QPHONE7}) exten => 150,1,Macro(oneline,${EXTERNPHONE0}) [macro-oneline] exten => s,1,Set(CHANNEL(musicclass)=default) exten => s,n,Dial(${ARG1},20,Ttr) exten => s,n,Voicemail(${MACRO_EXTEN}) exten => s,n,Hangup exten => s,102,Voicemail(${MACRO_EXTEN}) exten => s,103,Hangup [dialout1] include => from-internal include => 411 exten => 911,1,Goto(nineoneone,s,1) exten => _1NXXNXXXXXX,n,Dial(SIP/v6781234567/${EXTEN},40,Ttr) exten => _NXXNXXXXXX,n,Dial(SIP/v6781234567/${EXTEN},40,Ttr) [dialout2] include => from-internal include => 411 exten => 911,1,Goto(nineoneone,s,1) exten => _1NXXNXXXXXX,n,Dial(SIP/voipdialACA/${EXTEN},40,Ttr) exten => _NXXNXXXXXX,n,Dial(SIP/voipdialACA/${EXTEN},40,Ttr) [dialout3] include => from-internal include => 411 exten => 911,1,Goto(nineoneone,s,1) exten => _1NXXNXXXXXX,n,Dial(SIP/v6781234567/${EXTEN},40,Ttr) exten => _1NXXNXXXXXX,n,Dial(SIP/v6781234567/${EXTEN},40,Ttr) [voicemail] exten => 8500,1,VoicemailMain exten => 8500,2,Hangup [411] exten => 411,1,Dial(SIP/v6781234567/18004664411,,Ttr) [nineoneone] exten => s,1,Set(SET_EMERG_FLAG=0) exten => s,n(checkavail),ChanIsAvail(${EMERGENCY_TRUNK}) exten => s,n,Set(EMERGENCY=1,g) exten => s,n,Set(SET_EMERG_FLAG=1) exten => s,n(dial),Dial(${EMERGENCY_TRUNK}/${EMERGENCY_NUM}) exten => s,s+2(trunkbusy),GotoIf($[${EMERGENCY} = 1]?inprogress) exten => s,n,SoftHangup(${EMERGENCY_TRUNK}-1) exten => s,n,Wait(12) exten => s,n,Goto(checkavail) exten => s,s+2(inprogress),Congestion exten => s,checkavail+101(notavail),Goto(trunkbusy) exten => h,1,GotoIf($[${SET_EMERG_FLAG} = 1]?3) exten => h,3,Set(EMERGENCY=0,g) [closed] exten => s,n,Dial(Dial(SIP/v6781234567/${CPHONE1},40,Ttr) exten => s,n,Hangup [intercom] exten => 59,1,SIPAddHeader(Call-Info: answer-after=0) exten => 59,2,Page(${GMNETPHONE0}&${GMNETPHONE1}&${GMNETPHONE2}&${GMNETPHONE3}&${GMNE TPHONE4}&${GMNETPHONE5}&${GMNETPHONE6}&${GMNETPHONE7}|d) exten => 59,3, Hangup -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100830/25d98c9b/attachment.htm
Here is the sip.conf portion for extension 150 [150] deny=0.0.0.0/0.0.0.0 type=friend secret=1234567890 qualify=yes port=5060 pickupgrouppermit=0.0.0.0/0.0.0.0 nat=yes host=dynamic dtmfmode=rfc2833 dial=SIP/150 context=from-trunk canreinvite=no callgroupcallerid=device <150> accountcodecall-limit=50 On 8/30/2010 10:37 AM, Bryant Zimmerman wrote:> Todd > > How do you have the context in the phones sip configs set? > > Bryant > * > From*: "Todd Reese" treese65 at gmail.com <mailto:treese65 at gmail.com> > > Hi all, > > I've been have problems with getting this system on line and would like > to acquire some help with the extensions.conf. > > My current problem is that the phones won't dialout.on the VOIP lines > listed as dialout1, dialout2, dialout3. This version of asterisk is > 1.6.2.11. Below is the extensions.conf file. > > > [globals] > > > > QPHONE0=SIP/10 > QPHONE1=SIP/11 > QPHONE2=SIP/12 > QPHONE3=SIP/13 > QPHONE4=SIP/14 > QPHONE5=SIP/15 > QPHONE6=SIP/16 > QPHONE7=SIP/17 > > ACAPHONE0=SIP/20 > ACAPHONE1=SIP/21 > ACAPHONE2=SIP/22 > ACAPHONE3=SIP/23 > ACAPHONE4=SIP/24 > ACAPHONE5=SIP/25 > ACAPHONE6=SIP/26 > ACAPHONE7=SIP/27 > > GMNETPHONE0=SIP/30 > GMNETPHONE1=SIP/31 > GMNETPHONE2=SIP/32 > GMNETPHONE3=SIP/33 > GMNETPHONE4=SIP/34 > GMNETPHONE5=SIP/35 > GMNETPHONE6=SIP/36 > GMNETPHONE7=SIP/37 > > EXTERNPHONE0=SIP/150 > > CPHONE1=SIP/16780000000 > CPHONE2=SIP/17700000000 > > EMERGENCY=0 > EMERGENCY_TRUNK=DAHDI/G1 > ; Change this for production use: > EMERGENCY_NUM=6789542133 > > > [from-pstn] > exten => s,1,Set(FROM_DID="6780000000) > exten => s,n,NoOp(id is ${FROM_DID}) > exten => s,n,Goto(incoming1,s,1) > > > > > [from-pstn1] > exten => s,1,Set(FROM_DID="6780000000) > exten => s,n,NoOp(id is ${FROM_DID}) > exten => s,n,Goto(incoming1,s,1) > > [from-pstn2] > exten => s,1,Set(FROM_DID="6780000000) > exten => s,n,NoOp(id is ${FROM_DID}) > exten => s,n,Goto(incoming1,s,1) > > [from-pstn3] > exten => s,1,Set(FROM_DID="6780000000) > exten => s,n,NoOp(id is ${FROM_DID}) > exten => s,n,Goto(incoming1,s,1) > > [from-pstn4] > exten => s,1,Set(FROM_DID="6780000000) > exten => s,n,NoOp(id is ${FROM_DID}) > exten => s,n,Goto(incoming3,s,1) > > [from-pstn5] > exten => s,1,Set(FROM_DID="6780000000) > exten => s,n,NoOp(id is ${FROM_DID}) > exten => s,n,Goto(incoming2,s,1) > > [from-pstn6] > exten => s,1,Set(FROM_DID="6780000000) > exten => s,n,NoOp(id is ${FROM_DID}) > exten => s,n,Goto(incoming1,s,1) > > [from-pstn7] > exten => s,1,Set(FROM_DID="6780000000) > exten => s,n,NoOp(id is ${FROM_DID}) > exten => s,n,Goto(incoming1,s,1) > > [from-pstn8] > exten => s,1,Set(FROM_DID="6780000000) > exten => s,n,NoOp(id is ${FROM_DID}) > exten => s,n,Goto(incoming1,s,1) > > > [incoming1] > include => from-internal > include => parkedcalls > exten => s,1,Answer > exten => s,n,Wait(1) > exten => s,n,Set(CHANNEL(musicclass)=QCI) > exten => s,n,Set(TIMEOUT(digit)=5) > exten => s,n,Set(TIMEOUT(response)=10) > exten => s,n,Background(thank-you-for-calling) > exten => > s,n,Dial(${QPHONE0}&${QPHONE1}&${QPHONE2}&${QPHONE3}&${QPHONE4}&${QPHONE5}&${QPHONE6}&${QPHONE7},40,Ttr) > exten => s,n,Hangup > > > [incoming2] > include => from-internal > include => parkedcalls > exten => s,1,Answer > exten => s,n,Wait(1) > exten => s,n,Set(CHANNEL(musicclass)=QCI) > exten => s,n,Set(TIMEOUT(digit)=5) > exten => s,n,Set(TIMEOUT(response)=10) > exten => s,n,Background(thank-you-for-calling) > exten => > s,n,Dial(${ACAPHONE0}&${ACAPHONE1}&${ACAPHONE2}&${ACAPHONE3}&${ACAPHONE4}&${ACAPHONE5}&${ACAPHONE6}&${ACAPHONE7},40,TTr) > exten => s,n,Hangup > > [incoming3] > include => from-internal > include => parkedcalls > exten => s,1,Answer > exten => s,n,Wait(1) > exten => s,n,Set(CHANNEL(musicclass)=QCI) > exten => s,n,Set(TIMEOUT(digit)=5) > exten => s,n,Set(TIMEOUT(response)=10) > exten => s,n,Background(thank-you-for-calling) > exten => s,n,GotoIfTime(17:01-09:00|*|*|*?closed,s,1) > exten => > s,n,Dial(${GMNETPHONE0}&${GMNETPHONE1}&${GMNETPHONE2}&${GMNETPHONE3}&${GMNETPHONE4}&${GMNETPHONE5}&${GMNETPHONE6}&${GMNETPHONE7},40,Ttr) > exten => s,n,Hangup > > [from-interal] > include => dialout1 > include => dialout2 > include => dialout3 > include => parkedcalls > include => intercom > > exten => 10,1,Macro(oneline,${QPHONE0}) > exten => 11,1,Macro(oneline,${QPHONE1}) > exten => 12,1,Macro(oneline,${QPHONE2}) > exten => 13,1,Macro(oneline,${QPHONE3}) > exten => 14,1,Macro(oneline,${QPHONE4}) > exten => 15,1,Macro(oneline,${QPHONE5}) > exten => 16,1,Macro(oneline,${QPHONE6}) > exten => 17,1,Macro(oneline,${QPHONE7}) > > exten => 20,1,Macro(oneline,${ACAPHONE0}) > exten => 21,1,Macro(oneline,${ACAPHONE1}) > exten => 22,1,Macro(oneline,${ACAPHONE2}) > exten => 23,1,Macro(oneline,${ACAPHONE3}) > exten => 24,1,Macro(oneline,${ACAPHONE4}) > exten => 25,1,Macro(oneline,${ACAPHONE5}) > exten => 26,1,Macro(oneline,${ACAPHONE6}) > exten => 27,1,Macro(oneline,${ACAPHONE7}) > > exten => 30,1,Macro(oneline,${GMNETPHONE0}) > exten => 31,1,Macro(oneline,${GMNETPHONE1}) > exten => 32,1,Macro(oneline,${GMNETPHONE2}) > exten => 33,1,Macro(oneline,${GMNETPHONE3}) > exten => 34,1,Macro(oneline,${GMNETPHONE4}) > exten => 35,1,Macro(oneline,${GMNETPHONE5}) > exten => 36,1,Macro(oneline,${GMNETPHONE6}) > exten => 37,1,Macro(oneline,${GMNETPHONE7}) > > exten => 40,1,Macro(oneline,${QPHONE0}) > exten => 41,1,Macro(oneline,${QPHONE1}) > exten => 42,1,Macro(oneline,${QPHONE2}) > exten => 43,1,Macro(oneline,${QPHONE3}) > exten => 44,1,Macro(oneline,${QPHONE4}) > exten => 45,1,Macro(oneline,${QPHONE5}) > exten => 46,1,Macro(oneline,${QPHONE6}) > exten => 47,1,Macro(oneline,${QPHONE7}) > > exten => 150,1,Macro(oneline,${EXTERNPHONE0}) > > > > > [macro-oneline] > exten => s,1,Set(CHANNEL(musicclass)=default) > exten => s,n,Dial(${ARG1},20,Ttr) > exten => s,n,Voicemail(${MACRO_EXTEN}) > exten => s,n,Hangup > exten => s,102,Voicemail(${MACRO_EXTEN}) > exten => s,103,Hangup > > > > [dialout1] > include => from-internal > include => 411 > exten => 911,1,Goto(nineoneone,s,1) > exten => _1NXXNXXXXXX,n,Dial(SIP/v6781234567/${EXTEN},40,Ttr) > exten => _NXXNXXXXXX,n,Dial(SIP/v6781234567/${EXTEN},40,Ttr) > > [dialout2] > include => from-internal > include => 411 > exten => 911,1,Goto(nineoneone,s,1) > exten => _1NXXNXXXXXX,n,Dial(SIP/voipdialACA/${EXTEN},40,Ttr) > exten => _NXXNXXXXXX,n,Dial(SIP/voipdialACA/${EXTEN},40,Ttr) > > [dialout3] > include => from-internal > include => 411 > exten => 911,1,Goto(nineoneone,s,1) > exten => _1NXXNXXXXXX,n,Dial(SIP/v6781234567/${EXTEN},40,Ttr) > exten => _1NXXNXXXXXX,n,Dial(SIP/v6781234567/${EXTEN},40,Ttr) > > > > [voicemail] > exten => 8500,1,VoicemailMain > exten => 8500,2,Hangup > > > > > [411] > exten => 411,1,Dial(SIP/v6781234567/18004664411,,Ttr) > > > [nineoneone] > exten => s,1,Set(SET_EMERG_FLAG=0) > exten => s,n(checkavail),ChanIsAvail(${EMERGENCY_TRUNK}) > exten => s,n,Set(EMERGENCY=1,g) > exten => s,n,Set(SET_EMERG_FLAG=1) > exten => s,n(dial),Dial(${EMERGENCY_TRUNK}/${EMERGENCY_NUM}) > exten => s,s+2(trunkbusy),GotoIf($[${EMERGENCY} = 1]?inprogress) > exten => s,n,SoftHangup(${EMERGENCY_TRUNK}-1) > exten => s,n,Wait(12) > exten => s,n,Goto(checkavail) > exten => s,s+2(inprogress),Congestion > exten => s,checkavail+101(notavail),Goto(trunkbusy) > exten => h,1,GotoIf($[${SET_EMERG_FLAG} = 1]?3) > exten => h,3,Set(EMERGENCY=0,g) > > > [closed] > exten => s,n,Dial(Dial(SIP/v6781234567/${CPHONE1},40,Ttr) > exten => s,n,Hangup > > > [intercom] > exten => 59,1,SIPAddHeader(Call-Info: answer-after=0) > exten => > 59,2,Page(${GMNETPHONE0}&${GMNETPHONE1}&${GMNETPHONE2}&${GMNETPHONE3}&${GMNETPHONE4}&${GMNETPHONE5}&${GMNETPHONE6}&${GMNETPHONE7}|d) > exten => 59,3, Hangup > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100830/190f3c9d/attachment-0001.htm
Todd Your context must be set to where you want your extension to start each time it dials out. Without getting into your dialplan code too much try changing the context to point to dialout1 context=dialout1 If dialout1 is working you should be able to dial. The best way to handle this is to create a context that when you dial from your phones it decieds if you have dialed an extension or an external number and then routes the call correclty. This way you can pickup an extension and dial either and get the desired results. Bryant ---------------------------------------- From: "Todd Reese" <treese65 at gmail.com> Sent: Monday, August 30, 2010 11:20 AM To: asterisk-users at lists.digium.com Subject: Re: [asterisk-users] help with dialplan Here is the sip.conf portion for extension 150 [150] deny=0.0.0.0/0.0.0.0 type=friend secret=1234567890 qualify=yes port=5060 pickupgrouppermit=0.0.0.0/0.0.0.0 nat=yes host=dynamic dtmfmode=rfc2833 dial=SIP/150 context=from-trunk canreinvite=no callgroupcallerid=device <150> accountcodecall-limit=50 On 8/30/2010 10:37 AM, Bryant Zimmerman wrote: Todd How do you have the context in the phones sip configs set? Bryant From: "Todd Reese" treese65 at gmail.com Hi all, I've been have problems with getting this system on line and would like to acquire some help with the extensions.conf. My current problem is that the phones won't dialout.on the VOIP lines listed as dialout1, dialout2, dialout3. This version of asterisk is 1.6.2.11. Below is the extensions.conf file. [globals] QPHONE0=SIP/10 QPHONE1=SIP/11 QPHONE2=SIP/12 QPHONE3=SIP/13 QPHONE4=SIP/14 QPHONE5=SIP/15 QPHONE6=SIP/16 QPHONE7=SIP/17 ACAPHONE0=SIP/20 ACAPHONE1=SIP/21 ACAPHONE2=SIP/22 ACAPHONE3=SIP/23 ACAPHONE4=SIP/24 ACAPHONE5=SIP/25 ACAPHONE6=SIP/26 ACAPHONE7=SIP/27 GMNETPHONE0=SIP/30 GMNETPHONE1=SIP/31 GMNETPHONE2=SIP/32 GMNETPHONE3=SIP/33 GMNETPHONE4=SIP/34 GMNETPHONE5=SIP/35 GMNETPHONE6=SIP/36 GMNETPHONE7=SIP/37 EXTERNPHONE0=SIP/150 CPHONE1=SIP/16780000000 CPHONE2=SIP/17700000000 EMERGENCY=0 EMERGENCY_TRUNK=DAHDI/G1 ; Change this for production use: EMERGENCY_NUM=6789542133 [from-pstn] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming1,s,1) [from-pstn1] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming1,s,1) [from-pstn2] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming1,s,1) [from-pstn3] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming1,s,1) [from-pstn4] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming3,s,1) [from-pstn5] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming2,s,1) [from-pstn6] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming1,s,1) [from-pstn7] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming1,s,1) [from-pstn8] exten => s,1,Set(FROM_DID="6780000000) exten => s,n,NoOp(id is ${FROM_DID}) exten => s,n,Goto(incoming1,s,1) [incoming1] include => from-internal include => parkedcalls exten => s,1,Answer exten => s,n,Wait(1) exten => s,n,Set(CHANNEL(musicclass)=QCI) exten => s,n,Set(TIMEOUT(digit)=5) exten => s,n,Set(TIMEOUT(response)=10) exten => s,n,Background(thank-you-for-calling) exten => s,n,Dial(${QPHONE0}&${QPHONE1}&${QPHONE2}&${QPHONE3}&${QPHONE4}&${QPHONE5}&$ {QPHONE6}&${QPHONE7},40,Ttr) exten => s,n,Hangup [incoming2] include => from-internal include => parkedcalls exten => s,1,Answer exten => s,n,Wait(1) exten => s,n,Set(CHANNEL(musicclass)=QCI) exten => s,n,Set(TIMEOUT(digit)=5) exten => s,n,Set(TIMEOUT(response)=10) exten => s,n,Background(thank-you-for-calling) exten => s,n,Dial(${ACAPHONE0}&${ACAPHONE1}&${ACAPHONE2}&${ACAPHONE3}&${ACAPHONE4}&${ ACAPHONE5}&${ACAPHONE6}&${ACAPHONE7},40,TTr) exten => s,n,Hangup [incoming3] include => from-internal include => parkedcalls exten => s,1,Answer exten => s,n,Wait(1) exten => s,n,Set(CHANNEL(musicclass)=QCI) exten => s,n,Set(TIMEOUT(digit)=5) exten => s,n,Set(TIMEOUT(response)=10) exten => s,n,Background(thank-you-for-calling) exten => s,n,GotoIfTime(17:01-09:00|*|*|*?closed,s,1) exten => s,n,Dial(${GMNETPHONE0}&${GMNETPHONE1}&${GMNETPHONE2}&${GMNETPHONE3}&${GMNET PHONE4}&${GMNETPHONE5}&${GMNETPHONE6}&${GMNETPHONE7},40,Ttr) exten => s,n,Hangup [from-interal] include => dialout1 include => dialout2 include => dialout3 include => parkedcalls include => intercom exten => 10,1,Macro(oneline,${QPHONE0}) exten => 11,1,Macro(oneline,${QPHONE1}) exten => 12,1,Macro(oneline,${QPHONE2}) exten => 13,1,Macro(oneline,${QPHONE3}) exten => 14,1,Macro(oneline,${QPHONE4}) exten => 15,1,Macro(oneline,${QPHONE5}) exten => 16,1,Macro(oneline,${QPHONE6}) exten => 17,1,Macro(oneline,${QPHONE7}) exten => 20,1,Macro(oneline,${ACAPHONE0}) exten => 21,1,Macro(oneline,${ACAPHONE1}) exten => 22,1,Macro(oneline,${ACAPHONE2}) exten => 23,1,Macro(oneline,${ACAPHONE3}) exten => 24,1,Macro(oneline,${ACAPHONE4}) exten => 25,1,Macro(oneline,${ACAPHONE5}) exten => 26,1,Macro(oneline,${ACAPHONE6}) exten => 27,1,Macro(oneline,${ACAPHONE7}) exten => 30,1,Macro(oneline,${GMNETPHONE0}) exten => 31,1,Macro(oneline,${GMNETPHONE1}) exten => 32,1,Macro(oneline,${GMNETPHONE2}) exten => 33,1,Macro(oneline,${GMNETPHONE3}) exten => 34,1,Macro(oneline,${GMNETPHONE4}) exten => 35,1,Macro(oneline,${GMNETPHONE5}) exten => 36,1,Macro(oneline,${GMNETPHONE6}) exten => 37,1,Macro(oneline,${GMNETPHONE7}) exten => 40,1,Macro(oneline,${QPHONE0}) exten => 41,1,Macro(oneline,${QPHONE1}) exten => 42,1,Macro(oneline,${QPHONE2}) exten => 43,1,Macro(oneline,${QPHONE3}) exten => 44,1,Macro(oneline,${QPHONE4}) exten => 45,1,Macro(oneline,${QPHONE5}) exten => 46,1,Macro(oneline,${QPHONE6}) exten => 47,1,Macro(oneline,${QPHONE7}) exten => 150,1,Macro(oneline,${EXTERNPHONE0}) [macro-oneline] exten => s,1,Set(CHANNEL(musicclass)=default) exten => s,n,Dial(${ARG1},20,Ttr) exten => s,n,Voicemail(${MACRO_EXTEN}) exten => s,n,Hangup exten => s,102,Voicemail(${MACRO_EXTEN}) exten => s,103,Hangup [dialout1] include => from-internal include => 411 exten => 911,1,Goto(nineoneone,s,1) exten => _1NXXNXXXXXX,n,Dial(SIP/v6781234567/${EXTEN},40,Ttr) exten => _NXXNXXXXXX,n,Dial(SIP/v6781234567/${EXTEN},40,Ttr) [dialout2] include => from-internal include => 411 exten => 911,1,Goto(nineoneone,s,1) exten => _1NXXNXXXXXX,n,Dial(SIP/voipdialACA/${EXTEN},40,Ttr) exten => _NXXNXXXXXX,n,Dial(SIP/voipdialACA/${EXTEN},40,Ttr) [dialout3] include => from-internal include => 411 exten => 911,1,Goto(nineoneone,s,1) exten => _1NXXNXXXXXX,n,Dial(SIP/v6781234567/${EXTEN},40,Ttr) exten => _1NXXNXXXXXX,n,Dial(SIP/v6781234567/${EXTEN},40,Ttr) [voicemail] exten => 8500,1,VoicemailMain exten => 8500,2,Hangup [411] exten => 411,1,Dial(SIP/v6781234567/18004664411,,Ttr) [nineoneone] exten => s,1,Set(SET_EMERG_FLAG=0) exten => s,n(checkavail),ChanIsAvail(${EMERGENCY_TRUNK}) exten => s,n,Set(EMERGENCY=1,g) exten => s,n,Set(SET_EMERG_FLAG=1) exten => s,n(dial),Dial(${EMERGENCY_TRUNK}/${EMERGENCY_NUM}) exten => s,s+2(trunkbusy),GotoIf($[${EMERGENCY} = 1]?inprogress) exten => s,n,SoftHangup(${EMERGENCY_TRUNK}-1) exten => s,n,Wait(12) exten => s,n,Goto(checkavail) exten => s,s+2(inprogress),Congestion exten => s,checkavail+101(notavail),Goto(trunkbusy) exten => h,1,GotoIf($[${SET_EMERG_FLAG} = 1]?3) exten => h,3,Set(EMERGENCY=0,g) [closed] exten => s,n,Dial(Dial(SIP/v6781234567/${CPHONE1},40,Ttr) exten => s,n,Hangup [intercom] exten => 59,1,SIPAddHeader(Call-Info: answer-after=0) exten => 59,2,Page(${GMNETPHONE0}&${GMNETPHONE1}&${GMNETPHONE2}&${GMNETPHONE3}&${GMNE TPHONE4}&${GMNETPHONE5}&${GMNETPHONE6}&${GMNETPHONE7}|d) exten => 59,3, Hangup -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100830/e89059ac/attachment.htm