Queue This function can only be used on SIP channels

Hi, guys i have this error on FreePbx chan_sip.c:22193 func_header_read: This function can only be used on SIP channels. this errror only is show when Queque received a call

Version: 10.13.66-13
Asterisk: 11.25.1

Error:

 -- Executing [[email protected]:33] Set("Local/[email protected];2", "CDR(cnum)=1201") in new stack
    -- Executing [[email protected]:34] Set("Local/[email protected];2", "CHANNEL(language)=es") in new stack
    -- Executing [[email protected]:2] Set("Local/[email protected];2", "RingGroupMethod=none") in new stack
    -- Executing [[email protected]:3] Set("Local/[email protected];2", "__EXTTOCALL=1933") in new stack
    -- Executing [[email protected]:4] Set("Local/[email protected];2", "__PICKUPMARK=1933") in new stack
    -- Executing [[email protected]:5] Set("Local/[email protected];2", "RT=") in new stack
[2017-01-26 10:25:05] WARNING[5720][C-00000130]: chan_sip.c:22193 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:6] ExecIf("Local/[email protected];2", "0?Macro(vm,novm,DIRECTDIAL,)") in new stack
[2017-01-26 10:25:05] WARNING[5720][C-00000130]: chan_sip.c:22193 func_header_read: This function can only be used on SIP channels.
[2017-01-26 10:25:05] WARNING[5720][C-00000130]: chan_sip.c:22193 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:7] ExecIf("Local/[email protected];2", "0?MacroExit()") in new stack
[2017-01-26 10:25:05] WARNING[5720][C-00000130]: chan_sip.c:22193 func_header_read: This function can only be used on SIP channels.
    -- Executing [[email protected]:8] Gosub("Local/[email protected];2", "sub-record-check,s,1(exten,1933,dontcare)") in new stack
    -- Executing [[email protected]:1] GotoIf("Local/[email protected];2", "4?initialized") in new stack
    -- Goto (sub-record-check,s,10)

It’s not an error it is a WARNING. Ignore them. If you care about the technicalities, the context [macro-exten-vm] checks the chan_sip header for certain values, but since you not using a chan_sip channel a warning is triggered. I assume you are using a chan_pjsip extension.

i am using normal chan_sip

Nope.

You’re using a Queue, which is talking through the LOCAL interface.

Ok, and I have to do to normalize this, because the bpx was not made changes and the error appeared from nowhere

The simplest solution is to ignore it. Your calls are going through and everything should be working fine.

Yes, there is a warning, but it’s not impacting any of your calls or operations. Also, it HAS probably been doing this since your last upgrade at least.

One more time - it is not an error it is a warning. Submit an Issues ticket asking for the warning to be suppressed and see if the guys will fix it. Be warned - this is going to be one of the lowest priority tickets in the system because it has no effect on anything unless you are scanning though the log files.

ok, thanks for your time and help!