First of all, I’m not very experienced with Asterisk… at all. We’ve just made a little setup where we can call with our devices through SIP, everything works fine.
But we want an implementation for SCAIP (social care alarm internet protocol), which basically is SIP + XML. We enabled the option that our alarm device is calling with SCAIP, but it doesn’t work.
It’s giving a 415 Unsupported Media Type error (Content-Type is application/scaip+xml). Now my question:
Is there a way to add a new media type somewhere?
Where do calls/messages get handled?
At what point in the code does it decide to give this error?
If it’s possible I would like to be given some files/functions where I can find this stuff. I hope I made myself clear enough. Thanks in advance!
Update: The request is a MESSAGE request (instant message). Is it true that Asterisk only allows instant message with media type “text/plain”? If so, is it recommended to add some lines in the source code so he can support another media type?
I edited the c code in the res_pjsip_messaging.c file and added an OR bit of logic to accept scaip+xml to get pass this step and that solved the 415 error coming back
Hello, I’m new to Asterisk and I would like to ask if there have been any updates regarding the integration of the SIP+xml content type.
At the moment, I’m considering modifying the source code manually to make Asterisk accept this content type. However, I assume that with every new Asterisk update, I would need to reapply the same modifications.
Could you please confirm if my understanding is correct? Also, is there any recommended or cleaner approach to handle this?