Why I get "res_pjsip_header_funcs.c: This function requires a PJSIP channel"?

Hi all,

Fresh install of STABLE SNG7-FPBX-64bit-1706-1 (Asterisk 13)
I get loads of errors "res_pjsip_header_funcs.c: This function requires a PJSIP channel"
I have tried to Google it but I have not found any solution.
Please could you help me to fix that?

[2017-07-10 19:08:55] VERBOSE[1258][C-0000001c] pbx.c: Executing [[email protected]:5] Set(“DAHDI/1-1”, “RT=”) in new stack
[2017-07-10 19:08:55] WARNING[1258][C-0000001c] chan_sip.c: This function can only be used on SIP channels.
[2017-07-10 19:08:55] ERROR[1258][C-0000001c] res_pjsip_header_funcs.c: This function requires a PJSIP channel.
[2017-07-10 19:08:55] VERBOSE[1258][C-0000001c] pbx.c: Executing [[email protected]:6] ExecIf(“DAHDI/1-1”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
[2017-07-10 19:08:55] WARNING[1258][C-0000001c] chan_sip.c: This function can only be used on SIP channels.
[2017-07-10 19:08:55] ERROR[1258][C-0000001c] res_pjsip_header_funcs.c: This function requires a PJSIP channel.
[2017-07-10 19:08:55] WARNING[1258][C-0000001c] chan_sip.c: This function can only be used on SIP channels.
[2017-07-10 19:08:55] ERROR[1258][C-0000001c] res_pjsip_header_funcs.c: This function requires a PJSIP channel.
[2017-07-10 19:08:55] VERBOSE[1258][C-0000001c] pbx.c: Executing [[email protected]:7] ExecIf(“DAHDI/1-1”, “0?MacroExit()”) in new stack
[2017-07-10 19:08:55] WARNING[1258][C-0000001c] chan_sip.c: This function can only be used on SIP channels.
[2017-07-10 19:08:55] ERROR[1258][C-0000001c] res_pjsip_header_funcs.c: This function requires a PJSIP channel.
[2017-07-10 19:08:55] WARNING[1258][C-0000001c] chan_sip.c: This function can only be used on SIP channels.
[2017-07-10 19:08:55] ERROR[1258][C-0000001c] res_pjsip_header_funcs.c: This function requires a PJSIP channel.
[2017-07-10 19:08:55] VERBOSE[1258][C-0000001c] pbx.c: Executing [[email protected]:8] ExecIf(“DAHDI/1-1”, “0?Gosub(ext-intercom,*80777,1())”) in new stack
[2017-07-10 19:08:55] WARNING[1258][C-0000001c] chan_sip.c: This function can only be used on SIP channels.
[2017-07-10 19:08:55] ERROR[1258][C-0000001c] res_pjsip_header_funcs.c: This function requires a PJSIP channel.
[2017-07-10 19:08:55] WARNING[1258][C-0000001c] chan_sip.c: This function can only be used on SIP channels.
[2017-07-10 19:08:55] ERROR[1258][C-0000001c] res_pjsip_header_funcs.c: This function requires a PJSIP channel.
[2017-07-10 19:08:55] VERBOSE[1258][C-0000001c] pbx.c: Executing [[email protected]:9] ExecIf(“DAHDI/1-1”, “0?MacroExit()”) in new stack
[2017-07-10 19:08:55] WARNING[1258][C-0000001c] chan_sip.c: This function can only be used on SIP channels.
[2017-07-10 19:08:55] ERROR[1258][C-0000001c] res_pjsip_header_funcs.c: This function requires a PJSIP channel.
[2017-07-10 19:08:55] WARNING[1258][C-0000001c] chan_sip.c: This function can only be used on SIP channels.
[2017-07-10 19:08:55] ERROR[1258][C-0000001c] res_pjsip_header_funcs.c: This function requires a PJSIP channel.
[2017-07-10 19:08:55] WARNING[1258][C-0000001c] pbx_functions.c: Can’t find trailing parenthesis for function ‘DB(DEVICE/777/dial’?
[2017-07-10 19:08:55] VERBOSE[1258][C-0000001c] pbx.c: Executing [[email protected]:10] ExecIf(“DAHDI/1-1”, “0?ChanSpy(PJSIP/777,q)”) in new stack
[2017-07-10 19:08:55] WARNING[1258][C-0000001c] chan_sip.c: This function can only be used on SIP channels.
[2017-07-10 19:08:55] ERROR[1258][C-0000001c] res_pjsip_header_funcs.c: This function requires a PJSIP channel.
[2017-07-10 19:08:55] WARNING[1258][C-0000001c] pbx_functions.c: Can’t find trailing parenthesis for function ‘DB(DEVICE/777/dial’?
[2017-07-10 19:08:55] WARNING[1258][C-0000001c] chan_sip.c: This function can only be used on SIP channels.
[2017-07-10 19:08:55] ERROR[1258][C-0000001c] res_pjsip_header_funcs.c: This function requires a PJSIP channel.
[2017-07-10 19:08:55] VERBOSE[1258][C-0000001c] pbx.c: Executing [[email protected]:11] ExecIf(“DAHDI/1-1”, “0?MacroExit()”) in new stack
[2017-07-10 19:08:55] WARNING[1258][C-0000001c] chan_sip.c: This function can only be used on SIP channels.
[2017-07-10 19:08:55] ERROR[1258][C-0000001c] res_pjsip_header_funcs.c: This function requires a PJSIP channel.
[2017-07-10 19:08:55] VERBOSE[1258][C-0000001c] pbx.c: Executing [[email protected]:12] Gosub(“DAHDI/1-1”, “sub-record-check,s,1(exten,777,dontcare)”) in new stack

Are you having issues? These are harmless and you can ignore them.

There are places where FreePBX call flows examine SIP headers Since there are separate dialplan functions for each channel driver, both are run and one will throw the warning that you see.

Hi Lorne,

Thank you for a quick reply.
I am migrating from Elastix 2.5 to FreePBX and would like to make sure that everything works properly before I will replace a production server.

I have no other issues, so as you said I will ignore these warnings and errors.

1 Like

Hi Amstel! But it will be better to solve the occured issues in current situation.

Let’s work on it to verify whats going on.

1 Like