The number you have dialed is not in service

Hi everyone,

I’m currently troubleshooting an issue with my FreePBX system using Asterisk. During call handling, I keep encountering the following error in the logs:

[2024-11-21 04:48:57] ERROR[1532]: res_pjsip_header_funcs.c:723 remove_header: No headers had been previously added to this session.

I am using PJSIP for trunking. Inbound calls are working properly.
Here’s a snippet from the logs when the error occurs:

– Executing [s@func-apply-sipheaders:15] ExecIf(“PJSIP/70XXXX-00000001”, “1?Set(PJSIP_HEADER(remove,Alert-Info)=)”) in new stack
[2024-11-21 04:48:57] ERROR[1532]: res_pjsip_header_funcs.c:723 remove_header: No headers had been previously added to this session.

FreePBX version: 17.0.19
Asterisk version 21.5.0

I don’t know what am I doing wrong, can you please help ?

Those are harmless, it’s occurring because of exactly what the error says - an attempt was made to remove a header by the FreePBX dialplan and the header doesn’t exist. That alone won’t cause a problem.

What’s your actual issue? Your post title says “The number you have dialed is not in service” but you state that inbound calls are working properly. Are outbound calls not working? If so, you should provide a complete log.

1 Like

Thanks for answering
Yes, exactly, issue is with outbound calls
unfortunately there is error now with servers and i cant get whole logs but here is screenshot with part of it.

Rest i can get in Monday.

Nothing is wrong in that screenshot. All it demonstrates is that the dialplan checks on the availability of the endpoint passed.

Typically, if it gets that far, any relevant information is in the SIP response, from the endpoint, so you need “pjsip set logger on” to be in effect.

1 Like

