Ast_expr2.fl ERROR

Hello, Need some help with an outbound trunk. Currently have ATT PRI with 15 channels. Trunk configured from what I can see correctly and OutBound route is set as a allow everything for testing but unable to make a call out. “all circuits are busy”

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [[email protected]:1] Macro(“SIP/106-00000003”, “user-callerid,LIMIT”) in new stack
– Executing [[email protected]:1] Set(“SIP/106-00000003”, “TOUCH_MONITOR=1548704927.19”) in new stack
– Executing [[email protected]:2] Set(“SIP/106-00000003”, “AMPUSER=106”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/106-00000003”, “0?report”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/106-00000003”, “1?Set(REALCALLERIDNUM=106)”) in new stack
– Executing [[email protected]r-callerid:5] Set(“SIP/106-00000003”, “AMPUSER=106”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/106-00000003”, “0?limit”) in new stack
– Executing [[email protected]:7] Set(“SIP/106-00000003”, "AMPUSERCIDNAME=Jeremy Barrow ") in new stack
– Executing [[email protected]:8] ExecIf(“SIP/106-00000003”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/106-00000003”, “0?report”) in new stack
– Executing [[email protected]:10] Set(“SIP/106-00000003”, “AMPUSERCID=106”) in new stack
– Executing [[email protected]:11] Set(“SIP/106-00000003”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:12] Set(“SIP/106-00000003”, "CALLERID(all)=“Jeremy Barrow " <106>”) in new stack
[2019-01-28 19:48:47] WARNING[27847][C-00000003]: ast_expr2.fl:470 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected ‘>’, expecting ‘-’ or ‘!’ or ‘(’ or ‘’; Input:
"LIMIT"=“LIMIT” & 3 & 1 & >0 & 0>=
** ^**
[2019-01-28 19:48:47] WARNING[27847][C-00000003]: ast_expr2.fl:474 ast_yyerror: If you have questions, please refer to https://wiki.asterisk.org/wiki/display/AST/Channel+Variables
– Executing [[email protected]:13] GotoIf(“SIP/106-00000003”, “0?limit”) in new stack
– Executing [[email protected]:14] ExecIf(“SIP/106-00000003”, “1?Set(GROUP(concurrency_limit)=106)”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/106-00000003”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [[email protected]:16] NoOp(“SIP/106-00000003”, “Macro Depth is 1”) in new stack
– Executing [[email protected]:17] GotoIf(“SIP/106-00000003”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [[email protected]:18] GotoIf(“SIP/106-00000003”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,37)
– Executing [[email protected]:37] Set(“SIP/106-00000003”, “CALLERID(number)=106”) in new stack
– Executing [[email protected]:38] Set(“SIP/106-00000003”, "CALLERID(name)=Jeremy Barrow ") in new stack
– Executing [[email protected]:39] GotoIf(“SIP/106-00000003”, “0?cnum”) in new stack
– Executing [[email protected]:40] Set(“SIP/106-00000003”, “CDR(cnam)=Jeremy Barrow”) in new stack
– Executing [[email protected]:41] Set(“SIP/106-00000003”, “CDR(cnum)=106”) in new stack
– Executing [[email protected]:42] Set(“SIP/106-00000003”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Set(“SIP/106-00000003”, “ROUTEUSER=106”) in new stack
– Executing [[email protected]:3] Set(“SIP/106-00000003”, “ROUTEUSER=106”) in new stack
– Executing [[email protected]:4] GotoIf(“SIP/106-00000003”, “1?notblind”) in new stack
– Goto (from-internal,6523126,7)
– Executing [[email protected]:7] GotoIf(“SIP/106-00000003”, “1?restrictedroute-5aee0cc44da9dd93c7b7f7493389cea8,6523126,2:outbound-allroutes,6523126,2”) in new stack
– Goto (restrictedroute-5aee0cc44da9dd93c7b7f7493389cea8,6523126,2)
– Executing [[email protected]:2] Gosub(“SIP/106-00000003”, “sub-record-check,s,1(out,6523126,dontcare)”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/106-00000003”, “0?initialized”) in new stack
– Executing [[email protected]:2] Set(“SIP/106-00000003”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:3] Set(“SIP/106-00000003”, “NOW=1548704927”) in new stack
– Executing [[email protected]:4] Set(“SIP/106-00000003”, “__DAY=28”) in new stack
– Executing [[email protected]:5] Set(“SIP/106-00000003”, “__MONTH=01”) in new stack
– Executing [[email protected]:6] Set(“SIP/106-00000003”, “__YEAR=2019”) in new stack
– Executing [[email protected]:7] Set(“SIP/106-00000003”, “__TIMESTR=20190128-194847”) in new stack
== Extension Changed 106[ext-local] new state InUse for Notify User 101
– Executing [[email protected]:8] Set(“SIP/106-00000003”, “__FROMEXTEN=106”) in new stack
– Executing [[email protected]:9] Set(“SIP/106-00000003”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:10] NoOp(“SIP/106-00000003”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“SIP/106-00000003”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“SIP/106-00000003”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/106-00000003”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“SIP/106-00000003”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“SIP/106-00000003”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [[email protected]:1] NoOp(“SIP/106-00000003”, “Outbound Recording Check from 106 to 6523126”) in new stack
– Executing [[email protected]:2] Set(“SIP/106-00000003”, “RECMODE=dontcare”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/106-00000003”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [[email protected]:7] Gosub(“SIP/106-00000003”, “recordcheck,1(dontcare,out,6523126)”) in new stack
– Executing [[email protected]:1] NoOp(“SIP/106-00000003”, “Starting recording check against dontcare”) in new stack
– Executing [[email protected]:2] Goto(“SIP/106-00000003”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [[email protected]:3] Return(“SIP/106-00000003”, “”) in new stack
– Executing [[email protected]:8] Return(“SIP/106-00000003”, “”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/106-00000003”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [[email protected]:4] Set(“SIP/106-00000003”, “MOHCLASS=default”) in new stack
– Executing [[email protected]:5] ExecIf(“SIP/106-00000003”, “1?Set(TRUNKCIDOVERRIDE=“Medics First”<2175350100>)”) in new stack
– Executing [[email protected]:6] Set(“SIP/106-00000003”, “_NODEST=”) in new stack
– Executing [[email protected]:7] Macro(“SIP/106-00000003”, “dialout-trunk,1,6523126,off”) in new stack
– Executing [[email protected]:1] Set(“SIP/106-00000003”, “DIAL_TRUNK=1”) in new stack
– Executing [[email protected]:2] UserEvent(“SIP/106-00000003”, “zulu-outbound-call,from:106,to:6523126”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/106-00000003”, “0?Set(DIAL_OPTIONS=Hhtr)”) in new stack
– Executing [[email protected]:4] GosubIf(“SIP/106-00000003”, “0?sub-pincheck,s,1()”) in new stack
– Executing [[email protected]:5] ExecIf(“SIP/106-00000003”, “0?Set(CALLERID(num)=106)”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/106-00000003”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:7] Set(“SIP/106-00000003”, “DIAL_NUMBER=6523126”) in new stack
– Executing [[email protected]runk:8] Set(“SIP/106-00000003”, “DIAL_TRUNK_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:9] Set(“SIP/106-00000003”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [[email protected]:10] Set(“SIP/106-00000003”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [[email protected]:11] GotoIf(“SIP/106-00000003”, “0?nomax”) in new stack
– Executing [[email protected]:12] GotoIf(“SIP/106-00000003”, “0?chanfull”) in new stack
– Executing [[email protected]:13] GotoIf(“SIP/106-00000003”, “0?skipoutcid”) in new stack
– Executing [[email protected]:14] Macro(“SIP/106-00000003”, “outbound-callerid,1”) in new stack
– Executing [[email protected]:1] NoOp(“SIP/106-00000003”, “106”) in new stack
– Executing [[email protected]:2] NoOp(“SIP/106-00000003”, “”) in new stack
– Executing [[email protected]:3] NoOp(“SIP/106-00000003”, “off”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/106-00000003”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [[email protected]:5] ExecIf(“SIP/106-00000003”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [[email protected]:6] ExecIf(“SIP/106-00000003”, “0?Set(REALCALLERIDNUM=106)”) in new stack
– Executing [[email protected]:7] ExecIf(“SIP/106-00000003”, “0?Set(AMPUSER=106)”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/106-00000003”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [[email protected]:12] Set(“SIP/106-00000003”, “USEROUTCID=”) in new stack
– Executing [[email protected]:13] Set(“SIP/106-00000003”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:14] Set(“SIP/106-00000003”, “TRUNKOUTCID=“Medics First”<2175350100>”) in new stack
– Executing [[email protected]:15] GotoIf(“SIP/106-00000003”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,20)
– Executing [[email protected]:20] ExecIf(“SIP/106-00000003”, “1?Set(CALLERID(all)=“Medics First”<2175350100>)”) in new stack
– Executing [[email protected]:21] ExecIf(“SIP/106-00000003”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:22] ExecIf(“SIP/106-00000003”, “1?Set(CALLERID(all)=Medics First<2175350100>)”) in new stack
– Executing [[email protected]:23] ExecIf(“SIP/106-00000003”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:24] ExecIf(“SIP/106-00000003”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:25] Set(“SIP/106-00000003”, “CDR(outbound_cnum)=2175350100”) in new stack
– Executing [[email protected]:26] Set(“SIP/106-00000003”, “CDR(outbound_cnam)=Medics First”) in new stack
– Executing [[email protected]:15] GosubIf(“SIP/106-00000003”, “1?sub-flp-1,s,1()”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/106-00000003”, “1?Return()”) in new stack
– Executing [[email protected]:16] Set(“SIP/106-00000003”, “OUTNUM=6523126”) in new stack
– Executing [[email protected]:17] Set(“SIP/106-00000003”, “custom=DAHDI/g0”) in new stack
– Executing [[email protected]:18] ExecIf(“SIP/106-00000003”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [[email protected]:19] ExecIf(“SIP/106-00000003”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [[email protected]:20] Macro(“SIP/106-00000003”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/106-00000003”, “”) in new stack
– Executing [[email protected]:21] GotoIf(“SIP/106-00000003”, “0?skipcrm”) in new stack
– Executing [[email protected]:22] Set(“SIP/106-00000003”, “__CRM_DIRECTION=OUTBOUND”) in new stack
– Executing [[email protected]:23] Set(“SIP/106-00000003”, “__CRM_DESTINATION=6523126”) in new stack
– Executing [[email protected]:24] Set(“SIP/106-00000003”, “__CRM_SOURCE=106”) in new stack
– Executing [[email protected]:25] AGI(“SIP/106-00000003”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– <SIP/106-00000003>AGI Script sangomacrm.agi completed, returning 0
– Executing [[email protected]:26] Set(“SIP/106-00000003”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
– Executing [[email protected]:27] NoOp(“SIP/106-00000003”, “CRM Finished”) in new stack
– Executing [[email protected]:28] GotoIf(“SIP/106-00000003”, “0?bypass,1”) in new stack
– Executing [[email protected]:29] ExecIf(“SIP/106-00000003”, “1?Set(CONNECTEDLINE(num,i)=6523126)”) in new stack
– Executing [[email protected]:30] ExecIf(“SIP/106-00000003”, “1?Set(CONNECTEDLINE(name,i)=CID:2175350100)”) in new stack
– Executing [[email protected]:31] ExecIf(“SIP/106-00000003”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)2175350100)”) in new stack
– Executing [[email protected]:32] GotoIf(“SIP/106-00000003”, “0?customtrunk”) in new stack
– Executing [[email protected]:33] Dial(“SIP/106-00000003”, “DAHDI/g0/6523126,300,Tb(func-apply-sipheaders^s^1,(1))”) in new stack
– DAHDI/i1/6523126-4 Internal Gosub(func-apply-sipheaders,s,1(1)) start
– Executing [[email protected]:1] ExecIf(“DAHDI/i1/6523126-4”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [[email protected]:2] UserEvent(“DAHDI/i1/6523126-4”, “zulu-call-b,type:func-apply-sipheaders,to:,from:106”) in new stack
– Executing [[email protected]:3] NoOp(“DAHDI/i1/6523126-4”, “Applying SIP Headers to channel 1”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/i1/6523126-4”, “SIPHEADERKEYS=”) in new stack
– Executing [[email protected]:5] ExecIf(“DAHDI/i1/6523126-4”, “0?Set(Rheader=1)”) in new stack
– Executing [[email protected]:6] While(“DAHDI/i1/6523126-4”, “0”) in new stack
– Jumping to priority 10
– Executing [[email protected]:11] ExecIf(“DAHDI/i1/6523126-4”, “0?SIPRemoveHeader(Alert-Info:)”) in new stack
– Executing [[email protected]:12] ExecIf(“DAHDI/i1/6523126-4”, “0?Set(PJSIP_HEADER(remove,Alert-Info)=)”) in new stack
– Executing [[email protected]:13] Return(“DAHDI/i1/6523126-4”, “”) in new stack
== Spawn extension (from-digital, 6523126, 1) exited non-zero on ‘DAHDI/i1/6523126-4’
– DAHDI/i1/6523126-4 Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL=
– Requested transfer capability: 0x00 - SPEECH
– Called DAHDI/g0/6523126
– Span 1: Channel 0/1 got hangup, cause 34
– DAHDI/i1/6523126-4 is circuit-busy
– Hungup ‘DAHDI/i1/6523126-4’
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [[email protected]:34] NoOp(“SIP/106-00000003”, “Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 34”) in new stack
– Executing [[email protected]:35] GotoIf(“SIP/106-00000003”, “0?continue,1:s-CONGESTION,1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [[email protected]:1] Set(“SIP/106-00000003”, “RC=34”) in new stack
– Executing [[email protected]:2] Goto(“SIP/106-00000003”, “34,1”) in new stack
– Goto (macro-dialout-trunk,34,1)
– Executing [[email protected]:1] Goto(“SIP/106-00000003”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [[email protected]:1] NoOp(“SIP/106-00000003”, “TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 34 - failing through to other trunks”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/106-00000003”, “1?Set(CALLERID(number)=106)”) in new stack
– Executing [[email protected]:8] Macro(“SIP/106-00000003”, “outisbusy,”) in new stack
– Executing [[email protected]:1] Progress(“SIP/106-00000003”, “”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/106-00000003”, “0?emergency,1”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/106-00000003”, “0?intracompany,1”) in new stack
– Executing [[email protected]:4] Playback(“SIP/106-00000003”, “all-circuits-busy-now&please-try-call-later, noanswer”) in new stack
– <SIP/106-00000003> Playing ‘all-circuits-busy-now.ulaw’ (language ‘en’)
== Extension Changed 106[ext-local] new state Idle for Notify User 101
– <SIP/106-00000003> Playing ‘please-try-call-later.ulaw’ (language ‘en’)
– Executing [[email protected]:1] Hangup(“SIP/106-00000003”, “”) in new stack
== Spawn extension (restrictedroute-5aee0cc44da9dd93c7b7f7493389cea8, h, 1) exited non-zero on ‘SIP/106-00000003’
– SIP/106-00000003 Internal Gosub(crm-hangup,s,1) start
– Executing [[email protected]:1] NoOp(“SIP/106-00000003”, “Sending Hangup to CRM”) in new stack
– Executing [[email protected]:2] NoOp(“SIP/106-00000003”, “HANGUP CAUSE: 34”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/106-00000003”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [[email protected]:4] NoOp(“SIP/106-00000003”, “MASTER CHANNEL: 1548704927.19 = 1548704927.19”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/106-00000003”, “0?return”) in new stack
– Executing [[email protected]:6] Set(“SIP/106-00000003”, “__CRM_HANGUP=1”) in new stack
– Executing [[email protected]:7] AGI(“SIP/106-00000003”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– <SIP/106-00000003>AGI Script sangomacrm.agi completed, returning 0
– Executing [[email protected]:8] Return(“SIP/106-00000003”, “”) in new stack
== Spawn extension (restrictedroute-5aee0cc44da9dd93c7b7f7493389cea8, h, 1) exited non-zero on ‘SIP/106-00000003’
– SIP/106-00000003 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
freepbx*CLI>

Count the quotes.

I count 4…

This is happening on all extensions

@tonyclewis

Please do not ping people to get them to help you on free support. If someone can assist and wants to they will. If you need fast assistance and help please use the paid support system.

My apologies…

Can you post screenshots of your outbound route config?

I did a bunch of updates today and I am not sure what update broke it… Neither inbound or outbound are working. DAHDI shows up.

You are dialing 6523126 but you did not prepend 1AREA_CODE in your outbound route

Same error even with 1 Area_code… No inbound either… Checking with ATT to make sure T1 is not jacked up.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.