Andrew, I am not sure if I should create a new topic since the system I am talking about is a little different.
I upgraded core (on a FreePBX 14 Asterisk 15) from 14.0.18.18 to 14.0.18.46 on Tue, Jan 15.
Internal calls alert-info is set to ring 2. It was working fine till I updated to .46.
Yesterday we got a complain that it stopped working.
Hereās a log from 1/14 where alert-info is working. https://pastebin.freepbx.org/view/a3b36401
Hereās a log from yesterday 1/16 where itās not working. https://pastebin.freepbx.org/view/1cd59d08
Hereās what I see different in the logs.
Working one 1/14:
[2019-01-14 09:29:25] VERBOSE[39945][C-00012dbc] app_stack.c: SIP/169-000256f2 Internal Gosub(func-apply-sipheaders,s,1) start
[2019-01-14 09:29:25] VERBOSE[39945][C-00012dbc] pbx.c: Executing [s@func-apply-sipheaders:1] NoOp("SIP/169-000256f2", "Applying SIP Headers to channel") in new stack
[2019-01-14 09:29:25] VERBOSE[39945][C-00012dbc] pbx.c: Executing [s@func-apply-sipheaders:2] Set("SIP/169-000256f2", "SIPHEADERKEYS=Alert-Info") in new stack
[2019-01-14 09:29:25] VERBOSE[39945][C-00012dbc] pbx.c: Executing [s@func-apply-sipheaders:3] ExecIf("SIP/169-000256f2", "0?Set(Rheader=1)") in new stack
[2019-01-14 09:29:25] VERBOSE[39945][C-00012dbc] pbx.c: Executing [s@func-apply-sipheaders:4] While("SIP/169-000256f2", "1") in new stack
[2019-01-14 09:29:25] VERBOSE[39945][C-00012dbc] pbx.c: Executing [s@func-apply-sipheaders:5] Set("SIP/169-000256f2", "sipheader=ring2") in new stack
[2019-01-14 09:29:25] VERBOSE[39945][C-00012dbc] pbx.c: Executing [s@func-apply-sipheaders:6] SIPAddHeader("SIP/169-000256f2", "Alert-Info: ring2") in new stack
[2019-01-14 09:29:25] VERBOSE[39945][C-00012dbc] pbx.c: Executing [s@func-apply-sipheaders:7] Set("SIP/169-000256f2", "PJSIP_HEADER(add,Alert-Info)=ring2") in new stack
[2019-01-14 09:29:25] ERROR[39945][C-00012dbc] res_pjsip_header_funcs.c: This function requires a PJSIP channel.
[2019-01-14 09:29:25] VERBOSE[39945][C-00012dbc] pbx.c: Executing [s@func-apply-sipheaders:8] EndWhile("SIP/169-000256f2", "") in new stack
[2019-01-14 09:29:25] VERBOSE[39945][C-00012dbc] pbx.c: Executing [s@func-apply-sipheaders:4] While("SIP/169-000256f2", "0") in new stack
[2019-01-14 09:29:25] VERBOSE[39945][C-00012dbc] pbx.c: Executing [s@func-apply-sipheaders:9] ExecIf("SIP/169-000256f2", "0?SIPRemoveHeader(Alert-Info:)") in new stack
[2019-01-14 09:29:25] VERBOSE[39945][C-00012dbc] pbx.c: Executing [s@func-apply-sipheaders:10] ExecIf("SIP/169-000256f2", "0?Set(PJSIP_HEADER(remove,Alert-Info)=)") in new stack
[2019-01-14 09:29:25] VERBOSE[39945][C-00012dbc] pbx.c: Executing [s@func-apply-sipheaders:11] Return("SIP/169-000256f2", "") in new stack
Not working 1/16:
[2019-01-16 13:21:54] VERBOSE[5182][C-00001110] app_stack.c: SIP/160-00002135 Internal Gosub(func-apply-sipheaders,s,1) start
[2019-01-16 13:21:54] VERBOSE[5182][C-00001110] pbx.c: Executing [s@func-apply-sipheaders:1] NoOp("SIP/160-00002135", "Applying SIP Headers to channel SIP/160-00002135") in new stack
[2019-01-16 13:21:54] VERBOSE[5182][C-00001110] pbx.c: Executing [s@func-apply-sipheaders:2] Set("SIP/160-00002135", "TECH=SIP") in new stack
[2019-01-16 13:21:54] VERBOSE[5182][C-00001110] pbx.c: Executing [s@func-apply-sipheaders:3] Set("SIP/160-00002135", "SIPHEADERKEYS=Alert-Info") in new stack
[2019-01-16 13:21:54] VERBOSE[5182][C-00001110] pbx.c: Executing [s@func-apply-sipheaders:4] ExecIf("SIP/160-00002135", "0?Set(Rheader=1)") in new stack
[2019-01-16 13:21:54] VERBOSE[5182][C-00001110] pbx.c: Executing [s@func-apply-sipheaders:5] While("SIP/160-00002135", "1") in new stack
[2019-01-16 13:21:54] VERBOSE[5182][C-00001110] pbx.c: Executing [s@func-apply-sipheaders:6] Set("SIP/160-00002135", "sipheader=ring2") in new stack
[2019-01-16 13:21:54] VERBOSE[5182][C-00001110] pbx.c: Executing [s@func-apply-sipheaders:7] ExecIf("SIP/160-00002135", "1?Set(sipheader=<uri>;info=ring2)") in new stack
[2019-01-16 13:21:54] VERBOSE[5182][C-00001110] pbx.c: Executing [s@func-apply-sipheaders:8] ExecIf("SIP/160-00002135", "1?SIPAddHeader(Alert-Info,<uri>;info=ring2)") in new stack
[2019-01-16 13:21:54] VERBOSE[5182][C-00001110] pbx.c: Executing [s@func-apply-sipheaders:9] EndWhile("SIP/160-00002135", "") in new stack
[2019-01-16 13:21:54] VERBOSE[5182][C-00001110] pbx.c: Executing [s@func-apply-sipheaders:5] While("SIP/160-00002135", "0") in new stack
[2019-01-16 13:21:54] VERBOSE[5182][C-00001110] pbx.c: Executing [s@func-apply-sipheaders:10] ExecIf("SIP/160-00002135", "0?SIPRemoveHeader(Alert-Info:)") in new stack
[2019-01-16 13:21:54] VERBOSE[5182][C-00001110] pbx.c: Executing [s@func-apply-sipheaders:11] Return("SIP/160-00002135", "") in new stack
Finally, I went and downgraded to core 14.0.18.18 and it started working again