When my SIP client receives an INVITE request, it always responds with "415 Unsupported Media Type". This happens even before my client receives any event, so probably somewhere in the internal SIP layer.
I found some topics about this mentioning different causes: it could be a malformed packet, or the specified multimedia codec is not supported. Which one is it? And more importantly, how do I get my client to accept the INVITE, or at least let it go through the SIP layer and generate an event?
I'm using X-Lite to send the INVITE packet below to my client:
A similar problem occurs when my client sends an INVITE to X-Lite: only this time X-Lite responds with "488 Not Acceptable Here". This response also seems to be related to the specified codec. This is the outgoing INVITE sent by my client:Code:(...) CSeq: 1 INVITE Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO Content-Type: application/sdp User-Agent: X-Lite release 1006e stamp 34025 Content-Length: 233 v=0 o=- 3 2 IN IP4 192.168.0.72 s=CounterPath X-Lite 3.0 c=IN IP4 192.168.0.72 t=0 0 m=audio 54096 RTP/AVP 3 101 a=alt:1 1 : Yc+uzfl3 lXbNg9xE 192.168.0.72 54096 a=fmtp:101 0-15 a=rtpmap:101 telephone-event/8000 a=sendrecv
Code:(...) CSeq: 2691 INVITE s: subject Max-Forwards: 70 Proxy-Authorization: Digest Content-Type: application/sdp Content-Length: 156 v=0 o=user 3388808738 3388808739 IN IP4 194.1.1.1 s=SipSession c=IN IP4 194.1.1.1 t=0 0 m=audio 1312 RTP/AVP 3 a=rtpmap:3 gsm 06.10/8000

When I changed it from "e42e841a" to "E42E841A", it worked.




