Time intervals not working

Get help with installing and running AsteriskNOW.

Moderators: Moderator, Support

Time intervals not working

Postby Deek » Fri Oct 24, 2008 12:08 am

Hi all,

Time intervals dont seem to work...when calling in I get this error in the log right after the answer:

[Oct 23 22:56:31] WARNING[5570] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:
[Oct 23 22:56:31] WARNING[5570] ast_expr2.fl: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.

and there are a bunch of them in the log...

I looked through extensions.conf, but cant spot the issue...I suspect it to be related to the error above.
Deek
Oldsterisk
 
Posts: 85
Joined: Thu Mar 20, 2008 4:49 pm

Postby bkruse » Fri Oct 24, 2008 3:37 pm

That could be from the old macro-trunkdial.

Can you paste your extensions.conf?

Does it give you a line number? (Usually does when a call goes through the line that it error ed above)

-bk
bkruse
Site Admin
 
Posts: 881
Joined: Mon Dec 04, 2006 3:20 pm
Location: Huntsville, Alabama

Conf file

Postby Deek » Fri Oct 24, 2008 3:52 pm

I cant spot the error, no line number ;-( that would be too easy! Log error looks like this:

[Oct 24 10:52:20] WARNING[7433] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:
[Oct 24 10:52:20] WARNING[7433] ast_expr2.fl: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
[Oct 24 10:53:36] WARNING[7434] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:
[Oct 24 10:53:36] WARNING[7434] ast_expr2.fl: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
[Oct 24 10:54:08] WARNING[7435] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:
[Oct 24 10:54:08] WARNING[7435] ast_expr2.fl: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
[Oct 24 10:54:52] WARNING[7436] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:
[Oct 24 10:54:52] WARNING[7436] ast_expr2.fl: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
[Oct 24 10:57:59] WARNING[7437] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:
[Oct 24 10:57:59] WARNING[7437] ast_expr2.fl: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
[Oct 24 10:58:07] WARNING[7438] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:
[Oct 24 10:58:07] WARNING[7438] ast_expr2.fl: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
[Oct 24 11:00:37] WARNING[7440] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:
[Oct 24 11:00:37] WARNING[7440] ast_expr2.fl: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
[Oct 24 11:08:48] WARNING[7443] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:
[Oct 24 11:08:48] WARNING[7443] ast_expr2.fl: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
[Oct 24 11:16:11] WARNING[7446] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:
[Oct 24 11:16:11] WARNING[7446] ast_expr2.fl: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
[Oct 24 11:16:48] WARNING[7447] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:




extensions.conf
;!
;! Automatically generated configuration file
;! Filename: extensions.conf (/etc/asterisk/extensions.conf)
;! Generator: Manager
;! Creation Date: Thu Oct 23 22:21:01 2008
;!
[general]
static = yes
writeprotect = no
autofallthrough = yes
clearglobalvars = yes
priorityjumping = no

[globals]
trunk_1 = Zap/g3
CID_6001 = 209-728-2091
CID_6002 = 209-728-2091
CID_6003 = 209-728-2091
CID_6004 = 209-728-2091
CID_6005 = 209-728-2091
CID_6006 = 209-728-2091
CID_6010 = 209-728-2091
CID_6012 = 209-728-2091
CID_6014 = 209-728-2091
CID_6015 = 209-728-2091
CID_6016 = 209-728-2091
CID_6017 = 209-728-2091
CID_6018 = 209-728-2091
CID_6020 = 209-728-2091
CID_6021 = 209-728-2091
CID_6025 = 209-728-2091
CID_6027 = 209-728-2091
CID_6028 = 209-728-2091
CID_6029 = 209-728-2091
CID_6030 = 209-728-2091
CID_6031 = 209-728-2091
CID_6032 = 209-728-2091
CID_6999 = 209-728-2091
CID_trunk_1 = 12097282091
GLOBAL_OUTBOUNDCID = 209-728-2091
FEATURES =
DIALOPTIONS =
RINGTIME = 20
FOLLOWMEOPTIONS =
timeinterval_NightMode = 16:45-00:00|mon-fri|*|*
timeinterval_SatSun = *|sat-sun|*|*
timeinterval_WorkdayBizHours = 08:00-16:45|mon-fri|*|*
timeinterval_WorkDayPre8am = 00:00-08:00|mon-fri|*|*

[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-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

[demo]
exten => s,1,Wait(1)
exten => s,n,Answer
exten => s,n,Set(TIMEOUT(digit)=5)
exten => s,n,Set(TIMEOUT(response)=10)
exten => s,n(restart),BackGround(demo-congrats)
exten => s,n(instruct),BackGround(demo-instruct)
exten => s,n,WaitExten
exten => 2,1,BackGround(demo-moreinfo)
exten => 2,n,Goto(s,instruct)
exten => 3,1,Set(LANGUAGE()=fr)
exten => 3,n,Goto(s,restart)
exten => 1000,1,Goto(default,s,1)
exten => 1234,1,Playback(transfer,skip)
exten => 1234,n,Macro(stdexten,1234,${CONSOLE})
exten => 1235,1,Voicemail(u1234)
exten => 1236,1,Dial(Console/dsp)
exten => 1236,n,Voicemail(u1234)
exten => #,1,Playback(demo-thanks)
exten => #,n,Hangup
exten => t,1,Goto(#,1)
exten => i,1,Playback(invalid)
exten => 500,1,Playback(demo-abouttotry)
exten => 500,n,Dial(IAX2/guest@misery.digium.com/s@default)
exten => 500,n,Playback(demo-nogo)
exten => 500,n,Goto(s,6)
exten => 600,1,Playback(demo-echotest)
exten => 600,n,Echo
exten => 600,n,Playback(demo-echodone)
exten => 600,n,Goto(s,6)
exten => 76245,1,Macro(page,SIP/Grandstream1)
exten => _7XXX,1,Macro(page,SIP/${EXTEN})
exten => 7999,1,Set(TIMEOUT(absolute)=60)
exten => 7999,2,Page(Local/Grandstream1@page&Local/Xlite1@page&Local/1234@page/n|d)
exten => 8500,1,VoicemailMain
exten => 8500,n,Goto(s,6)

[page]
exten => _X.,1,Macro(page,SIP/${EXTEN})

[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

[asterisk_guitools]
exten = executecommand,1,System(${command})
exten = executecommand,n,Hangup()
exten = record_vmenu,1,Answer
exten = record_vmenu,n,Playback(vm-intro)
exten = record_vmenu,n,Record(${var1})
exten = record_vmenu,n,Playback(vm-saved)
exten = record_vmenu,n,Playback(vm-goodbye)
exten = record_vmenu,n,Hangup
exten = play_file,1,Answer
exten = play_file,n,Playback(${var1})
exten = play_file,n,Hangup

[macro-pageext]
exten => s,1,ChanIsAvail(${ARG1}|js) ; j is for dump and s is for ANY call
exten => s,2,SIPAddHeader(Call-Info: answer-after=0)
exten => s,3,Dial(${ARG1})
exten => s,4,NoOp() ; Add others here
exten => s,5, Hangup
exten => s,102,Hangup

[DID_trunk_1]
include = DID_trunk_1_timeinterval_WorkdayBizHours|${timeinterval_WorkdayBizHours}
include = DID_trunk_1_timeinterval_WorkDayPre8am|${timeinterval_WorkDayPre8am}
include = DID_trunk_1_timeinterval_SatSun|${timeinterval_SatSun}
include = DID_trunk_1_timeinterval_NightMode|${timeinterval_NightMode}
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)
include = DID_trunk_1_default

[default]
exten = _*6XXX,1,VoiceMail(${EXTEN:1}@default)
exten = 6050,1,VoiceMailMain(${CALLERID(num)}@default)
exten = o,1,Goto(default,6012,1)

[conferences]
exten = 6300,1,MeetMe(${EXTEN}|MsIx)
exten = 6301,1,MeetMe(6300|MsIxaA)

[ringgroups]
exten = 0,1,Goto(ringroups-custom-1|s|1)
exten = 6400,1,Goto(ringroups-custom-2|s|1)

[queues]

[voicemenus]
exten = 7000,1,Goto(voicemenu-custom-1|s|1)
exten = 7001,1,Goto(voicemenu-custom-2|s|1)
exten = 7002,1,Goto(voicemenu-custom-3|s|1)
exten = 7003,1,Goto(voicemenu-custom-4|s|1)

[voicemailgroups]

[directory]
exten = *,1,Directory(default|default|f)

[macro-trunkdial-failover-0.3]
; Macro by = Brandon Kruse <bkruse@digium.com> & Matthew O'Gorman mogorman@digium.com
exten = s,1,Set(CALLERID(num)=${IF($[${LEN(${CID_${CALLERID(num)}})} > 2]?${CID_${CALLERID(num)}}:)})
exten = s,n,GotoIf($[${LEN(${CALLERID(num)})} > 6]?1-dial,1)
exten = s,n,Set(CALLERID(all)=${IF($[${LEN(${CID_${ARG3}})} > 6]?${CID_${ARG3}}:${GLOBAL_OUTBOUNDCID})})
exten = s,n,Goto(1-dial,1)
exten = 1-dial,1,Dial(${ARG1})
exten = 1-dial,n,Gotoif(${LEN(${ARG2})} > 0 ?1-${DIALSTATUS},1:1-out,1)
exten = 1-CHANUNAVAIL,1,Dial(${ARG2})
exten = 1-CHANUNAVAIL,n,Hangup()
exten = 1-CONGESTION,1,Dial(${ARG2})
exten = 1-CONGESTION,n,Hangup()
exten = 1-out,1,Hangup()

[CallingRule_Longdistance]
exten = _91XXXXXXXXXX!,1,Macro(trunkdial-failover-0.3,${trunk_1}/wwww${EXTEN:1},,trunk_1,trunk_1)

[CallingRule_IAXTEL]
exten = _91700XXXXXXX!,1,Macro(trunkdial-failover-0.3,${trunk_1}/wwww${EXTEN:1},,trunk_1,trunk_1)

[CallingRule_Local_AreaCode]
exten = _9209XXXXXXX!,1,Macro(trunkdial-failover-0.3,${trunk_1}/wwww${EXTEN:4},,trunk_1,trunk_1)

[CallingRule_International]
exten = _9011XXXXX.,1,Macro(trunkdial-failover-0.3,${trunk_1}/wwww${EXTEN:1},,trunk_1,trunk_1)
exten = _9011XXXXXXX!,1,Macro(trunkdial-failover-0.3,${trunk_1}/${EXTEN:1},,trunk_1,)

[CallingRule_Local_7_digits]
exten = _9XXXXXXX!,1,Macro(trunkdial-failover-0.3,${trunk_1}/wwww${EXTEN:1},,trunk_1,trunk_1)

[CallingRule_Emergency]
exten = _911!,1,Macro(trunkdial-failover-0.3,${trunk_1}/wwww${EXTEN:0},,trunk_1,trunk_1)

[DID_trunk_1_default]
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)

[CallingRule_TollFree]
exten = _918XXXXXXXXX!,1,Macro(trunkdial-failover-0.3,${trunk_1}/wwww${EXTEN:1},,trunk_1,trunk_1)

[macro-dwait]
exten => s,1,Wait(${ARG1})

[DID_trunk_1_timeinterval_NightMode]
exten = s,1,ExecIf($[ "${CALLERID(num)}"="" ],SetCallerPres,unavailable)
exten = s,2,ExecIf($[ "${CALLERID(num)}"="" ],Set,CALLERID(all)=unknown <0000000>)
exten = s,3,Goto(voicemenu-custom-4|s|1)

[DID_trunk_1_timeinterval_SatSun]
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-2|s|1)

[DID_trunk_1_timeinterval_WorkDayPre8am]
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-2|s|1)

