On Tue, Jan 24, 2017, at 01:25 PM, Dan Cropp wrote: > I place a call into Asterisk (from SIP phone) and the To header does not > have a tag. Asterisk then sends it's Trying response, still no tag in > the To header. The phone then replies with OK, this time the To header > includes a tag. > > Is there any way to retrieve this response To header (including the tag > field) from the dial plan? > I have tried the PJSIP-HEADER read of the To header, but it seems to only > have access to the initial To header. > I even tried reading multiple layers of the To header, but it still > didn't retrieve the newer dialog To headers.
The PJSIP_HEADER dialplan function currently only looks at the initial message. It does not allow access to subsequent ones. -- 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 -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users