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 [0999103460@from-internal:1] Macro(“PJSIP/8003-00000e4e”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“PJSIP/8003-00000e4e”, “TOUCH_MONITOR=1559573187.3960”) in new stack
– Executing [s@macro-user-callerid:2] Set(“PJSIP/8003-00000e4e”, “AMPUSER=8003”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“PJSIP/8003-00000e4e”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“PJSIP/8003-00000e4e”, “1?Set(REALCALLERIDNUM=8003)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“PJSIP/8003-00000e4e”, “AMPUSER=8003”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“PJSIP/8003-00000e4e”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“PJSIP/8003-00000e4e”, “AMPUSERCIDNAME=8003”) in new stack
– Executing [s@macro-user-callerid:8] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“PJSIP/8003-00000e4e”, “0?report”) in new stack
– Executing [s@macro-user-callerid:10] Set(“PJSIP/8003-00000e4e”, “AMPUSERCID=8003”) in new stack
– Executing [s@macro-user-callerid:11] Set(“PJSIP/8003-00000e4e”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-user-callerid:12] Set(“PJSIP/8003-00000e4e”, “CALLERID(all)=“8003” <8003>”) in new stack
– Executing [s@macro-user-callerid:13] GotoIf(“PJSIP/8003-00000e4e”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:14] ExecIf(“PJSIP/8003-00000e4e”, “1?Set(GROUP(concurrency_limit)=8003)”) in new stack
– Executing [s@macro-user-callerid:15] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:16] NoOp(“PJSIP/8003-00000e4e”, “Macro Depth is 1”) in new stack
– Executing [s@macro-user-callerid:17] GotoIf(“PJSIP/8003-00000e4e”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [s@macro-user-callerid:18] GotoIf(“PJSIP/8003-00000e4e”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,37)
– Executing [s@macro-user-callerid:37] Set(“PJSIP/8003-00000e4e”, “CALLERID(number)=8003”) in new stack
– Executing [s@macro-user-callerid:38] Set(“PJSIP/8003-00000e4e”, “CALLERID(name)=8003”) in new stack
– Executing [s@macro-user-callerid:39] GotoIf(“PJSIP/8003-00000e4e”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:40] Set(“PJSIP/8003-00000e4e”, “CDR(cnam)=8003”) in new stack
– Executing [s@macro-user-callerid:41] Set(“PJSIP/8003-00000e4e”, “CDR(cnum)=8003”) in new stack
– Executing [s@macro-user-callerid:42] Set(“PJSIP/8003-00000e4e”, “CHANNEL(language)=en”) in new stack
– Executing [0999103460@from-internal:2] Gosub(“PJSIP/8003-00000e4e”, “sub-record-check,s,1(out,0999103460,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“PJSIP/8003-00000e4e”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“PJSIP/8003-00000e4e”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“PJSIP/8003-00000e4e”, “NOW=1559573187”) in new stack
– Executing [s@sub-record-check:4] Set(“PJSIP/8003-00000e4e”, “__DAY=03”) in new stack
– Executing [s@sub-record-check:5] Set(“PJSIP/8003-00000e4e”, “__MONTH=06”) in new stack
– Executing [s@sub-record-check:6] Set(“PJSIP/8003-00000e4e”, “__YEAR=2019”) in new stack
– Executing [s@sub-record-check:7] Set(“PJSIP/8003-00000e4e”, “__TIMESTR=20190603-144627”) in new stack
– Executing [s@sub-record-check:8] Set(“PJSIP/8003-00000e4e”, “__FROMEXTEN=8003”) in new stack
– Executing [s@sub-record-check:9] Set(“PJSIP/8003-00000e4e”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“PJSIP/8003-00000e4e”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“PJSIP/8003-00000e4e”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“PJSIP/8003-00000e4e”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“PJSIP/8003-00000e4e”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] NoOp(“PJSIP/8003-00000e4e”, “Outbound Recording Check from 8003 to 0999103460”) in new stack
– Executing [out@sub-record-check:2] Set(“PJSIP/8003-00000e4e”, “RECMODE=dontcare”) in new stack
– Executing [out@sub-record-check:3] ExecIf(“PJSIP/8003-00000e4e”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [out@sub-record-check:7] Gosub(“PJSIP/8003-00000e4e”, “recordcheck,1(dontcare,out,0999103460)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“PJSIP/8003-00000e4e”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“PJSIP/8003-00000e4e”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“PJSIP/8003-00000e4e”, “”) in new stack
– Executing [out@sub-record-check:8] Return(“PJSIP/8003-00000e4e”, “”) in new stack
– Executing [0999103460@from-internal:3] ExecIf(“PJSIP/8003-00000e4e”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [0999103460@from-internal:4] Set(“PJSIP/8003-00000e4e”, “MOHCLASS=default”) in new stack
– Executing [0999103460@from-internal:5] Set(“PJSIP/8003-00000e4e”, “_NODEST=”) in new stack
– Executing [0999103460@from-internal:6] Macro(“PJSIP/8003-00000e4e”, “dialout-trunk,1,0999103460,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“PJSIP/8003-00000e4e”, “DIAL_TRUNK=1”) in new stack
– Executing [s@macro-dialout-trunk:2] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(DIAL_OPTIONS=Hhtr)”) in new stack
– Executing [s@macro-dialout-trunk:3] GosubIf(“PJSIP/8003-00000e4e”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:4] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CALLERID(num)=8003)”) in new stack
– Executing [s@macro-dialout-trunk:5] GotoIf(“PJSIP/8003-00000e4e”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“PJSIP/8003-00000e4e”, “DIAL_NUMBER=0999103460”) in new stack
– Executing [s@macro-dialout-trunk:7] Set(“PJSIP/8003-00000e4e”, “DIAL_TRUNK_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-dialout-trunk:8] Set(“PJSIP/8003-00000e4e”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [s@macro-dialout-trunk:9] Set(“PJSIP/8003-00000e4e”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [s@macro-dialout-trunk:10] GotoIf(“PJSIP/8003-00000e4e”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,12)
– Executing [s@macro-dialout-trunk:12] GotoIf(“PJSIP/8003-00000e4e”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:13] Macro(“PJSIP/8003-00000e4e”, “outbound-callerid,1”) in new stack
– Executing [s@macro-outbound-callerid:1] NoOp(“PJSIP/8003-00000e4e”, “8003”) in new stack
– Executing [s@macro-outbound-callerid:2] NoOp(“PJSIP/8003-00000e4e”, “”) in new stack
– Executing [s@macro-outbound-callerid:3] NoOp(“PJSIP/8003-00000e4e”, “off”) in new stack
– Executing [s@macro-outbound-callerid:4] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:5] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:6] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(REALCALLERIDNUM=8003)”) in new stack
– Executing [s@macro-outbound-callerid:7] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(AMPUSER=8003)”) in new stack
– Executing [s@macro-outbound-callerid:8] GotoIf(“PJSIP/8003-00000e4e”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] Set(“PJSIP/8003-00000e4e”, “USEROUTCID=8003”) in new stack
– Executing [s@macro-outbound-callerid:13] Set(“PJSIP/8003-00000e4e”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:14] Set(“PJSIP/8003-00000e4e”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:15] GotoIf(“PJSIP/8003-00000e4e”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,21)
– Executing [s@macro-outbound-callerid:21] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:22] ExecIf(“PJSIP/8003-00000e4e”, “1?Set(CALLERID(all)=8003)”) in new stack
– Executing [s@macro-outbound-callerid:23] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:24] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:25] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:26] Set(“PJSIP/8003-00000e4e”, “CDR(outbound_cnum)=8003”) in new stack
– Executing [s@macro-outbound-callerid:27] Set(“PJSIP/8003-00000e4e”, “CDR(outbound_cnam)=”) in new stack
– Executing [s@macro-dialout-trunk:14] GosubIf(“PJSIP/8003-00000e4e”, “0?sub-flp-1,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:15] Set(“PJSIP/8003-00000e4e”, “OUTNUM=0999103460”) in new stack
– Executing [s@macro-dialout-trunk:16] Set(“PJSIP/8003-00000e4e”, “custom=SIP/6350”) in new stack
– Executing [s@macro-dialout-trunk:17] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [s@macro-dialout-trunk:18] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:19] Macro(“PJSIP/8003-00000e4e”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“PJSIP/8003-00000e4e”, “”) in new stack
– Executing [s@macro-dialout-trunk:20] GotoIf(“PJSIP/8003-00000e4e”, “0?skipcrm”) in new stack
– Executing [s@macro-dialout-trunk:21] Set(“PJSIP/8003-00000e4e”, “__CRM_DIRECTION=OUTBOUND”) in new stack
– Executing [s@macro-dialout-trunk:22] Set(“PJSIP/8003-00000e4e”, “__CRM_DESTINATION=0999103460”) in new stack
– Executing [s@macro-dialout-trunk:23] Set(“PJSIP/8003-00000e4e”, “__CRM_SOURCE=8003”) in new stack
– Executing [s@macro-dialout-trunk: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 [s@macro-dialout-trunk:25] Set(“PJSIP/8003-00000e4e”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
– Executing [s@macro-dialout-trunk:26] NoOp(“PJSIP/8003-00000e4e”, “CRM Finished”) in new stack
– Executing [s@macro-dialout-trunk:27] GotoIf(“PJSIP/8003-00000e4e”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:28] ExecIf(“PJSIP/8003-00000e4e”, “1?Set(CONNECTEDLINE(num,i)=0999103460)”) in new stack
– Executing [s@macro-dialout-trunk:29] ExecIf(“PJSIP/8003-00000e4e”, “1?Set(CONNECTEDLINE(name,i)=CID:8003)”) in new stack
– Executing [s@macro-dialout-trunk:30] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)8003)”) in new stack
– Executing [s@macro-dialout-trunk:31] GotoIf(“PJSIP/8003-00000e4e”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:32] Dial(“PJSIP/8003-00000e4e”, “SIP/6350/0999103460@6350,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 [s@func-apply-sipheaders:1] ExecIf(“SIP/6350-00000128”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [s@func-apply-sipheaders:2] NoOp(“SIP/6350-00000128”, “Applying SIP Headers to channel SIP/6350-00000128”) in new stack
– Executing [s@func-apply-sipheaders:3] Set(“SIP/6350-00000128”, “TECH=SIP”) in new stack
– Executing [s@func-apply-sipheaders:4] Set(“SIP/6350-00000128”, “SIPHEADERKEYS=”) in new stack
– Executing [s@func-apply-sipheaders:5] While(“SIP/6350-00000128”, “0”) in new stack
– Jumping to priority 12
– Executing [s@func-apply-sipheaders: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/0999103460@6350
– 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 [s@macro-dialout-trunk:33] NoOp(“PJSIP/8003-00000e4e”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 127”) in new stack
– Executing [s@macro-dialout-trunk:34] GotoIf(“PJSIP/8003-00000e4e”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set(“PJSIP/8003-00000e4e”, “RC=127”) in new stack
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(“PJSIP/8003-00000e4e”, “127,1”) in new stack
– Goto (macro-dialout-trunk,127,1)
– Executing [127@macro-dialout-trunk:1] Goto(“PJSIP/8003-00000e4e”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] NoOp(“PJSIP/8003-00000e4e”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 127 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:2] ExecIf(“PJSIP/8003-00000e4e”, “1?Set(CALLERID(number)=8003)”) in new stack
– Executing [0999103460@from-internal:7] Macro(“PJSIP/8003-00000e4e”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Progress(“PJSIP/8003-00000e4e”, “”) in new stack
– Executing [s@macro-outisbusy:2] GotoIf(“PJSIP/8003-00000e4e”, “0?emergency,1”) in new stack
– Executing [s@macro-outisbusy:3] GotoIf(“PJSIP/8003-00000e4e”, “0?intracompany,1”) in new stack
– Executing [s@macro-outisbusy: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 [s@macro-outisbusy: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 [h@from-internal:1] Macro(“PJSIP/8003-00000e4e”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“PJSIP/8003-00000e4e”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] NoOp(“PJSIP/8003-00000e4e”, " montior file= ") in new stack
– Executing [s@macro-hangupcall:5] GotoIf(“PJSIP/8003-00000e4e”, “1?skipagi”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [s@macro-hangupcall: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 [s@crm-hangup:1] NoOp(“PJSIP/8003-00000e4e”, “Sending Hangup to CRM”) in new stack
– Executing [s@crm-hangup:2] NoOp(“PJSIP/8003-00000e4e”, “HANGUP CAUSE: 34”) in new stack
– Executing [s@crm-hangup:3] ExecIf(“PJSIP/8003-00000e4e”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [s@crm-hangup:4] NoOp(“PJSIP/8003-00000e4e”, “MASTER CHANNEL: 1559573187.3960 = 1559573187.3960”) in new stack
– Executing [s@crm-hangup:5] GotoIf(“PJSIP/8003-00000e4e”, “0?return”) in new stack
– Executing [s@crm-hangup:6] Set(“PJSIP/8003-00000e4e”, “__CRM_HANGUP=1”) in new stack
– Executing [s@crm-hangup: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 [s@crm-hangup: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.