[DID_trunk_1_timeinterval_WorkdayBizHours]
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)

[ringroups-custom-1]
exten = s,1,NoOp(BizHours)
exten = s,n,Dial(SIP/6012&SIP/6016&SIP/6010,10,i)
exten = s,n,Goto(voicemenu-custom-1|s|1)

[ringroups-custom-2]
exten = s,1,NoOp(weekend)
exten = s,n,Dial(SIP/6025&SIP/6029&SIP/6018&SIP/6020&SIP/6021&SIP/6012&SIP/6030&SIP/6010&SIP/6003&SIP/6004&SIP/6031&SIP/6015&SIP/6006&SIP/6001,10,i)
exten = s,n,Voicemail(6010,u)

[voicemenu-custom-3]
include = default
exten = s,1,NoOp(EarlyAM)
exten = s,2,Answer()
exten = s,3,Wait(5)
exten = s,4,Goto(ringroups-custom-2|s|1)
exten = s,5,Background(record/EarlyAM)
exten = s,6,WaitExten(8)
exten = s,7,Voicemail(6010,u)
exten = 0,1,Goto(default|o|1)
exten = #,1,Goto(directory|*|1)

[macro-stdexten]
exten = s,1,Set(__DYNAMIC_FEATURES=${FEATURES})
exten = s,2,GotoIf($[${FOLLOWME_${ARG1}} = 1]?5:3)
exten = s,3,Dial(${ARG2},${RINGTIME},${DIALOPTIONS})
exten = s,4,Goto(s-${DIALSTATUS},1)
exten = s,5,Macro(stdexten-followme,${ARG1},${ARG2})
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-stdexten-followme]
exten = s,1,Dial(${ARG2},${RINGTIME},${DIALOPTIONS})
exten = s,2,Followme(${ARG1},${FOLLOWMEOPTIONS})
exten = s,3,Voicemail(${ARG1},u)
exten = s-NOANSWER,1,Voicemail(${ARG1},u)
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})

