Difficulties with external calls

I’m having trouble making external calls
on the first attempt what appears in the
CLI: Setting global variable ‘SIPDOMAIN’ to ‘10.0.60.175’
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio TOS bits 184 in TCLASS field.
== Using SIP RTP Audio CoS mark 5
– Executing [[email protected]:1] Macro(“PJSIP/8003-00000e4e”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/8003-00000e4e”, “TOUCH_MONITOR=1559573187.3960”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/8003-00000e4e”, “AMPUSER=8003”) in new stack
– Executing [[email protected]:3] GotoIf(“PJSIP/8003-00000e4e”, “0?report”) in new stack
– Executing [[email protected]:4] ExecIf(“PJSIP/8003-00000e4e”, “1?Set(REALCALLERIDNUM=8003)”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/8003-00000e4e”, “AMPUSER=8003”) in new stack
– Executing [[email protected]:6] GotoIf(“PJSIP/8003-00000e4e”, “0?limit”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/8003-00000e4e”, “AMPUSERCIDNAME=8003”) in new stack
– Executing [[email protected]:8] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [[email protected]:9] GotoIf(“PJSIP/8003-00000e4e”, “0?report”) in new stack
– Executing [[email protected]:10] Set(“PJSIP/8003-00000e4e”, “AMPUSERCID=8003”) in new stack
– Executing [[email protected]:11] Set(“PJSIP/8003-00000e4e”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/8003-00000e4e”, “CALLERID(all)=“8003” <8003>”) in new stack
– Executing [[email protected]:13] GotoIf(“PJSIP/8003-00000e4e”, “0?limit”) in new stack
– Executing [[email protected]:14] ExecIf(“PJSIP/8003-00000e4e”, “1?Set(GROUP(concurrency_limit)=8003)”) in new stack
– Executing [[email protected]:15] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [[email protected]:16] NoOp(“PJSIP/8003-00000e4e”, “Macro Depth is 1”) in new stack
– Executing [[email protected]:17] GotoIf(“PJSIP/8003-00000e4e”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [[email protected]:18] GotoIf(“PJSIP/8003-00000e4e”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,37)
– Executing [[email protected]:37] Set(“PJSIP/8003-00000e4e”, “CALLERID(number)=8003”) in new stack
– Executing [[email protected]:38] Set(“PJSIP/8003-00000e4e”, “CALLERID(name)=8003”) in new stack
– Executing [[email protected]:39] GotoIf(“PJSIP/8003-00000e4e”, “0?cnum”) in new stack
– Executing [[email protected]:40] Set(“PJSIP/8003-00000e4e”, “CDR(cnam)=8003”) in new stack
– Executing [[email protected]:41] Set(“PJSIP/8003-00000e4e”, “CDR(cnum)=8003”) in new stack
– Executing [[email protected]:42] Set(“PJSIP/8003-00000e4e”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Gosub(“PJSIP/8003-00000e4e”, “sub-record-check,s,1(out,0999103460,dontcare)”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/8003-00000e4e”, “0?initialized”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/8003-00000e4e”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/8003-00000e4e”, “NOW=1559573187”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/8003-00000e4e”, “__DAY=03”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/8003-00000e4e”, “__MONTH=06”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/8003-00000e4e”, “__YEAR=2019”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/8003-00000e4e”, “__TIMESTR=20190603-144627”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/8003-00000e4e”, “__FROMEXTEN=8003”) in new stack
– Executing [[email protected]:9] Set(“PJSIP/8003-00000e4e”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:10] NoOp(“PJSIP/8003-00000e4e”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/8003-00000e4e”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“PJSIP/8003-00000e4e”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“PJSIP/8003-00000e4e”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [[email protected]:1] NoOp(“PJSIP/8003-00000e4e”, “Outbound Recording Check from 8003 to 0999103460”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/8003-00000e4e”, “RECMODE=dontcare”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/8003-00000e4e”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [[email protected]:7] Gosub(“PJSIP/8003-00000e4e”, “recordcheck,1(dontcare,out,0999103460)”) in new stack
– Executing [[email protected]:1] NoOp(“PJSIP/8003-00000e4e”, “Starting recording check against dontcare”) in new stack
– Executing [[email protected]:2] Goto(“PJSIP/8003-00000e4e”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [[email protected]:3] Return(“PJSIP/8003-00000e4e”, “”) in new stack
– Executing [[email protected]:8] Return(“PJSIP/8003-00000e4e”, “”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/8003-00000e4e”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/8003-00000e4e”, “MOHCLASS=default”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/8003-00000e4e”, “_NODEST=”) in new stack
– Executing [[email protected]:6] Macro(“PJSIP/8003-00000e4e”, “dialout-trunk,1,0999103460,off”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/8003-00000e4e”, “DIAL_TRUNK=1”) in new stack
– Executing [[email protected]:2] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(DIAL_OPTIONS=Hhtr)”) in new stack
– Executing [[email protected]:3] GosubIf(“PJSIP/8003-00000e4e”, “0?sub-pincheck,s,1()”) in new stack
– Executing [[email protected]:4] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CALLERID(num)=8003)”) in new stack
– Executing [[email protected]:5] GotoIf(“PJSIP/8003-00000e4e”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/8003-00000e4e”, “DIAL_NUMBER=0999103460”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/8003-00000e4e”, “DIAL_TRUNK_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/8003-00000e4e”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [[email protected]:9] Set(“PJSIP/8003-00000e4e”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [[email protected]:10] GotoIf(“PJSIP/8003-00000e4e”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,12)
– Executing [[email protected]:12] GotoIf(“PJSIP/8003-00000e4e”, “0?skipoutcid”) in new stack
– Executing [[email protected]:13] Macro(“PJSIP/8003-00000e4e”, “outbound-callerid,1”) in new stack
– Executing [[email protected]:1] NoOp(“PJSIP/8003-00000e4e”, “8003”) in new stack
– Executing [[email protected]:2] NoOp(“PJSIP/8003-00000e4e”, “”) in new stack
– Executing [[email protected]:3] NoOp(“PJSIP/8003-00000e4e”, “off”) in new stack
– Executing [[email protected]:4] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [[email protected]:5] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [[email protected]:6] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(REALCALLERIDNUM=8003)”) in new stack
– Executing [[email protected]:7] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(AMPUSER=8003)”) in new stack
– Executing [[email protected]:8] GotoIf(“PJSIP/8003-00000e4e”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [[email protected]:12] Set(“PJSIP/8003-00000e4e”, “USEROUTCID=8003”) in new stack
– Executing [[email protected]:13] Set(“PJSIP/8003-00000e4e”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:14] Set(“PJSIP/8003-00000e4e”, “TRUNKOUTCID=”) in new stack
– Executing [[email protected]:15] GotoIf(“PJSIP/8003-00000e4e”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,21)
– Executing [[email protected]:21] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:22] ExecIf(“PJSIP/8003-00000e4e”, “1?Set(CALLERID(all)=8003)”) in new stack
– Executing [[email protected]:23] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:24] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:25] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:26] Set(“PJSIP/8003-00000e4e”, “CDR(outbound_cnum)=8003”) in new stack
– Executing [[email protected]:27] Set(“PJSIP/8003-00000e4e”, “CDR(outbound_cnam)=”) in new stack
– Executing [[email protected]:14] GosubIf(“PJSIP/8003-00000e4e”, “0?sub-flp-1,s,1()”) in new stack
– Executing [[email protected]:15] Set(“PJSIP/8003-00000e4e”, “OUTNUM=0999103460”) in new stack
– Executing [[email protected]:16] Set(“PJSIP/8003-00000e4e”, “custom=SIP/6350”) in new stack
– Executing [[email protected]:17] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [[email protected]:18] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [[email protected]:19] Macro(“PJSIP/8003-00000e4e”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“PJSIP/8003-00000e4e”, “”) in new stack
– Executing [[email protected]:20] GotoIf(“PJSIP/8003-00000e4e”, “0?skipcrm”) in new stack
– Executing [[email protected]:21] Set(“PJSIP/8003-00000e4e”, “__CRM_DIRECTION=OUTBOUND”) in new stack
– Executing [[email protected]:22] Set(“PJSIP/8003-00000e4e”, “__CRM_DESTINATION=0999103460”) in new stack
– Executing [[email protected]:23] Set(“PJSIP/8003-00000e4e”, “__CRM_SOURCE=8003”) in new stack
– Executing [[email protected]:24] AGI(“PJSIP/8003-00000e4e”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– <PJSIP/8003-00000e4e>AGI Script sangomacrm.agi completed, returning 0
– Executing [[email protected]:25] Set(“PJSIP/8003-00000e4e”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
– Executing [[email protected]:26] NoOp(“PJSIP/8003-00000e4e”, “CRM Finished”) in new stack
– Executing [[email protected]:27] GotoIf(“PJSIP/8003-00000e4e”, “0?bypass,1”) in new stack
– Executing [[email protected]:28] ExecIf(“PJSIP/8003-00000e4e”, “1?Set(CONNECTEDLINE(num,i)=0999103460)”) in new stack
– Executing [[email protected]:29] ExecIf(“PJSIP/8003-00000e4e”, “1?Set(CONNECTEDLINE(name,i)=CID:8003)”) in new stack
– Executing [[email protected]:30] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)8003)”) in new stack
– Executing [[email protected]:31] GotoIf(“PJSIP/8003-00000e4e”, “0?customtrunk”) in new stack
– Executing [[email protected]:32] Dial(“PJSIP/8003-00000e4e”, “SIP/6350/[email protected],300,Tb(func-apply-sipheaders^s^1,(1))”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– SIP/6350-00000128 Internal Gosub(func-apply-sipheaders,s,1(1)) start
– Executing [[email protected]:1] ExecIf(“SIP/6350-00000128”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [[email protected]:2] NoOp(“SIP/6350-00000128”, “Applying SIP Headers to channel SIP/6350-00000128”) in new stack
– Executing [[email protected]:3] Set(“SIP/6350-00000128”, “TECH=SIP”) in new stack
– Executing [[email protected]:4] Set(“SIP/6350-00000128”, “SIPHEADERKEYS=”) in new stack
– Executing [[email protected]:5] While(“SIP/6350-00000128”, “0”) in new stack
– Jumping to priority 12
– Executing [[email protected]:13] Return(“SIP/6350-00000128”, “”) in new stack
== Spawn extension (from-pstn, 0999103460, 1) exited non-zero on ‘SIP/6350-00000128’
– SIP/6350-00000128 Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL=
– Called SIP/6350/[email protected]
– SIP/6350-00000128 is ringing
[2019-06-03 14:46:36] WARNING[13270]: res_pjsip_registrar.c:941 find_registrar_aor: AOR ‘8009’ not found for endpoint ‘interno_adm’
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:33] NoOp(“PJSIP/8003-00000e4e”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 127”) in new stack
– Executing [[email protected]:34] GotoIf(“PJSIP/8003-00000e4e”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [[email protected]:1] Set(“PJSIP/8003-00000e4e”, “RC=127”) in new stack
– Executing [[email protected]:2] Goto(“PJSIP/8003-00000e4e”, “127,1”) in new stack
– Goto (macro-dialout-trunk,127,1)
– Executing [[email protected]:1] Goto(“PJSIP/8003-00000e4e”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [[email protected]:1] NoOp(“PJSIP/8003-00000e4e”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 127 - failing through to other trunks”) in new stack
– Executing [[email protected]:2] ExecIf(“PJSIP/8003-00000e4e”, “1?Set(CALLERID(number)=8003)”) in new stack
– Executing [[email protected]:7] Macro(“PJSIP/8003-00000e4e”, “outisbusy,”) in new stack
– Executing [[email protected]:1] Progress(“PJSIP/8003-00000e4e”, “”) in new stack
– Executing [[email protected]:2] GotoIf(“PJSIP/8003-00000e4e”, “0?emergency,1”) in new stack
– Executing [[email protected]:3] GotoIf(“PJSIP/8003-00000e4e”, “0?intracompany,1”) in new stack
– Executing [[email protected]:4] Playback(“PJSIP/8003-00000e4e”, “all-circuits-busy-now&please-try-call-later, noanswer”) in new stack
– <PJSIP/8003-00000e4e> Playing ‘all-circuits-busy-now.g722’ (language ‘en’)
> 0x7fc61004f6c0 – Strict RTP learning after remote address set to: 10.0.91.148:11914
> 0x7fc61004f6c0 – Strict RTP switching to RTP target address 10.0.91.148:11914 as source
– <PJSIP/8003-00000e4e> Playing ‘please-try-call-later.ulaw’ (language ‘en’)
– Executing [[email protected]:5] Congestion(“PJSIP/8003-00000e4e”, “20”) in new stack
== Spawn extension (macro-outisbusy, s, 5) exited non-zero on ‘PJSIP/8003-00000e4e’ in macro ‘outisbusy’
== Spawn extension (from-internal, 0999103460, 7) exited non-zero on ‘PJSIP/8003-00000e4e’
– Executing [[email protected]:1] Macro(“PJSIP/8003-00000e4e”, “hangupcall”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/8003-00000e4e”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [[email protected]:3] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [[email protected]:4] NoOp(“PJSIP/8003-00000e4e”, " montior file= ") in new stack
– Executing [[email protected]:5] GotoIf(“PJSIP/8003-00000e4e”, “1?skipagi”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [[email protected]:7] Hangup(“PJSIP/8003-00000e4e”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 7) exited non-zero on ‘PJSIP/8003-00000e4e’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on ‘PJSIP/8003-00000e4e’
– PJSIP/8003-00000e4e Internal Gosub(crm-hangup,s,1) start
– Executing [[email protected]:1] NoOp(“PJSIP/8003-00000e4e”, “Sending Hangup to CRM”) in new stack
– Executing [[email protected]:2] NoOp(“PJSIP/8003-00000e4e”, “HANGUP CAUSE: 34”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [[email protected]:4] NoOp(“PJSIP/8003-00000e4e”, “MASTER CHANNEL: 1559573187.3960 = 1559573187.3960”) in new stack
– Executing [[email protected]:5] GotoIf(“PJSIP/8003-00000e4e”, “0?return”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/8003-00000e4e”, “__CRM_HANGUP=1”) in new stack
– Executing [[email protected]:7] AGI(“PJSIP/8003-00000e4e”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– <PJSIP/8003-00000e4e>AGI Script sangomacrm.agi completed, returning 0
– Executing [[email protected]:8] Return(“PJSIP/8003-00000e4e”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘PJSIP/8003-00000e4e’
– PJSIP/8003-00000e4e Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=

And the call drops

On the second attempt
The call is completed successfully.

Someone could tell me why I can not complete call on first attempt ?

Dial string is messed up. Try restarting Asterisk.

I rebooted, but now the extensions are not registering, and nothing appears in the CLI

I don’t think it’ll hurt trying to re-install Asterisk

asterisk-version-switch

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