[asterisk-users] Asterisk 14.2.1 PJSIP - is it possible to retrieve a PJSIP header To field for the SIP OK response to Trying?

Joshua Colp jcolp at digium.com
Tue Jan 24 11:27:26 CST 2017


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



More information about the asterisk-users mailing list