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

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Sun Jan 26 06:12:25 CST 2020


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

Joshua C. Colp closed ASTERISK-28715.
-------------------------------------

    Resolution: Duplicate

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