error in jain sip sdp parser ???

Vladimir Bashin <[email protected]> Tue, 23 Jan 2007 20:39:52 +0000 (UTC)
Newsgroups gmane.comp.voip.nist-sip
Message-ID <[email protected]>
Hello everybody – 

I am trying to use the following code for parsing the sdp that comes with the 
InviteOK from the Cisco 7960 sip phone: 

SessionDescription sessionDescription = null;
   try {
           sessionDescription = sdpFactory.createSessionDescription
(incomingSdpBody);

           //Get the remote address where the user agent has to connect to
          Connection remoteConnection = sessionDescription.getConnection();
………………
	}


The line below returns null - both with the older Jain Sip 1.1 and 1.2 code - 
is that a bug!!!!

	Connection remoteConnection = sessionDescription.getConnection();  

Here is the SDP body I'm talking about:

v=0
o=Cisco-SIPUA 1180 0 IN IP4 169.136.84.67
s=SIP Call
t=0 0
m=audio 16644 RTP/AVP 0 8 18 101
c=IN IP4 169.136.84.67
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/0
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv


Thanks a lot for your help.

 Regards,
 Vladimir