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

Michael (JIRA) noreply at issues.asterisk.org
Sat Jan 25 15:42:25 CST 2020


     [ https://issues.asterisk.org/jira/browse/ASTERISK-28715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael updated ASTERISK-28715:
-------------------------------

    Attachment: message-contenttype.patch
                acrobits-message-style.patch

I added two patches. message-contenttype resulting in segfaults... :-(

> 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
>         Attachments: acrobits-message-style.patch, message-contenttype.patch
>
>
> 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