[CallingRule_IAXTEL]

[CallingRule_Local]
exten = _9256XXXXXXX!,1,Macro(trunkdial-failover-0.3,${trunk_1}/${EXTEN:4},,trunk_1,)
exten = _9XXXXXXX!,1,Macro(trunkdial-failover-0.3,${trunk_1}/wwww${EXTEN:1},,trunk_1,)

[CallingRule_International]

[CallingRule_911]
exten = _911!,1,Macro(trunkdial-failover-0.3,${trunk_1}/${EXTEN:0},,trunk_1,)

[CallingRule_Local]

[CallingRule_Longdistance]

[CallingRule_ATT FWD]
exten = _972#,1,Macro(trunkdial-failover-0.3,${trunk_1}/${EXTEN:1},,trunk_1,)

[voicemenu-custom-2]
include = default
exten = s,1,NoOp(Main Business Hours)
exten = s,2,Answer()
exten = s,3,Wait(1)
exten = s,4,Background(record/MainBizHrs)
exten = s,5,Wait(3)
exten = s,6,Background(one-moment-please)
exten = s,7,Playback(privacy-please-stay-on-line-to-be-connected)
exten = s,8,Goto(ringroups-custom-1|s|1)
exten = 0,1,Goto(ringroups-custom-1|s|1)
exten = *,1,Goto(directory|*|1)
exten = #,1,Goto(directory|*|1)

