[asterisk-bugs] [JIRA] (ASTERISK-26082) res_pjsip_messaging: MessageSend Content-Type can't be changed
Sean Bright (JIRA)
noreply at issues.asterisk.org
Mon Jan 27 10:22:25 CST 2020
[ https://issues.asterisk.org/jira/browse/ASTERISK-26082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=249558#comment-249558 ]
Sean Bright edited comment on ASTERISK-26082 at 1/27/20 10:21 AM:
------------------------------------------------------------------
[~mobster], can you try the [attached patch|^0001-res_pjsip_messaging-Don-t-allow-multiple-Content-Typ.patch] and let us know if it resolves this?
*Edit:* Disregard. I see that it won't fix the problem. I will take another whack at it.
was (Author: seanbright):
[~mobster], can you try the [attached patch|^0001-res_pjsip_messaging-Don-t-allow-multiple-Content-Typ.patch] and let us know if it resolves this?
Disregard. I see that it won't fix the problem. I will take another whack at it.
> res_pjsip_messaging: MessageSend Content-Type can't be changed
> --------------------------------------------------------------
>
> Key: ASTERISK-26082
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-26082
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_pjsip_messaging
> Affects Versions: 13.9.1
> Reporter: Alex
> Assignee: Michael
> Severity: Minor
> Labels: patch
> Attachments: 0001-res_pjsip_messaging-Don-t-allow-multiple-Content-Typ.patch, res_pjsip_messaging.patch
>
>
> Basically, when trying to override Content-Type, we get following sent:
> {noformat}
> <--- Transmitting SIP request (667 bytes) to ... --->
> MESSAGE sip:... SIP/2.0
> Via: SIP/2.0/UDP ...
> From: <sip:...>;tag=...
> To: <sip:...>
> Contact: <sip:...>
> Call-ID: ftXWZRVPgfw3BNe8rV6KlWJJS40fbV.l
> CSeq: 15177 MESSAGE
> Event: snom-settings
> Content-Type: application/xml
> Max-Forwards: 70
> User-Agent: FPBX-AsteriskNOW-13.0.120(13.9.1)
> Content-Type: text-plain
> Content-Length: 170
> <content>
> {noformat}
> Please notice the duplicated Content-Type header. First it's proper one, set with MESSAGE_DATA(Content-Type), and then another one is wrongly inserted from ast_sip_body structure, which defaults to text/plain.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list