Re: SDP - several format descriptions in same MediaDescription?
"M. (Neo-Ranga) Ranganathan" <[email protected]> Tue, 18 Sep 2007 11:05:37 -0400
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <[email protected]> |
Roberto, Can you transfer this discussion onto user@jain-sip on java.net. Yeah the way you describe is the way to do it at present. The semantics of setXXX works as expected (i.e. replace the original field). May be more confusing to read the sdp but it works and changing the behavior of set will confuse those that expect setXXX to work a certain way. You can consider changing the way in which the sdp structure is encoded perhaps but really I would consider it not a worthy use of time. Regards, Ranga On 9/18/07, Roberto Mier Escandón <[email protected]> wrote: > > > Hi: > > Does anybody tried to include several formats in same media description > using nist-sip?. This is, I've tried to do, for example: > > m=audio 10001 RTP/AVP 0 8 > a=rtpmap:0 PCMU/8000 > a=rtpmap:8 PCMA/8000 > > but, second attribute rtpmap deletes first one when using > MediaDescription.setAttribute() method, and the sent sdp is like > > m=audio 10001 RTP/AVP 0 8 > a=rtpmap:8 PCMA/8000 > > > The only way to do similar to this is to create two MediaDescription > objects and send them separated, like this: > > m=audio 10001 RTP/AVP 0 8 > a=rtpmap:0 PCMU/8000 > m=audio 10001 RTP/AVP 0 8 > a=rtpmap:8 PCMA/8000 > > But this last sdp is more confused to be read. Does Anyone knows a > solution to include several media formats into the same MediaDescription > object. > > Thank you. > > > -------------------------------- > Roberto Mier Escandón > [email protected] > P. T. Boecillo > Tlf: *983 548 063* > ·········································· > División 5213 > *Arquitecturas de referencia de plataformas para las nuevas redes* > > http://www.tid.es > > _______________________________________________ > nist-sip mailing list > [email protected] > http://www-x.antd.nist.gov/mailman/listinfo/nist-sip > > -- M. Ranganathan "There are two ways to write error-free programs; only the third one works." -- Alan Perlis http://www.animenewsnetwork.com/encyclopedia/anime.php?id=1052 _______________________________________________ nist-sip mailing list [email protected] http://www-x.antd.nist.gov/mailman/listinfo/nist-sip
logo.gif
(image/gif, 1.2 KB) - not displayed