[voicemenu-custom-4]
include = default
exten = s,1,NoOp(Weekend/AfterHours)
exten = s,2,Answer()
exten = s,3,Wait(4)
exten = s,4,Background(record/weekend)
exten = s,5,WaitExten(8)
exten = s,6,Playback(voice-mail-system)
exten = s,7,Goto(default|6010|1)
exten = 0,1,Goto(default|o|1)
exten = *,1,Goto(directory|*|1)
exten = #,1,Goto(directory|*|1)

[DLPN_DialPlan1]
include = CallingRule_Longdistance
include = CallingRule_Local_AreaCode
include = CallingRule_International
include = CallingRule_Local_7_digits
include = CallingRule_Emergency
include = CallingRule_TollFree
include = CallingRule_Local
include = CallingRule_911
include = CallingRule_ATT FWD
include = default
include = parkedcalls
include = conferences
include = ringgroups
include = voicemenus
include = queues
include = voicemailgroups
include = directory

[voicemenu-custom-1]
include = default
exten = s,1,NoOp(voicemenu-custom-1)
exten = s,2,Answer
exten = s,3,Wait(1)
exten = s,4,Background(thank-you-for-calling)
exten = s,5,Background(if-u-know-ext-dial)
exten = s,6,Background(otherwise)
exten = s,7,Background(to-reach-operator)
exten = s,8,Background(pls-hold-while-try)
exten = s,9,Goto(default|6012|1)
exten = s,10,WaitExten(6)
exten = 0,1,Goto(default|6012|1)
Deek
Oldsterisk
 
Posts: 85
Joined: Thu Mar 20, 2008 4:49 pm

Postby bkruse » Fri Oct 24, 2008 3:56 pm

Hmm, not exaxctly sure.

What I am saying though, is, when/if a phone call runs into one of those lines Asterisk is complaining about, it will tell you.

-bk
bkruse
Site Admin
 
Posts: 881
Joined: Mon Dec 04, 2006 3:20 pm
Location: Huntsville, Alabama

Dang smilies!

Postby Deek » Fri Oct 24, 2008 3:57 pm

replace the smilies with

8)
Deek
Oldsterisk
 
Posts: 85
Joined: Thu Mar 20, 2008 4:49 pm

time intervals

Postby Deek » Fri Oct 24, 2008 4:02 pm

bk, I did clean up a bunch of entries from the other day...some entries got duplicated somehow and we causing errors to the effect of "extensions already in use"

Might this error be related to the time intervals not working for incoming voice menus? I could live with the error if the VM worked...

Right now, no matter what time it is, it will only execute:

