Dan Cropp wrote:
I am trying to set add a SIP Header to a call before adding it to the Queue.

The dial plan sends the call to my macro to perform the work. When I use
chan_sip, everything works as expected. When I use PSJIP support, it’s
not adding the SIP header.

Looking at the output, I see the macro is called in both cases. In the
PJSIP case, the added sip header never is showing up in the asterisk
logs (verbose 999). In the SIP case, I see it.

Does the function Set(PJSIP_HEADER(add, ….. not transfer over to the
call when the Queue function is called?

Am I calling the Set(PJSIP_Header(add portion incorrectly? Or is this a
problem with the Asterisk PJSIP support?

PJSIP_HEADER works on the channel it is invoked on. SIPAddHeader does things differently and uses channel variables underneath which can be inherited. What is the exact call flow and where do you expect the headers to appear?

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to