Hi, I installed FreePBX 16 instead, and still got the same problem
here is full logfiles
Connected to Asterisk 18.16.0 currently running on freepbx (pid = 2048)
== 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 [097021138@from-internal:1] Macro(“PJSIP/0103-0000000e”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“PJSIP/0103-0000000e”, “TOUCH_MONITOR=1732622199.14”) in new stack
– Executing [s@macro-user-callerid:2] Set(“PJSIP/0103-0000000e”, “CHANCONTEXT=”) in new stack
– Executing [s@macro-user-callerid:3] Progress(“PJSIP/0103-0000000e”, “”) in new stack
– Executing [s@macro-user-callerid:4] Set(“PJSIP/0103-0000000e”, “CHANCONTEXT=”) in new stack
– Executing [s@macro-user-callerid:5] Set(“PJSIP/0103-0000000e”, “CHANEXTENCONTEXT=0103-0000000e”) in new stack
– Executing [s@macro-user-callerid:6] Set(“PJSIP/0103-0000000e”, “CHANEXTEN=0103-0000000e”) in new stack
– Executing [s@macro-user-callerid:7] Set(“PJSIP/0103-0000000e”, “CALLERID(number)=0103”) in new stack
– Executing [s@macro-user-callerid:8] Set(“PJSIP/0103-0000000e”, “AMPUSER=0103”) in new stack
– Executing [s@macro-user-callerid:9] Set(“PJSIP/0103-0000000e”, “HOTDESCKCHAN=0103-0000000e”) in new stack
– Executing [s@macro-user-callerid:10] Set(“PJSIP/0103-0000000e”, “HOTDESKEXTEN=0103”) in new stack
– Executing [s@macro-user-callerid:11] Set(“PJSIP/0103-0000000e”, “HOTDESKCALL=0”) in new stack
– Executing [s@macro-user-callerid:12] ExecIf(“PJSIP/0103-0000000e”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“PJSIP/0103-0000000e”, “0?report”) in new stack
– Executing [s@macro-user-callerid:15] ExecIf(“PJSIP/0103-0000000e”, “1?Set(REALCALLERIDNUM=0103)”) in new stack
– Executing [s@macro-user-callerid:16] Set(“PJSIP/0103-0000000e”, “AMPUSER=0103”) in new stack
– Executing [s@macro-user-callerid:17] GotoIf(“PJSIP/0103-0000000e”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:18] Set(“PJSIP/0103-0000000e”, “AMPUSERCIDNAME=Luna Lovegood”) in new stack
– Executing [s@macro-user-callerid:19] ExecIf(“PJSIP/0103-0000000e”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [s@macro-user-callerid:20] GotoIf(“PJSIP/0103-0000000e”, “0?report”) in new stack
– Executing [s@macro-user-callerid:21] Set(“PJSIP/0103-0000000e”, “AMPUSERCID=0103”) in new stack
– Executing [s@macro-user-callerid:22] Set(“PJSIP/0103-0000000e”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-user-callerid:23] Set(“PJSIP/0103-0000000e”, “CALLERID(all)=“Luna Lovegood” <0103>”) in new stack
– Executing [s@macro-user-callerid:24] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CUSDIAL=)”) in new stack
– Executing [s@macro-user-callerid:25] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CALLERID(all)=“Luna Lovegood” <0103>)”) in new stack
– Executing [s@macro-user-callerid:26] GotoIf(“PJSIP/0103-0000000e”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:27] ExecIf(“PJSIP/0103-0000000e”, “1?Set(GROUP(concurrency_limit)=0103)”) in new stack
– Executing [s@macro-user-callerid:28] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:29] NoOp(“PJSIP/0103-0000000e”, “Macro Depth is 1”) in new stack
– Executing [s@macro-user-callerid:30] GotoIf(“PJSIP/0103-0000000e”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,31)
– Executing [s@macro-user-callerid:31] GotoIf(“PJSIP/0103-0000000e”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,50)
– Executing [s@macro-user-callerid:50] Set(“PJSIP/0103-0000000e”, “CALLERID(number)=0103”) in new stack
– Executing [s@macro-user-callerid:51] Set(“PJSIP/0103-0000000e”, “CALLERID(name)=Luna Lovegood”) in new stack
– Executing [s@macro-user-callerid:52] GotoIf(“PJSIP/0103-0000000e”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:53] Set(“PJSIP/0103-0000000e”, “__MCNUM=0103”) in new stack
– Executing [s@macro-user-callerid:54] Set(“PJSIP/0103-0000000e”, “__MCNAME=Luna Lovegood”) in new stack
– Executing [s@macro-user-callerid:55] Set(“PJSIP/0103-0000000e”, “__MCEXTEN=0103”) in new stack
– Executing [s@macro-user-callerid:56] Set(“PJSIP/0103-0000000e”, “__MCORGCHAN=PJSIP/0103-0000000e”) in new stack
– Executing [s@macro-user-callerid:57] Set(“PJSIP/0103-0000000e”, “CDR(cnam)=Luna Lovegood”) in new stack
– Executing [s@macro-user-callerid:58] Set(“PJSIP/0103-0000000e”, “CDR(cnum)=0103”) in new stack
– Executing [s@macro-user-callerid:59] Set(“PJSIP/0103-0000000e”, “CHANNEL(language)=en”) in new stack
– Executing [097021138@from-internal:2] Gosub(“PJSIP/0103-0000000e”, “sub-record-check,s,1(out,097021138,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“PJSIP/0103-0000000e”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“PJSIP/0103-0000000e”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“PJSIP/0103-0000000e”, “NOW=1732622199”) in new stack
– Executing [s@sub-record-check:4] Set(“PJSIP/0103-0000000e”, “__DAY=26”) in new stack
– Executing [s@sub-record-check:5] Set(“PJSIP/0103-0000000e”, “__MONTH=11”) in new stack
– Executing [s@sub-record-check:6] Set(“PJSIP/0103-0000000e”, “__YEAR=2024”) in new stack
– Executing [s@sub-record-check:7] Set(“PJSIP/0103-0000000e”, “__TIMESTR=20241126-115639”) in new stack
– Executing [s@sub-record-check:8] Set(“PJSIP/0103-0000000e”, “__FROMEXTEN=0103”) in new stack
– Executing [s@sub-record-check:9] Set(“PJSIP/0103-0000000e”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“PJSIP/0103-0000000e”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“PJSIP/0103-0000000e”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“PJSIP/0103-0000000e”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“PJSIP/0103-0000000e”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“PJSIP/0103-0000000e”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“PJSIP/0103-0000000e”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] NoOp(“PJSIP/0103-0000000e”, “Outbound Recording Check from 0103 to 097021138”) in new stack
– Executing [out@sub-record-check:2] Set(“PJSIP/0103-0000000e”, “RECMODE=dontcare”) in new stack
– Executing [out@sub-record-check:3] ExecIf(“PJSIP/0103-0000000e”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [out@sub-record-check:7] Gosub(“PJSIP/0103-0000000e”, “recordcheck,1(dontcare,out,097021138)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“PJSIP/0103-0000000e”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“PJSIP/0103-0000000e”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“PJSIP/0103-0000000e”, “”) in new stack
– Executing [out@sub-record-check:8] Return(“PJSIP/0103-0000000e”, “”) in new stack
– Executing [097021138@from-internal:3] ExecIf(“PJSIP/0103-0000000e”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [097021138@from-internal:4] Set(“PJSIP/0103-0000000e”, “_ROUTEID=1”) in new stack
– Executing [097021138@from-internal:5] Set(“PJSIP/0103-0000000e”, “_ROUTENAME=out”) in new stack
– Executing [097021138@from-internal:6] Set(“PJSIP/0103-0000000e”, “MOHCLASS=default”) in new stack
– Executing [097021138@from-internal:7] ExecIf(“PJSIP/0103-0000000e”, “1?Set(TRUNKCIDOVERRIDE=060707033)”) in new stack
– Executing [097021138@from-internal:8] Set(“PJSIP/0103-0000000e”, “_CALLERIDNAMEINTERNAL=Luna Lovegood”) in new stack
– Executing [097021138@from-internal:9] Set(“PJSIP/0103-0000000e”, “_CALLERIDNUMINTERNAL=0103”) in new stack
– Executing [097021138@from-internal:10] Set(“PJSIP/0103-0000000e”, “_EMAILNOTIFICATION=FALSE”) in new stack
– Executing [097021138@from-internal:11] Set(“PJSIP/0103-0000000e”, “_NODEST=”) in new stack
– Executing [097021138@from-internal:12] Macro(“PJSIP/0103-0000000e”, “dialout-trunk,1,097021138,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“PJSIP/0103-0000000e”, “DIAL_TRUNK=1”) in new stack
– Executing [s@macro-dialout-trunk:2] ExecIf(“PJSIP/0103-0000000e”, “0?Set(DIAL_OPTIONS=Hhtr)”) in new stack
– Executing [s@macro-dialout-trunk:3] GosubIf(“PJSIP/0103-0000000e”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:4] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CALLERID(num)=0103)”) in new stack
– Executing [s@macro-dialout-trunk:5] GotoIf(“PJSIP/0103-0000000e”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“PJSIP/0103-0000000e”, “DIAL_NUMBER=097021138”) in new stack
– Executing [s@macro-dialout-trunk:7] Set(“PJSIP/0103-0000000e”, “DIAL_TRUNK_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-dialout-trunk:8] Set(“PJSIP/0103-0000000e”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [s@macro-dialout-trunk:9] Set(“PJSIP/0103-0000000e”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [s@macro-dialout-trunk:10] GotoIf(“PJSIP/0103-0000000e”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,12)
– Executing [s@macro-dialout-trunk:12] GotoIf(“PJSIP/0103-0000000e”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:13] Macro(“PJSIP/0103-0000000e”, “outbound-callerid,1”) in new stack
– Executing [s@macro-outbound-callerid:1] NoOp(“PJSIP/0103-0000000e”, “0103”) in new stack
– Executing [s@macro-outbound-callerid:2] NoOp(“PJSIP/0103-0000000e”, “”) in new stack
– Executing [s@macro-outbound-callerid:3] NoOp(“PJSIP/0103-0000000e”, “off”) in new stack
– Executing [s@macro-outbound-callerid:4] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CALLERID(name-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:5] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CALLERID(num-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:6] Set(“PJSIP/0103-0000000e”, “HOTDESCKCHAN=0103-0000000e”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“PJSIP/0103-0000000e”, “HOTDESKEXTEN=0103”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“PJSIP/0103-0000000e”, “HOTDESKCALL=0”) in new stack
– Executing [s@macro-outbound-callerid:9] ExecIf(“PJSIP/0103-0000000e”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [s@macro-outbound-callerid:10] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [s@macro-outbound-callerid:11] Set(“PJSIP/0103-0000000e”, “ALLOWTHISROUTE=NO”) in new stack
– Executing [s@macro-outbound-callerid:12] ExecIf(“PJSIP/0103-0000000e”, “0?Set(ALLOWTHISROUTE=YES)”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“PJSIP/0103-0000000e”, “0?Hangup()”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“PJSIP/0103-0000000e”, “0?Set(REALCALLERIDNUM=0103)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“PJSIP/0103-0000000e”, “0?Set(AMPUSER=0103)”) in new stack
– Executing [s@macro-outbound-callerid:16] GotoIf(“PJSIP/0103-0000000e”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,20)
– Executing [s@macro-outbound-callerid:20] Set(“PJSIP/0103-0000000e”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:21] Set(“PJSIP/0103-0000000e”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:22] ExecIf(“PJSIP/0103-0000000e”, “0?Set(SCDEXT=YES)”) in new stack
– Executing [s@macro-outbound-callerid:23] ExecIf(“PJSIP/0103-0000000e”, “0?Set(EMERGENCYCID=)”) in new stack
– Executing [s@macro-outbound-callerid:24] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [s@macro-outbound-callerid:25] ExecIf(“PJSIP/0103-0000000e”, “0?Set(EMERGENCYCID=)”) in new stack
– Executing [s@macro-outbound-callerid:26] Set(“PJSIP/0103-0000000e”, “TRUNKOUTCID=060707033”) in new stack
– Executing [s@macro-outbound-callerid:27] GotoIf(“PJSIP/0103-0000000e”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,33)
– Executing [s@macro-outbound-callerid:33] ExecIf(“PJSIP/0103-0000000e”, “1?Set(CALLERID(all)=060707033)”) in new stack
– Executing [s@macro-outbound-callerid:34] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:35] ExecIf(“PJSIP/0103-0000000e”, “1?Set(CALLERID(all)=060707033)”) in new stack
– Executing [s@macro-outbound-callerid:36] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CALLERID(all)=0103)”) in new stack
– Executing [s@macro-outbound-callerid:37] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CALLERID(all)=0103)”) in new stack
– Executing [s@macro-outbound-callerid:38] Set(“PJSIP/0103-0000000e”, “TIOHIDE=no”) in new stack
– Executing [s@macro-outbound-callerid:39] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CALLERID(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:40] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CALLERID(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:41] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CALLERID(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:42] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CALLERID(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:43] Set(“PJSIP/0103-0000000e”, “CDR(outbound_cnum)=060707033”) in new stack
– Executing [s@macro-outbound-callerid:44] Set(“PJSIP/0103-0000000e”, “CDR(outbound_cnam)=”) in new stack
– Executing [s@macro-dialout-trunk:14] GosubIf(“PJSIP/0103-0000000e”, “0?sub-flp-1,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:15] Set(“PJSIP/0103-0000000e”, “OUTNUM=097021138”) in new stack
– Executing [s@macro-dialout-trunk:16] Set(“PJSIP/0103-0000000e”, “custom=PJSIP”) in new stack
– Executing [s@macro-dialout-trunk:17] ExecIf(“PJSIP/0103-0000000e”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [s@macro-dialout-trunk:18] ExecIf(“PJSIP/0103-0000000e”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:19] GotoIf(“PJSIP/0103-0000000e”, “1?gocall”) in new stack
– Goto (macro-dialout-trunk,s,21)
– Executing [s@macro-dialout-trunk:21] Macro(“PJSIP/0103-0000000e”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“PJSIP/0103-0000000e”, “”) in new stack
– Executing [s@macro-dialout-trunk:22] GotoIf(“PJSIP/0103-0000000e”, “0?skipcrm”) in new stack
– Executing [s@macro-dialout-trunk:23] Set(“PJSIP/0103-0000000e”, “__CRM_DIRECTION=OUTBOUND”) in new stack
– Executing [s@macro-dialout-trunk:24] Set(“PJSIP/0103-0000000e”, “__CRM_DESTINATION=097021138”) in new stack
– Executing [s@macro-dialout-trunk:25] Set(“PJSIP/0103-0000000e”, “__CRM_SOURCE=0103”) in new stack
– Executing [s@macro-dialout-trunk:26] AGI(“PJSIP/0103-0000000e”, “agi://127.0.0.1/sangomacrm.agi”) in new stack
– <PJSIP/0103-0000000e>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0
– Executing [s@macro-dialout-trunk:27] Set(“PJSIP/0103-0000000e”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
– Executing [s@macro-dialout-trunk:28] NoOp(“PJSIP/0103-0000000e”, “CRM Finished”) in new stack
– Executing [s@macro-dialout-trunk:29] GotoIf(“PJSIP/0103-0000000e”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:30] ExecIf(“PJSIP/0103-0000000e”, “1?Set(CONNECTEDLINE(num,i)=097021138)”) in new stack
– Executing [s@macro-dialout-trunk:31] ExecIf(“PJSIP/0103-0000000e”, “1?Set(CONNECTEDLINE(name,i)=CID:060707033)”) in new stack
– Executing [s@macro-dialout-trunk:32] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)060707033)”) in new stack
– Executing [s@macro-dialout-trunk:33] GotoIf(“PJSIP/0103-0000000e”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:34] ExecIf(“PJSIP/0103-0000000e”, “0?Set(DIAL_TRUNK_OPTIONS=)”) in new stack
– Executing [s@macro-dialout-trunk:35] Set(“PJSIP/0103-0000000e”, “HASH(__SIPHEADERS,Alert-Info)=unset”) in new stack
– Executing [s@macro-dialout-trunk:36] Dial(“PJSIP/0103-0000000e”, “PJSIP/097021138@707033,300,Tb(func-apply-sipheaders^s^1,(1))U(sub-send-obroute-email^097021138^097021138^1^1732622199^^060707033)”) in new stack
– PJSIP/707033-0000000f Internal Gosub(func-apply-sipheaders,s,1(1)) start
– Executing [s@func-apply-sipheaders:1] ExecIf(“PJSIP/707033-0000000f”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [s@func-apply-sipheaders:2] NoOp(“PJSIP/707033-0000000f”, “Applying SIP Headers to channel PJSIP/707033-0000000f”) in new stack
– Executing [s@func-apply-sipheaders:3] Set(“PJSIP/707033-0000000f”, “CHANNEL(hangup_handler_push)=app-missedcall-hangup,1”) in new stack
– Executing [s@func-apply-sipheaders:4] Set(“PJSIP/707033-0000000f”, “TECH=PJSIP”) in new stack
– Executing [s@func-apply-sipheaders:5] Set(“PJSIP/707033-0000000f”, “SIPHEADERKEYS=Alert-Info”) in new stack
– Executing [s@func-apply-sipheaders:6] While(“PJSIP/707033-0000000f”, “1”) in new stack
– Executing [s@func-apply-sipheaders:7] Set(“PJSIP/707033-0000000f”, “sipheader=unset”) in new stack
– Executing [s@func-apply-sipheaders:8] ExecIf(“PJSIP/707033-0000000f”, “1?Set(PJSIP_HEADER(remove,Alert-Info)=)”) in new stack
[2024-11-26 11:56:40] ERROR[10320]: res_pjsip_header_funcs.c:717 remove_header: No headers had been previously added to this session.
– Executing [s@func-apply-sipheaders:9] ExecIf(“PJSIP/707033-0000000f”, “0?Set(sipheader=http://127.0.0.1;info=unset)”) in new stack
– Executing [s@func-apply-sipheaders:10] ExecIf(“PJSIP/707033-0000000f”, “0?Set(sipheader=http://127.0.0.1unset)”) in new stack
– Executing [s@func-apply-sipheaders:11] ExecIf(“PJSIP/707033-0000000f”, “0?Set(PJSIP_HEADER(add,Alert-Info)=unset)”) in new stack
– Executing [s@func-apply-sipheaders:12] EndWhile(“PJSIP/707033-0000000f”, “”) in new stack
– Executing [s@func-apply-sipheaders:6] While(“PJSIP/707033-0000000f”, “0”) in new stack
– Executing [s@func-apply-sipheaders:13] Return(“PJSIP/707033-0000000f”, “”) in new stack
== Spawn extension (func-apply-sipheaders, s, 13) exited non-zero on ‘PJSIP/707033-0000000f’
– PJSIP/707033-0000000f Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL=
– Called PJSIP/097021138@707033
– PJSIP/707033-0000000f Internal Gosub(app-missedcall-hangup,s,1) start
– Executing [s@app-missedcall-hangup:1] NoOp(“PJSIP/707033-0000000f”, “Callee: s”) in new stack
– Executing [s@app-missedcall-hangup:2] NoOp(“PJSIP/707033-0000000f”, “Caller: 0103”) in new stack
– Executing [s@app-missedcall-hangup:3] AGI(“PJSIP/707033-0000000f”, “agi://127.0.0.1/missedcallnotify.php,s,0,PJSIP/707033-0000000f,”) in new stack
– agi://127.0.0.1/missedcallnotify.php,s,0,PJSIP/707033-0000000f,: As a minimum this script requires extension or ‘s’ as argument
– <PJSIP/707033-0000000f>AGI Script agi://127.0.0.1/missedcallnotify.php completed, returning 0
– Executing [s@app-missedcall-hangup:4] Return(“PJSIP/707033-0000000f”, “”) in new stack
== Spawn extension (app-missedcall-hangup, s, 4) exited non-zero on ‘PJSIP/707033-0000000f’
– PJSIP/707033-0000000f Internal Gosub(app-missedcall-hangup,s,1) complete GOSUB_RETVAL=
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dialout-trunk:37] NoOp(“PJSIP/0103-0000000e”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 1”) in new stack
– Executing [s@macro-dialout-trunk:38] GotoIf(“PJSIP/0103-0000000e”, “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/0103-0000000e”, “RC=1”) in new stack
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(“PJSIP/0103-0000000e”, “1,1”) in new stack
– Goto (macro-dialout-trunk,1,1)
– Executing [1@macro-dialout-trunk:1] Goto(“PJSIP/0103-0000000e”, “s-INVALIDNMBR,1”) in new stack
– Goto (macro-dialout-trunk,s-INVALIDNMBR,1)
– Executing [s-INVALIDNMBR@macro-dialout-trunk:1] NoOp(“PJSIP/0103-0000000e”, “Dial failed due to trunk reporting Address Incomplete - giving up”) in new stack
– Executing [s-INVALIDNMBR@macro-dialout-trunk:2] Progress(“PJSIP/0103-0000000e”, “”) in new stack
– Executing [s-INVALIDNMBR@macro-dialout-trunk:3] Playback(“PJSIP/0103-0000000e”, “ss-noservice,noanswer”) in new stack
– <PJSIP/0103-0000000e> Playing ‘ss-noservice.ulaw’ (language ‘en’)
– Executing [s-INVALIDNMBR@macro-dialout-trunk:4] Busy(“PJSIP/0103-0000000e”, “20”) in new stack
== Spawn extension (macro-dialout-trunk, s-INVALIDNMBR, 4) exited non-zero on ‘PJSIP/0103-0000000e’ in macro ‘dialout-trunk’
== Spawn extension (from-internal, 097021138, 12) exited non-zero on ‘PJSIP/0103-0000000e’
– Executing [h@from-internal:1] Macro(“PJSIP/0103-0000000e”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] Gosub(“PJSIP/0103-0000000e”, “app-missedcall-hangup,s,1()”) in new stack
– Executing [s@app-missedcall-hangup:1] NoOp(“PJSIP/0103-0000000e”, “Callee: s”) in new stack
– Executing [s@app-missedcall-hangup:2] NoOp(“PJSIP/0103-0000000e”, “Caller: 0103”) in new stack
– Executing [s@app-missedcall-hangup:3] AGI(“PJSIP/0103-0000000e”, “agi://127.0.0.1/missedcallnotify.php,s,0,PJSIP/0103-0000000e,CHANUNAVAIL,”) in new stack
– agi://127.0.0.1/missedcallnotify.php,s,0,PJSIP/0103-0000000e,CHANUNAVAIL,: As a minimum this script requires extension or ‘s’ as argument
– <PJSIP/0103-0000000e>AGI Script agi://127.0.0.1/missedcallnotify.php completed, returning 0
– Executing [s@app-missedcall-hangup:4] Return(“PJSIP/0103-0000000e”, “”) in new stack
– Executing [s@macro-hangupcall:2] GotoIf(“PJSIP/0103-0000000e”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [s@macro-hangupcall:4] ExecIf(“PJSIP/0103-0000000e”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:5] Hangup(“PJSIP/0103-0000000e”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 5) exited non-zero on ‘PJSIP/0103-0000000e’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on ‘PJSIP/0103-0000000e’
– PJSIP/0103-0000000e Internal Gosub(crm-hangup,s,1) start
– Executing [s@crm-hangup:1] NoOp(“PJSIP/0103-0000000e”, “Sending Hangup to CRM”) in new stack
– Executing [s@crm-hangup:2] NoOp(“PJSIP/0103-0000000e”, “HANGUP CAUSE: 17”) in new stack
– Executing [s@crm-hangup:3] ExecIf(“PJSIP/0103-0000000e”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [s@crm-hangup:4] NoOp(“PJSIP/0103-0000000e”, “MASTER CHANNEL: 1732622199.14 = 1732622199.14”) in new stack
– Executing [s@crm-hangup:5] GotoIf(“PJSIP/0103-0000000e”, “0?return”) in new stack
– Executing [s@crm-hangup:6] Set(“PJSIP/0103-0000000e”, “__CRM_HANGUP=1”) in new stack
– Executing [s@crm-hangup:7] AGI(“PJSIP/0103-0000000e”, “agi://127.0.0.1/sangomacrm.agi”) in new stack
– <PJSIP/0103-0000000e>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0
– Executing [s@crm-hangup:8] Return(“PJSIP/0103-0000000e”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘PJSIP/0103-0000000e’
– PJSIP/0103-0000000e Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=

Again no pjsip set logger on output.