[ringroups-custom-1]

??

Thnaks
Deek
Oldsterisk
 
Posts: 85
Joined: Thu Mar 20, 2008 4:49 pm

hmmm....

Postby Deek » Fri Oct 24, 2008 4:05 pm

I just noticed there are a bunch of empty [] headerd?? Odd...removing them now.
Deek
Oldsterisk
 
Posts: 85
Joined: Thu Mar 20, 2008 4:49 pm

Postby bkruse » Fri Oct 24, 2008 4:07 pm

Are you using 1.4 or 1.6.x or trunk (Asterisk)
bkruse
Site Admin
 
Posts: 881
Joined: Mon Dec 04, 2006 3:20 pm
Location: Huntsville, Alabama

headers that is....

Postby Deek » Fri Oct 24, 2008 4:08 pm

they don't show up in the gui....someone enjoys making my life difficult...
Deek
Oldsterisk
 
Posts: 85
Joined: Thu Mar 20, 2008 4:49 pm

HA!

Postby Deek » Fri Oct 24, 2008 4:22 pm

bk, this is Derek! 1.4.21.....remember?
Deek
Oldsterisk
 
Posts: 85
Joined: Thu Mar 20, 2008 4:49 pm

also

Postby Deek » Fri Oct 24, 2008 4:26 pm

This is new, seems every time I use the "apply changes" button, asterisk dies completely!
Deek
Oldsterisk
 
Posts: 85
Joined: Thu Mar 20, 2008 4:49 pm

more errors

Postby Deek » Fri Oct 24, 2008 4:54 pm

* 1.4.21/gui 2.0/sip.conf

It keeps rewriting my localnet values...
I put:

localnet = 192.168.1.0/255.255.255.0
localnet = 10.10.40.0/255.255.255.0
localnet = 10.10.50.0/255.255.255.0

something rewrites it as:

localnet = 192.168.1.0/255.255.255.0,10.10.40.0/255.255.255.0,10.10.50.0/255.255.255.0
localnet = 10.10.40.0/255.255.255.0
localnet = 10.10.50.0/255.255.255.0

then I get this error:

[Oct 24 15:29:24] WARNING[3648] acl.c: 255.255.255.0,10.10.40.0/255.255.255.0,10.10.50.0/255.255.255.0 is not a valid netmask
[Oct 24 15:29:24] WARNING[3648] chan_sip.c: Invalid localnet value: 192.168.1.0/255.255.255.0,10.10.40.0/255.255.255.0,10.10.50.0/255.255.255.0

Also in sip.conf:

I put:

allow = ulaw,alaw,gsm

it gets rewritten to:

allow = undefined,ulaw,alaw,gsm

then I get this error:
[Oct 24 15:29:24] WARNING[3648] frame.c: Cannot allow unknown format 'undefined'


Any ideas?
Deek
Oldsterisk
 
Posts: 85
Joined: Thu Mar 20, 2008 4:49 pm

Bugs?

Postby Deek » Sun Oct 26, 2008 2:25 pm

So are these bugs or am I doing something wrong?
Deek
Oldsterisk
 
Posts: 85
Joined: Thu Mar 20, 2008 4:49 pm

Postby bkruse » Mon Oct 27, 2008 2:18 pm

Oh right!

Sorry Der, um, this sounds like a bug.

I am not sure exactly what to do here, because on the bug tracker you will be asked to update to the latest version.

Suggestions?

-bk
bkruse
Site Admin
 
Posts: 881
Joined: Mon Dec 04, 2006 3:20 pm
Location: Huntsville, Alabama

hmmmm

Postby Deek » Mon Oct 27, 2008 2:51 pm

Are there know issues with the time intervals in 4.2.21? That is all that isn't working...if I can get that working, I won't have to touch the thing for a while...I got kinda off topic in this one, that should have been my main focus.

So, any ideas about how to troublshoot the time interval thing?
Deek
Oldsterisk
 
Posts: 85
Joined: Thu Mar 20, 2008 4:49 pm

Postby bkruse » Mon Oct 27, 2008 2:54 pm

No idea, paste me the debug of one call

-bk
bkruse
Site Admin
 
Posts: 881
Joined: Mon Dec 04, 2006 3:20 pm
Location: Huntsville, Alabama

Here you go.

Postby Deek » Mon Oct 27, 2008 3:35 pm

First I dialed 0 to let them know not to answer, then I dialed in from an outside line.




