Couple of things:

(1) Lines in SDP *must* be either CRLF or LF terminated. In the answer there is 
no termination in the end (either \r\n or \n).
Most implementations accept both CRLF and LF. May be you may want to check with 
Kapanga softphone.

v=0\no=Username 1275190391 1275192604 IN IP4 10.8.155.170\ns=MoTV
[1275190391]\nc=IN IP4 10.8.155.170\nt=0 0\nm=audio 5290\nRTP/AVP 8
101\na=rtpmap:8
pcma/8000\na=sendrecv\na=rtcp:5291\na=maxptime:20\na=ptime:20\na=rtpmap:101
telephone-event/8000\na=fmtp:101 0-11,16\nm=video 5292 RTP/AVP
34\na=rtpmap:34 h263/90000\na=fmtp:34 QCIF=2\na=sendrecv\na=rtcp:5293

(2) There is an extra \n in the audio m= line.

m=audio 5290\nRTP/AVP 8 101\n --------- You have m=audio 5290\n which should 
not be there. This fails the SDP grammer.

Regards,
Somesh

-----Original Message-----
From: sip-implementors-boun...@lists.cs.columbia.edu 
[mailto:sip-implementors-boun...@lists.cs.columbia.edu] On Behalf Of ext Bemali 
Wickramanayake
Sent: Friday, June 04, 2010 9:13 AM
To: sip-implementors@lists.cs.columbia.edu
Subject: [Sip-implementors] SDP Negotiations fail

Hi,
I have made a custom SDP application using RTC client, and we are testing it
with Kapanga softphone.
The problem we encountered is that it fails when it comes to SDP
negotiations.
The sample SDPs we have used to negotiate were (Kapanga generates its own
SDP)

Offer: (from Kapanga)

v=0
o=Username 1275190405 1275196871 IN IP4 10.8.148.173
s=Kapanga [1275190405]
c=IN IP4 10.8.148.173
t=0 0
m=audio 5274 RTP/AVP 0 8 101
a=rtpmap:0 pcmu/8000
a=sendrecv
a=rtcp:5275
a=maxptime:20
a=ptime:20
a=rtpmap:8 pcma/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15,36
m=video 5276 RTP/AVP 34
a=rtpmap:34 h263/90000
a=fmtp:34 QCIF=2
a=sendrecv
a=rtcp:5277



Answer

v=0\no=Username 1275190391 1275192604 IN IP4 10.8.155.170\ns=MoTV
[1275190391]\nc=IN IP4 10.8.155.170\nt=0 0\nm=audio 5290\nRTP/AVP 8
101\na=rtpmap:8
pcma/8000\na=sendrecv\na=rtcp:5291\na=maxptime:20\na=ptime:20\na=rtpmap:101
telephone-event/8000\na=fmtp:101 0-11,16\nm=video 5292 RTP/AVP
34\na=rtpmap:34 h263/90000\na=fmtp:34 QCIF=2\na=sendrecv\na=rtcp:5293



I have included newline characters in order to facilitate the procedure of
combining the entire SDP header into one CString.



What's the wrong with above??
_______________________________________________
Sip-implementors mailing list
Sip-implementors@lists.cs.columbia.edu
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

_______________________________________________
Sip-implementors mailing list
Sip-implementors@lists.cs.columbia.edu
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to