[Sip] Codec Negotiation and renegotiataion

atul garg <shivalk_80@yahoo.co.in> Wed, 13 July 2011 15:29 UTC

Return-Path: <shivalk_80@yahoo.co.in>
X-Original-To: sip@ietfa.amsl.com
Delivered-To: sip@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DB14321F888A for <sip@ietfa.amsl.com>; Wed, 13 Jul 2011 08:29:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.002
X-Spam-Level:
X-Spam-Status: No, score=0.002 tagged_above=-999 required=5 tests=[BAYES_50=0.001, HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QuBP-Qhu+Tva for <sip@ietfa.amsl.com>; Wed, 13 Jul 2011 08:29:45 -0700 (PDT)
Received: from nm2.bullet.mail.in.yahoo.com (nm2.bullet.mail.in.yahoo.com [121.101.151.224]) by ietfa.amsl.com (Postfix) with SMTP id 4741F21F8888 for <sip@ietf.org>; Wed, 13 Jul 2011 08:29:44 -0700 (PDT)
Received: from [121.101.151.238] by nm2.bullet.mail.in.yahoo.com with NNFMP; 13 Jul 2011 15:29:52 -0000
Received: from [121.101.151.235] by tm3.bullet.mail.in.yahoo.com with NNFMP; 13 Jul 2011 15:30:21 -0000
Received: from [127.0.0.1] by omp1004.mail.in.yahoo.com with NNFMP; 13 Jul 2011 15:29:40 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 455222.56980.bm@omp1004.mail.in.yahoo.com
Received: (qmail 65020 invoked by uid 60001); 13 Jul 2011 15:29:40 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1310570980; bh=V3AleTZuNihh4VUmRk/2TXsRHI+Nb0H6ojJuFgMfHJM=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=pIHBSrBEKHEmShB2ArcGNVddwdBeOFrBmMlrH/qe8EJkzOEw6ne0rWYB1LI7q63UbU0mVyEQoLWG8kqCaJoob5jZ1h2XzI6pekSCw7wbBCY4A41vbqCYABE1z+cY0LUBOBksH8RwzdLbOvVBQxwDjNVD9jvjNex/D6AuPk+7eh8=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=QsSo9zlNuHM/10pBYbjMqrYyMrO3UHfrP1D1pbg5tFM551W/vKCeryrSJC2gotOeVZP1/SlelrXjx4fJ7Z5/tmXBv66UbalBafentCX6uJfha+vLqWtm7E8D32Fk9r6uQ2zbzran6pwbysGmCWy0nyhfRK2gXUeq1Q5QQCUAdv4=;
X-YMail-OSG: .1CcdOUVM1mljheJ.ZaHjOMyDaJC7MJFP4yksetfIxBgODI mbKXw16pBwMbTR3cE.jPPDynQX5kIJuPUS4TxarsvSILC73lWbDcVj5DPks9 RJAs_4i3VAJBPQ6G_8VjAYfOPqeiRC4FBSiQGIZHYi9K4y4bULjq6HUvAkYK 6d2veBPrB9_786j4jJbTtTWKrcXEm8SDpZDayS06OBCkiXcvmHTkD_TsNPBD nvrIYRnCkQQksV00dXqHm7b.sKmqCTAFzyyi.6b.JUu.Mj4aFE.TyXklDl_D emoMysbZ0hY0QdzFoYv1WKyOHlHnM77aLmrOHlo8TJvmnAMKGJVFQJNu39iD J5.anNj7iUcrtvWCSZ1ZXulFAwDaf
Received: from [59.161.81.204] by web94802.mail.in2.yahoo.com via HTTP; Wed, 13 Jul 2011 20:59:40 IST
X-Mailer: YahooMailClassic/14.0.3 YahooMailWebService/0.8.112.307740
Message-ID: <1310570980.43882.YahooMailClassic@web94802.mail.in2.yahoo.com>
Date: Wed, 13 Jul 2011 20:59:40 +0530
From: atul garg <shivalk_80@yahoo.co.in>
To: sip@ietf.org
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-644347746-1310570980=:43882"
Subject: [Sip] Codec Negotiation and renegotiataion
X-BeenThere: sip@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Session Initiation Protocol <sip.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sip>, <mailto:sip-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/sip>
List-Post: <mailto:sip@ietf.org>
List-Help: <mailto:sip-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sip>, <mailto:sip-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 13 Jul 2011 15:29:49 -0000

Hello All,
 
I have very basic question regarding the codec negotiation in SIP, I will try to summarize my queries below -
 
1) If A is initiating the call and sending the supported codec list say (1,2,3)
     
    A -->  INVITE (SDP-> audio 1 2 3) --> B      ( B supports 1 , 3, 5)
    A <--  200 OK ( SDP -> what will be here 1, 2 ,3 OR 1, 3, 5)  <-- B
 
   if it is 1, 3, 5 then what will be the response to B ??
 
2)  If A is initiating the call and sending the supported codec list say (1,2,3)
     
    A -->  INVITE (SDP-> audio 1 2 3) --> B      ( B supports  2 , 3, 5)
    A <--  200 OK ( SDP -> what will be here 2 , 3 OR  2 , 3, 5)  <-- B
 
   if it is 2 , 3  then what will be the response to B ??
   if it is 2 , 3, 5  then what will be the response to B ??
 
3)  If A is initiating the call and sending the supported codec list say (1,2,3)
     
    A -->  INVITE (SDP-> audio 1 2 3) --> B      ( B supports  4, 5,6)
    A <--  200 OK ( SDP -> what will be here ??)  <-- B
  and what will be the d behaviour of A ....
   
4) Re-Negotiation -
 
   If A is initiating the call and sending the supported codec list say (1,2,3)
     
    A -->  INVITE (SDP-> audio 1 2 3) --> B      ( B supports 1 , 2, 3)
    A <--  200 OK ( SDP audio1, 2 ,3   <-- B
    A --> ACK --> B
 
( I guess the rtp will use codec 1)
 
  Now during the call say A wants to change the codec to 2, will it send the re-invite or SDP session has some provision for it( I just want to confirm, is it possible to change the codec without sending any SIP message)
 
PS: I know i have made a lengthy mail, but  it is very much required for me to understand some network behaviour and implementation.
 
Regards
Atul