Hi everyone! I'm quite a newbie at this Asterisk stuff so please bear with me. We've recently decided to start training in Asterisk via AsteriskNow! Asterisk version is 1.4.18.1 through AsteriskNow! 1.02 The box we have is paired with a Digium TE110P and we've managed to get it to the point where incoming calls via a single DID (from NTT Japan) can be received and answered (INS1500 here in Japan). We're using SIP phones here. However, on attempting outbound calls, I've noticed the following message on the Live Console. Warning [2630]: config.c:768 process_text_line: Unknown Directive at line 231 of /etc/asterisk/../zaptel.conf The phones have no dial tones and we get nothing but silence when dialing no.s and hitting the 'send' button. Following are some excerpts from the Conf Files (Sorry about the spam - I'm not sure what's redundant) --- Sip.Conf: (Only included info that didn't start with semicolons) [general] context=default ; Default context for incoming calls allowoverlap=no ; Disable overlap dialing support. (Default is yes) bindport=5060 ; UDP Port to bind to (SIP standard port is 5060) bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) srvlookup=yes ; Enable DNS SRV lookups on outbound calls language=jp ; Default language setting for all users/peers ; This may also be set for individual users/peers Extensions.Conf: [general] static = yes writeprotect = no autofallthrough = yes clearglobalvars = no priorityjumping = no [globals] span_1 = Zap/g1 [dundi-e164-canonical] [dundi-e164-customers] [dundi-e164-via-pstn] [dundi-e164-local] include => dundi-e164-canonical include => dundi-e164-customers include => dundi-e164-via-pstn [dundi-e164-switch] switch => DUNDi/e164 [dundi-e164-lookup] include => dundi-e164-local include => dundi-e164-switch [macro-dundi-e164] exten => s,1,Goto(${ARG1},1) include => dundi-e164-lookup [iaxtel700] exten => _91700XXXXXXX,1,Dial(IAX2/${IAXINFO}@iaxtel.com/${EXTEN:1}@iaxtel) [iaxprovider] [trunkint] exten => _9011.,1,Macro(dundi-e164,${EXTEN:4}) exten => _9011.,n,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) [trunkld] exten => _91NXXNXXXXXX,1,Macro(dundi-e164,${EXTEN:1}) exten => _91NXXNXXXXXX,n,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) [trunklocal] exten => _9NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) [trunktollfree] exten => _91800NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) exten => _91888NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) exten => _91877NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) exten => _91866NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) [international] ignorepat => 9 include => longdistance include => trunkint [longdistance] ignorepat => 9 include => local include => trunkld [local] ignorepat => 9 include => default include => parkedcalls include => trunklocal include => iaxtel700 include => trunktollfree include => iaxprovider [macro-stdexten] exten => s,1,Dial(${ARG2},20) exten => s,2,Goto(s-${DIALSTATUS},1) exten => s-NOANSWER,1,Voicemail(${ARG1},u) exten => s-NOANSWER,2,Goto(default,s,1) exten => s-BUSY,1,Voicemail(${ARG1},b) exten => s-BUSY,2,Goto(default,s,1) exten => _s-.,1,Goto(s-NOANSWER,1) exten => a,1,VoicemailMain(${ARG1}) [macro-stdPrivacyexten] exten => s,1,Dial(${ARG2},20|p) exten => s,2,Goto(s-${DIALSTATUS},1) exten => s-NOANSWER,1,Voicemail(u${ARG1}) exten => s-NOANSWER,2,Goto(default,s,1) exten => s-BUSY,1,Voicemail(b${ARG1}) exten => s-BUSY,2,Goto(default,s,1) exten => s-DONTCALL,1,Goto(${ARG3},s,1) exten => s-TORTURE,1,Goto(${ARG4},s,1) exten => _s-.,1,Goto(s-NOANSWER,1) exten => a,1,VoicemailMain(${ARG1}) [macro-page] exten => s,1,ChanIsAvail(${ARG1}|js) exten => s,n,GoToIf([${AVAILSTATUS} = "1"]?autoanswer:fail) exten => s,n(autoanswer),Set(_ALERT_INFO="RA") exten => s,n,SIPAddHeader(Call-Info: Answer-After=0) exten => s,n,NoOp() exten => s,n,Dial(${ARG1}||) exten => s,n(fail),Hangup [page] exten => _X.,1,Macro(page,SIP/${EXTEN}) [default] exten => 6050,1,VoiceMailMain exten = 7000,1,Goto(voicemenu-custom-1|s|1) exten => 6000,1,MeetMe(${EXTEN}|MI) exten = 3010,1,Goto(ringroups-custom-1|s|1) exten = 3020,1,Goto(ringroups-custom-2|s|1) exten = 6005,1,Queue(${EXTEN}) [voicemenu-custom-1] include = default comment = Welcome alias_exten = 7000 exten = s,1,Answer exten = s,2,Wait(1) exten = s,3,Background(thank-you-for-calling) exten = s,4,Background(if-u-know-ext-dial) exten = s,5,Background(otherwise) exten = s,6,Background(to-reach-operator) exten = s,7,Background(pls-hold-while-try) exten = s,8,WaitExten(6) [numberplan-custom-1] plancomment = DialPlan1 include = default include = parkedcalls exten _9011XXXXXXX!,1,Macro(trunkdial,${span_1}/${EXTEN:1},${span_1_cid}) comment = _9011XXXXXXX!,1,International,standard exten _9256XXXXXXX!,1,Macro(trunkdial,${span_1}/${EXTEN:4},${span_1_cid}) comment = _9256XXXXXXX!,1,Local,standard exten _91700XXXXXXX!,1,Macro(trunkdial,${span_1}/${EXTEN:1},${span_1_cid}) comment = _91700XXXXXXX!,1,IAXTEL,standard exten _91XXXXXXXXXX!,1,Macro(trunkdial,${span_1}/${EXTEN:1},${span_1_cid}) comment = _91XXXXXXXXXX!,1,Longdistance,standard exten = _9XXXXXXX!,1,Macro(trunkdial,${span_1}/${EXTEN:1},${span_1_cid}) comment = _9XXXXXXX!,1,Local,standard exten = _911!,1,Macro(trunkdial,${span_1}/${EXTEN:0},${span_1_cid}) comment = _911!,1,911,standard [macro-trunkdial] exten = s,1,set(CALLERID(all)=${IF($["${LEN(${CALLERID(num)})}" > "6"]?${CALLERID(all)}:${ARG2})}) exten = s,n,Dial(${ARG1}) exten = s,n,Goto(s-${DIALSTATUS},1) exten = s-NOANSWER,1,Hangup exten = s-BUSY,1,Hangup exten = _s-.,1,NoOp [ringroups-custom-1] gui_ring_groupname = Alpha_Bravo exten = s,1,NoOp(RINGGROUP) exten = s,n,Dial(SIP/3000,3) exten = s,n,Dial(SIP/3001,3) exten = s,n,Voicemail(3000,b) [ringroups-custom-2] gui_ring_groupname = Charlie_Delta exten = s,1,NoOp(RINGGROUP) exten = s,n,Dial(SIP/3002,3) exten = s,n,Dial(SIP/3003,3) exten = s,n,Voicemail(3002,b) [DID_span_1] include = default exten = _X.,1,Goto(ringroups-custom-1,s,1) exten = s,1,ExecIf($[ "${CALLERID(num)}"="" ],SetCallerPres,unavailable) exten = s,2,ExecIf($[ "${CALLERID(num)}"="" ],Set,CALLERID(all)=unknown <0000000>) exten = s,3,Goto(ringroups-custom-1,s,1) Zapata.Conf: (Pretty much empty - is this corrent?) [Trunks] [Channels] Zaptel.Conf: span = 1,1,0,esf,b8zs bchan = 1-23 dchan = 24 loadzone = jp defaultzone = jp --- I'm still reading up on online help and documentation but can't find anything that suggests what could be wrong. Thanks in advance for any help! YK
hi you should first solve this Warning [2630]: config.c:768 process_text_line: Unknown Directive at line 231 of /etc/asterisk/../zaptel.conf check what do you have in the line 231 of your zaptel.conf file. David 2009/2/26 Wye-khe Kwok <Wye-khe.Kwok at biosjp.com>> Hi everyone! > > I'm quite a newbie at this Asterisk stuff so please bear with me. > > We've recently decided to start training in Asterisk via AsteriskNow! > > Asterisk version is 1.4.18.1 through AsteriskNow! 1.02 > > The box we have is paired with a Digium TE110P and we've managed to get > it to the point where incoming calls via a single DID (from NTT Japan) > can be received and answered (INS1500 here in Japan). We're using SIP > phones here. > > However, on attempting outbound calls, I've noticed the following > message on the Live Console. > > Warning [2630]: config.c:768 process_text_line: Unknown Directive at > line 231 of /etc/asterisk/../zaptel.conf > > The phones have no dial tones and we get nothing but silence when > dialing no.s and hitting the 'send' button. > > Following are some excerpts from the Conf Files (Sorry about the spam - > I'm not sure what's redundant) > > --- > > Sip.Conf: (Only included info that didn't start with semicolons) > > [general] > context=default ; Default context for incoming calls > allowoverlap=no ; Disable overlap dialing support. > (Default is yes) > bindport=5060 ; UDP Port to bind to (SIP standard port > is 5060) > bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds > to all) > srvlookup=yes ; Enable DNS SRV lookups on outbound > calls > > language=jp ; Default language setting for all > users/peers > ; This may also be set for individual > users/peers > > > Extensions.Conf: > > [general] > static = yes > writeprotect = no > autofallthrough = yes > clearglobalvars = no > priorityjumping = no > > [globals] > span_1 = Zap/g1 > > [dundi-e164-canonical] > > [dundi-e164-customers] > > [dundi-e164-via-pstn] > > [dundi-e164-local] > include => dundi-e164-canonical > include => dundi-e164-customers > include => dundi-e164-via-pstn > > [dundi-e164-switch] > switch => DUNDi/e164 > > [dundi-e164-lookup] > include => dundi-e164-local > include => dundi-e164-switch > > [macro-dundi-e164] > exten => s,1,Goto(${ARG1},1) > include => dundi-e164-lookup > > [iaxtel700] > exten => > _91700XXXXXXX,1,Dial(IAX2/${IAXINFO}@iaxtel.com/${EXTEN:1}@iaxtel<http://IAXINFO%7D at iaxtel.com/$%7BEXTEN:1%7D at iaxtel> > ) > > [iaxprovider] > > [trunkint] > exten => _9011.,1,Macro(dundi-e164,${EXTEN:4}) > exten => _9011.,n,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) > > [trunkld] > exten => _91NXXNXXXXXX,1,Macro(dundi-e164,${EXTEN:1}) > exten => _91NXXNXXXXXX,n,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) > > [trunklocal] > exten => _9NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) > > [trunktollfree] > exten => _91800NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) > exten => _91888NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) > exten => _91877NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) > exten => _91866NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) > > [international] > ignorepat => 9 > include => longdistance > include => trunkint > > [longdistance] > ignorepat => 9 > include => local > include => trunkld > > [local] > ignorepat => 9 > include => default > include => parkedcalls > include => trunklocal > include => iaxtel700 > include => trunktollfree > include => iaxprovider > > [macro-stdexten] > exten => s,1,Dial(${ARG2},20) > exten => s,2,Goto(s-${DIALSTATUS},1) > exten => s-NOANSWER,1,Voicemail(${ARG1},u) > exten => s-NOANSWER,2,Goto(default,s,1) > exten => s-BUSY,1,Voicemail(${ARG1},b) > exten => s-BUSY,2,Goto(default,s,1) > exten => _s-.,1,Goto(s-NOANSWER,1) > exten => a,1,VoicemailMain(${ARG1}) > > [macro-stdPrivacyexten] > exten => s,1,Dial(${ARG2},20|p) > exten => s,2,Goto(s-${DIALSTATUS},1) > exten => s-NOANSWER,1,Voicemail(u${ARG1}) > exten => s-NOANSWER,2,Goto(default,s,1) > exten => s-BUSY,1,Voicemail(b${ARG1}) > exten => s-BUSY,2,Goto(default,s,1) > exten => s-DONTCALL,1,Goto(${ARG3},s,1) > exten => s-TORTURE,1,Goto(${ARG4},s,1) > exten => _s-.,1,Goto(s-NOANSWER,1) > exten => a,1,VoicemailMain(${ARG1}) > > [macro-page] > exten => s,1,ChanIsAvail(${ARG1}|js) > exten => s,n,GoToIf([${AVAILSTATUS} = "1"]?autoanswer:fail) > exten => s,n(autoanswer),Set(_ALERT_INFO="RA") > exten => s,n,SIPAddHeader(Call-Info: Answer-After=0) > exten => s,n,NoOp() > exten => s,n,Dial(${ARG1}||) > exten => s,n(fail),Hangup > > [page] > exten => _X.,1,Macro(page,SIP/${EXTEN}) > > [default] > exten => 6050,1,VoiceMailMain > exten = 7000,1,Goto(voicemenu-custom-1|s|1) > exten => 6000,1,MeetMe(${EXTEN}|MI) > exten = 3010,1,Goto(ringroups-custom-1|s|1) > exten = 3020,1,Goto(ringroups-custom-2|s|1) > exten = 6005,1,Queue(${EXTEN}) > > [voicemenu-custom-1] > include = default > comment = Welcome > alias_exten = 7000 > exten = s,1,Answer > exten = s,2,Wait(1) > exten = s,3,Background(thank-you-for-calling) > exten = s,4,Background(if-u-know-ext-dial) > exten = s,5,Background(otherwise) > exten = s,6,Background(to-reach-operator) > exten = s,7,Background(pls-hold-while-try) > exten = s,8,WaitExten(6) > > [numberplan-custom-1] > plancomment = DialPlan1 > include = default > include = parkedcalls > exten > _9011XXXXXXX!,1,Macro(trunkdial,${span_1}/${EXTEN:1},${span_1_cid}) > comment = _9011XXXXXXX!,1,International,standard > exten > _9256XXXXXXX!,1,Macro(trunkdial,${span_1}/${EXTEN:4},${span_1_cid}) > comment = _9256XXXXXXX!,1,Local,standard > exten > _91700XXXXXXX!,1,Macro(trunkdial,${span_1}/${EXTEN:1},${span_1_cid}) > comment = _91700XXXXXXX!,1,IAXTEL,standard > exten > _91XXXXXXXXXX!,1,Macro(trunkdial,${span_1}/${EXTEN:1},${span_1_cid}) > comment = _91XXXXXXXXXX!,1,Longdistance,standard > exten = _9XXXXXXX!,1,Macro(trunkdial,${span_1}/${EXTEN:1},${span_1_cid}) > comment = _9XXXXXXX!,1,Local,standard > exten = _911!,1,Macro(trunkdial,${span_1}/${EXTEN:0},${span_1_cid}) > comment = _911!,1,911,standard > > [macro-trunkdial] > exten = s,1,set(CALLERID(all)=${IF($["${LEN(${CALLERID(num)})}" > > "6"]?${CALLERID(all)}:${ARG2})}) > exten = s,n,Dial(${ARG1}) > exten = s,n,Goto(s-${DIALSTATUS},1) > exten = s-NOANSWER,1,Hangup > exten = s-BUSY,1,Hangup > exten = _s-.,1,NoOp > > [ringroups-custom-1] > gui_ring_groupname = Alpha_Bravo > exten = s,1,NoOp(RINGGROUP) > exten = s,n,Dial(SIP/3000,3) > exten = s,n,Dial(SIP/3001,3) > exten = s,n,Voicemail(3000,b) > > [ringroups-custom-2] > gui_ring_groupname = Charlie_Delta > exten = s,1,NoOp(RINGGROUP) > exten = s,n,Dial(SIP/3002,3) > exten = s,n,Dial(SIP/3003,3) > exten = s,n,Voicemail(3002,b) > > [DID_span_1] > include = default > exten = _X.,1,Goto(ringroups-custom-1,s,1) > exten = s,1,ExecIf($[ "${CALLERID(num)}"="" ],SetCallerPres,unavailable) > exten = s,2,ExecIf($[ "${CALLERID(num)}"="" ],Set,CALLERID(all)=unknown > <0000000>) > exten = s,3,Goto(ringroups-custom-1,s,1) > > > Zapata.Conf: (Pretty much empty - is this corrent?) > > [Trunks] > > [Channels] > > > > Zaptel.Conf: > > span = 1,1,0,esf,b8zs > bchan = 1-23 > dchan = 24 > loadzone = jp > defaultzone = jp > > --- > > I'm still reading up on online help and documentation but can't find > anything that suggests what could be wrong. > > Thanks in advance for any help! > > YK > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your (")_(")signature to help him gain world domination. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090226/2b15650e/attachment.htm
Hey, thanks for the help David, Tzafrir. Lots of config tips there :-) We managed to find a fix through the following (For anyone who's interested): Running /sbin/ztcfg -vv to configure Zaptel initially resulted in an error of: Notice: Configuration file is /etc/zaptel.conf line 0: Unable to open master device '/dev/zap/ctl' We then Chmodded everything under /dev/zap/ , rebooted and almost fell off our chairs when it worked! We were initially on the impression that Zaptel is only used with Analogue - can anyone verify this? YK -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090227/7c21ef00/attachment-0001.htm