[asterisk-bugs] [JIRA] (ASTERISK-28715) Setting Content-Type header in MessageSend application by using PJSIP

Asterisk Team (JIRA) noreply at issues.asterisk.org
Sat Jan 25 15:39:25 CST 2020


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

Asterisk Team commented on ASTERISK-28715:
------------------------------------------

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

> Setting Content-Type header in MessageSend application by using PJSIP
> ---------------------------------------------------------------------
>
>                 Key: ASTERISK-28715
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28715
>             Project: Asterisk
>          Issue Type: New Feature
>      Security Level: None
>          Components: Resources/res_pjsip_messaging
>    Affects Versions: 16.6.2
>            Reporter: Michael
>
> Following scenario: I'm using Acrobit Groundwire on 2 iPhones to do SIMPLE SIP messaging over my Asterisk instance. The problem is I cannot use the composing notification as well as the delivery notification and an additional media service for exchanging photos because the use Content-Type header like "application/*".
> Problem:
> Asterisk normally allows only "text/plain" on SIMPLE SIP messages when using not in an dialog. I disabled this check and allow also the application/* content type.
> Now Asterisk accepts the content type but always adding a secondary header with "text/plain" even a Content-Type is already present in the SIP message. This breaks the correct handling of the message by the client because it handles the message wrong because of the "text/plain" header.
> Implementing this in res_pjsip_messaging.c results in a massive segfault where I don't know why (documentation is to rare to find out why).
> Thats why I'm requesting to set the content-type from the dialplan. Perhaps somebody else is more a C developer than me (coming from the JAVA-World but C knowledge).



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



More information about the asterisk-bugs mailing list