== Parsing '/etc/asterisk/asterisk.conf': Found
== Parsing '/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.21 currently running on PBX (pid = 3648)
Verbosity was 3 and is now 13
-- Executing [0@DLPN_DialPlan1:1] Goto("SIP/6028-b6802888", "ringroups-custom-1|s|1") in new stack
-- Goto (ringroups-custom-1,s,1)
-- Executing [s@ringroups-custom-1:1] NoOp("SIP/6028-b6802888", "BizHours") in new stack
-- Executing [s@ringroups-custom-1:2] Dial("SIP/6028-b6802888", "SIP/6012&SIP/6016&SIP/6010|10|i") in new stack
-- Called 6012
-- Called 6016
-- Called 6010
-- SIP/6012-082346a8 is ringing
-- SIP/6016-0822e2e8 is ringing
-- SIP/6010-0822f878 is ringing
-- SIP/6016-0822e2e8 answered SIP/6028-b6802888
-- Native bridging SIP/6028-b6802888 and SIP/6016-0822e2e8
== Spawn extension (ringroups-custom-1, s, 2) exited non-zero on 'SIP/6028-b6802888'
[Oct 27 14:32:19] DEBUG[4002]: dsp.c:1699 ast_dsp_set_busy_pattern: dsp busy pattern set to 500,500
-- Starting simple switch on 'Zap/3-1'
-- Executing [s@DID_trunk_1:1] ExecIf("Zap/3-1", "0|SetCallerPres|unavailable") in new stack
-- Executing [s@DID_trunk_1:2] ExecIf("Zap/3-1", "0|Set|CALLERID(all)=unknown <0000000>") in new stack
-- Executing [s@DID_trunk_1:3] Goto("Zap/3-1", "ringroups-custom-1|s|1") in new stack
-- Goto (ringroups-custom-1,s,1)
-- Executing [s@ringroups-custom-1:1] NoOp("Zap/3-1", "BizHours") in new stack
-- Executing [s@ringroups-custom-1:2] Dial("Zap/3-1", "SIP/6012&SIP/6016&SIP/6010|10|i") in new stack
-- Called 6012
-- Called 6016
-- Called 6010
-- SIP/6012-082346a8 is ringing
-- SIP/6010-0822f878 is ringing
-- SIP/6016-0822e2e8 is ringing
[Oct 27 14:32:21] DEBUG[10430]: chan_zap.c:4477 zt_handle_event: Ignore switch to REVERSED Polarity on channel 3, state 4
[Oct 27 14:32:21] DEBUG[10430]: chan_zap.c:4497 zt_handle_event: Ignoring Polarity switch to IDLE on channel 3, state 4
[Oct 27 14:32:21] DEBUG[10430]: chan_zap.c:4500 zt_handle_event: Polarity Reversal event occured - DEBUG 2: channel 3, state 4, pol= 0, aonp= 0, honp= 0, pdelay= 600, tv= 1077461763
-- Nobody picked up in 10000 ms
-- Executing [s@ringroups-custom-1:3] Goto("Zap/3-1", "voicemenu-custom-1|s|1") in new stack
-- Goto (voicemenu-custom-1,s,1)
-- Executing [s@voicemenu-custom-1:1] NoOp("Zap/3-1", "voicemenu-custom-1") in new stack
-- Executing [s@voicemenu-custom-1:2] Answer("Zap/3-1", "") in new stack
[Oct 27 14:32:31] DEBUG[10430]: chan_zap.c:2778 zt_answer: Took Zap/3-1 off hook
[Oct 27 14:32:31] DEBUG[10430]: chan_zap.c:1454 zt_train_ec: No echo training requested
-- Executing [s@voicemenu-custom-1:3] Wait("Zap/3-1", "1") in new stack
-- Executing [s@voicemenu-custom-1:4] BackGround("Zap/3-1", "thank-you-for-calling") in new stack
-- <Zap/3-1> Playing 'thank-you-for-calling' (language 'en')
-- Executing [s@voicemenu-custom-1:5] BackGround("Zap/3-1", "if-u-know-ext-dial") in new stack
-- <Zap/3-1> Playing 'if-u-know-ext-dial' (language 'en')
-- Executing [s@voicemenu-custom-1:6] BackGround("Zap/3-1", "otherwise") in new stack
-- <Zap/3-1> Playing 'otherwise' (language 'en')
-- Executing [s@voicemenu-custom-1:7] BackGround("Zap/3-1", "to-reach-operator") in new stack
-- <Zap/3-1> Playing 'to-reach-operator' (language 'en')
-- Executing [s@voicemenu-custom-1:8] BackGround("Zap/3-1", "pls-hold-while-try") in new stack
-- <Zap/3-1> Playing 'pls-hold-while-try' (language 'en')
-- Executing [s@voicemenu-custom-1:9] Goto("Zap/3-1", "default|6012|1") in new stack
-- Goto (default,6012,1)
-- Executing [6012@default:1] Macro("Zap/3-1", "stdexten|6012|SIP/6012") in new stack
-- Executing [s@macro-stdexten:1] Set("Zap/3-1", "__DYNAMIC_FEATURES=") in new stack
[Oct 27 14:32:41] DEBUG[10430]: app_macro.c:337 _macro_exec: Executed application: Set
[Oct 27 14:32:41] WARNING[10430]: ast_expr2.fl:407 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:
= 1
^
[Oct 27 14:32:41] WARNING[10430]: ast_expr2.fl:407 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:
= 1
^
[Oct 27 14:32:41] WARNING[10430]: ast_expr2.fl:411 ast_yyerror: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
[Oct 27 14:32:41] WARNING[10430]: ast_expr2.fl:411 ast_yyerror: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
-- Executing [s@macro-stdexten:2] GotoIf("Zap/3-1", "?5:3") in new stack
-- Goto (macro-stdexten,s,3)
[Oct 27 14:32:41] DEBUG[10430]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-stdexten:3] Dial("Zap/3-1", "SIP/6012|20|") in new stack
-- Called 6012
-- SIP/6012-082346a8 is ringing
[Oct 27 14:32:47] DEBUG[10430]: chan_zap.c:4477 zt_handle_event: Ignore switch to REVERSED Polarity on channel 3, state 6
[Oct 27 14:32:47] DEBUG[10430]: chan_zap.c:4497 zt_handle_event: Ignoring Polarity switch to IDLE on channel 3, state 6
[Oct 27 14:32:47] DEBUG[10430]: chan_zap.c:4500 zt_handle_event: Polarity Reversal event occured - DEBUG 2: channel 3, state 6, pol= 0, aonp= 0, honp= 0, pdelay= 600, tv= 1077488147
== Spawn extension (macro-stdexten, s, 3) exited non-zero on 'Zap/3-1' in macro 'stdexten'
== Spawn extension (macro-stdexten, s, 3) exited non-zero on 'Zap/3-1'
-- Hungup 'Zap/3-1'
-- Executing [6025@DLPN_DialPlan1:1] Macro("SIP/6016-b6802888", "stdexten|6025|SIP/6025") in new stack
-- Executing [s@macro-stdexten:1] Set("SIP/6016-b6802888", "__DYNAMIC_FEATURES=") in new stack
[Oct 27 14:33:50] DEBUG[10449]: app_macro.c:337 _macro_exec: Executed application: Set
[Oct 27 14:33:50] WARNING[10449]: ast_expr2.fl:407 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:
= 1
^
[Oct 27 14:33:50] WARNING[10449]: ast_expr2.fl:407 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:
= 1
^
[Oct 27 14:33:50] WARNING[10449]: ast_expr2.fl:411 ast_yyerror: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
[Oct 27 14:33:50] WARNING[10449]: ast_expr2.fl:411 ast_yyerror: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
-- Executing [s@macro-stdexten:2] GotoIf("SIP/6016-b6802888", "?5:3") in new stack
-- Goto (macro-stdexten,s,3)7
[Oct 27 14:33:50] DEBUG[10449]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-stdexten:3] Dial("SIP/6016-b6802888", "SIP/6025|20|") in new stack
-- Called 6025117173.8.69.117
-- SIP/6025-082346a8 is ringing
-- SIP/6025-082346a8 answered SIP/6016-b6802888
-- Native bridging SIP/6016-b6802888 and SIP/6025-082346a8
PBX*CLI>
Deek
Oldsterisk
 
