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

Friendly Automation (JIRA) noreply at issues.asterisk.org
Wed Mar 4 06:13:26 CST 2020


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=249899#comment-249899 ] 

Friendly Automation commented on ASTERISK-28755:
------------------------------------------------

Change 13843 merged by Joshua Colp:
message & stasis/messaging: make text message variables work in ARI

[https://gerrit.asterisk.org/c/asterisk/+/13843|https://gerrit.asterisk.org/c/asterisk/+/13843]

> 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