[Freeswitch-users] 415 Unsupported Media Handling
Jerry Richards
jerry.richards at teotech.com
Fri Feb 26 10:57:06 PST 2010
I have two types of devices, one supports text/html MESSAGE content and one
that only supports text/plain MESSAGE content. When I send an IM from the
first to the second, the second replies with 415 Unsupported Media Type (as
shown below). Section 8.1.3.5 of RFC 3261 says the sender should retry
using the media type acceptable to the receiver (in this case: plain/text).
The problem I have is that Freeswitch doesn't pass the error back to the
sender (nor does it retry itself using plain/text). So the IM is lost.
Does anyone see the reason why the error is not being handled correctly?
------------------------------------------------------------------------
send 668 bytes to udp/[192.168.72.141]:5062 at 18:43:24.720446:
------------------------------------------------------------------------
MESSAGE sip:5398 at 192.168.72.141:5062 SIP/2.0
Via: SIP/2.0/UDP 192.168.72.141;rport;branch=z9hG4bKXg6SNUcQa5Kre
Max-Forwards: 70
From: "5382 on 141" <sip:5382 at 192.168.72.141>;tag=66661130
To: "5398" <sip:5398 at 192.168.72.141:5062>
Call-ID: a9891a15-9da9-122d-b3ad-003048d7e9f0
CSeq: 127444135 MESSAGE
Contact: <sip:mod_sofia at 192.168.72.141:5060>
User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-32M
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, precondition, path, replaces
Content-Type: text/html
Content-Length: 63
<font size="2" face="Arial">hello this is Jerry from Teo</font>
------------------------------------------------------------------------
recv 459 bytes from udp/[192.168.72.141]:5062 at 18:43:24.728390:
------------------------------------------------------------------------
SIP/2.0 415 Unsupported media type
Via: SIP/2.0/UDP
192.168.72.141;rport=5060;branch=z9hG4bKXg6SNUcQa5Kre;received=192.168.72.14
1
From: "5382 on 141" <sip:5382 at 192.168.72.141>;tag=66661130
To: "5398" <sip:5398 at 192.168.72.141:5062>
Call-ID: a9891a15-9da9-122d-b3ad-003048d7e9f0
CSeq: 127444135 MESSAGE
Date: Fri, 26 Feb 2010 18:43:24 GMT
User-Agent: MobilityGateway-2.0.34078
Server: MobilityGateway-2.0.34078
Accept: text/plain
Content-Length: 0
Best Regards,
Jerry
More information about the FreeSWITCH-users
mailing list