Posts: 85
Joined: Thu Mar 20, 2008 4:49 pm

hmmm

Postby Deek » Wed Oct 29, 2008 10:26 am

BK,

[Oct 27 14:33:50] WARNING[10449]: ast_expr2.fl:407 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:
= 1

Is this indicating line 407??

I am wondering if this line is the offender:

exten = s,2,GotoIf($[${FOLLOWME_${ARG1}} = 1]?5:3)

in [macro-stdexten]
Deek
Oldsterisk
 
Posts: 85
Joined: Thu Mar 20, 2008 4:49 pm

Postby bkruse » Wed Oct 29, 2008 12:13 pm

Hmmm.

Let me see here.

I have that in my config and it did not seem to complain about it.

Can you move the whole context down a couple lines?

I have a feeling 407 is the line in the parser code where it is throwing the warning.

-bk
bkruse
Site Admin
 
Posts: 881
Joined: Mon Dec 04, 2006 3:20 pm
Location: Huntsville, Alabama

Postby rpurcell » Sun Nov 02, 2008 10:04 am

Did you fint what the problem was ???

I'm getting this error, and I'm not sure if this is a problem with the gui or with my asterisk config..
rpurcell
Newsterisk
 
Posts: 11
Joined: Thu May 08, 2008 1:38 pm

