[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sipping] Question regarding SDP 'M' Line



It depends on what you want. If you want to retain audio while sending image, the second example is correct.
 
The first example. i think violates protocol. If you want to re-use an existing media slot, you should have set deleted the media stream first(by setting port to 0; by setting the port to 0 like this, you will loose audio.) before re-using it.
 
RFC 3264 section 8.1
 

8.1 Adding a Media Stream

   New media streams are created by new additional media descriptions
   below the existing ones, or by reusing the "slot" used by an old
   media stream which had been disabled by setting its port to zero.

   Reusing its slot means that the new media description replaces the
   old one, but retains its positioning relative to other media
   descriptions in  the SDP

 
Regards
Harsha

 
On 16/04/2008, Jayantheesh Srimushnam <jayanteeshs at hcl.in> wrote:

Hi All,

 

While adding a new media stream is it MUST to add a new 'M' line in the SDP or existing 'M' line can be replaced with the new one.

Please go through the below specified example and clarify me which is the correct way of implementing?

 

Example 1:

========

 

Initial INVITE:

 

m=audio 7100 RTP/AVP 0 101

a=rtcp:7101

a=sendonly

a=rtpmap:0 PCMU/8000

a=rtpmap:101 telephone-event/8000

 

Re-Invite:

 

m=image 20112 udptl t38

a=T38FaxVersion:0

a=T38MaxBitRate:1440

 

Example 2:

========

 

Initial INVITE:

 

m=audio 7100 RTP/AVP 0 101

a=rtcp:7101

a=sendonly

a=rtpmap:0 PCMU/8000

a=rtpmap:101 telephone-event/8000

 

Re-Invite:

 

m=audio 7100 RTP/AVP 0 101

a=rtcp:7101

a=sendonly

a=rtpmap:0 PCMU/8000

a=rtpmap:101 telephone-event/8000

m=image 5080 udptl t38

c=IN IP4 10.101.210.30

a=T38FaxVersion:0

 

Thanks,

Jayantheesh

_______________________________________________
Sipping mailing list  https://www.ietf.org/mailman/listinfo/sipping
This list is for NEW development of the application of SIP
Use sip-implementors at cs.columbia.edu for questions on current sip
Use sip at ietf.org for new developments of core SIP