[asterisk-bugs] [JIRA] (ASTERISK-28755) SIP/Stasis: SIP headers not transmitted in the "variables" field

Jean Aunis - Prescom (JIRA) noreply at issues.asterisk.org
Mon Feb 24 10:21:25 CST 2020


Jean Aunis - Prescom created ASTERISK-28755:
-----------------------------------------------

             Summary: SIP/Stasis: SIP headers not transmitted in the "variables" field
                 Key: ASTERISK-28755
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28755
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Channels/chan_pjsip, Core/Stasis
    Affects Versions: 16.3.0
            Reporter: Jean Aunis - Prescom


SIP headers received in an out-of-call SIP MESSAGE can be accessed throw the MESSAGE_DATA function. I expected to also find them in the "variables" field of the TextMessageReceived event.

But it's not the case. The variables list remains empty for inbound SIP messages (tested with both chan_sip and chan_pjsip).

I think It may be due to an improper usage of the "used" data field of the msg_data structure :
{code}
struct msg_data {
	AST_DECLARE_STRING_FIELDS(
		AST_STRING_FIELD(name);
		AST_STRING_FIELD(value);
	);
	unsigned int send; /* Whether to send out on outbound messages */
};
{code}




--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list