I havent found the problem yet?

Postby Deek » Sun Nov 02, 2008 7:50 pm

Do you use time intervals? are they working? Do you get a 407 or some other number?
Deek
Oldsterisk
 
Posts: 85
Joined: Thu Mar 20, 2008 4:49 pm

Postby rpurcell » Sun Nov 02, 2008 7:52 pm

yup everything was working... since this I've updated asterisk and the config.. this error disapear... it sounds like a interpretation problem between asterisk and the macro in the extension.conf..
rpurcell
Newsterisk
 
Posts: 11
Joined: Thu May 08, 2008 1:38 pm

cool

Postby Deek » Mon Nov 03, 2008 12:05 am

wht is your current * version? Can you paste your extension.conf?
Deek
Oldsterisk
 
Posts: 85
Joined: Thu Mar 20, 2008 4:49 pm

Postby Deek » Mon Nov 03, 2008 12:31 am

I am running 4.2.21....seems any newer version changes to dahdi instead of Zap...I am not sure what is wrong but I can't get time intervals to work.
Deek
Oldsterisk
 
Posts: 85
Joined: Thu Mar 20, 2008 4:49 pm

Postby rpurcell » Mon Nov 03, 2008 7:06 am

I'm now using 1.4.21.1 1.4.22 doesn't work with the current version of asterisk-gui,... so I can't send you my config file it's a new one ;)

here's my time rule:


extension.conf:
timeinterval_ig-fermer = 17:00-07:00|mon-fri|*|*


[DID_trunk_1]
include = DID_trunk_1_timeinterval_ig-fermer|${timeinterval_ig-fermer}
include = DID_trunk_1_default

[DID_trunk_1_timeinterval_ig-fermer]
exten = s,1,ExecIf($[ "${CALLERID(num)}"="" ],SetCallerPres,unavailable)
exten = s,2,ExecIf($[ "${CALLERID(num)}"="" ],Set,CALLERID(all)=unknown <0000000>)
exten = s,3,Goto(voicemenu-custom-3|s|1)



Generated by asterisk gui... I hope this can help.. @+
rpurcell
Newsterisk
 
Posts: 11
Joined: Thu May 08, 2008 1:38 pm

opps

Postby Deek » Mon Nov 03, 2008 10:27 am

yes, 1.4.21 here as well...it was late
Deek
Oldsterisk
 
Posts: 85
Joined: Thu Mar 20, 2008 4:49 pm

Postby rpurcell » Mon Nov 03, 2008 10:41 am

my setup is working fine bu I still get the error:


[Nov 3 11:35:46] WARNING[4729] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:
= 1
^
[Nov 3 11:35:46] WARNING[4729] ast_expr2.fl: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.


it's just a warning.. but I don't know if it break something..
rpurcell
Newsterisk
 
Posts: 11
Joined: Thu May 08, 2008 1:38 pm

Postby bkruse » Mon Nov 03, 2008 5:17 pm

If you can narrow down what part of the dailplan that is in, I can help.

Otherwise, I am not sure :/

-bk
bkruse
Site Admin
 
Posts: 881
Joined: Mon Dec 04, 2006 3:20 pm
Location: Huntsville, Alabama

Postby assimilate » Thu Nov 13, 2008 5:04 pm

rpurcell wrote:my setup is working fine bu I still get the error:


[Nov 3 11:35:46] WARNING[4729] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input:
= 1
^
[Nov 3 11:35:46] WARNING[4729] ast_expr2.fl: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.


it's just a warning.. but I don't know if it break something..



Works for me as well on 1.4.22 with the 2.0 branch of GUI, the error is still there.

This is a new install as of the 12th
assimilate
Newsterisk
 
Posts: 1
Joined: Thu Nov 13, 2008 4:59 pm


Return to AsteriskNOW Support

Who is online

Users browsing this forum: No registered users and 4 guests