Subject: [Sip] G723.1H and G723.1L SDP negotiation

From: "Elison Niven" <[email-masked]>
Date: Fri, 26 Feb 2010 14:22:35 +0530

I apologize for posting to this list as I already posted this on SIP
implementers list but somehow this seems to be the better place to ask.

Hi List,

I know this has been discussed and asked a lot of times in the past but
still I find no affirmative solution.

For a UA that supports both G7231-H and G7231-L, SHOULD it specify both the
codecs in the offer that it sends?

If the UA is willing to specify both the codecs in the offer that it sends
(because it specifies two different codecs in its user interface), what
should be the method of specifying the codecs in the SDP body?

I find two possible ways of specifying both the codecs in the offer:

Case 1: Both codecs use different payload types, one of them uses a dynamic
payload type.
		
		m = audio 8000 RTP/AVP 4 97
            m = rtpmap:4 G723/8000
            m = fmtpmap:4 bitrate=5.3
            m = rtpmap:97 G723/8000
            m = fmtpmap:97 bitrate=6.3

Case 2: Both codecs use the same static payload type.

		m = audio 8000 RTP/AVP 4 4
            m = rtpmap:4 G723/8000
            m = fmtpmap:4 bitrate=5.3
            m = rtpmap:4 G723/8000
            m = fmtpmap:4 bitrate=6.3

Which of the above SDP offers seems valid?

Suppose I receive an answer from UA2 to the offer in Case 1 as:

		m = audio 8000 RTP/AVP 4
            m = rtpmap:4 G723/8000
            m = fmtpmap:4 bitrate=5.3

What should be the payload of the packets that UA2 sends? Should it be 4 or
97?

Best Regards,
Elison