[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 Mar 2 07:59:25 CST 2020
[ https://issues.asterisk.org/jira/browse/ASTERISK-28755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=249867#comment-249867 ]
Jean Aunis - Prescom commented on ASTERISK-28755:
-------------------------------------------------
It's working. I tested with both chan_sip and chan_pjsip, "variables" contains all SIP headers.
> 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
> Assignee: Kevin Harwell
>
> 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