[asterisk-bugs] [Asterisk 0012485]: [patch] Answer preferred codec only in SIP response

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Mar 24 15:01:31 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12485 
====================================================================== 
Reported By:                bamby
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   12485
Category:                   Channels/chan_sip/CodecHandling
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2008-04-21 02:58 CDT
Last Modified:              2009-03-24 15:01 CDT
====================================================================== 
Summary:                    [patch] Answer preferred codec only in SIP response
Description: 
There is a following situation. The third party SIP gateway sends to
Asterisk INVITEs with codecs A and B in that order. Asterisk answers the
same A and B codecs. But gateway has internal policy to prefer the codec B
if possible and so it immediately sends reINVITE with codec B only. This is
undesirable behavior for the system. However Asterisk cannot be limited to
codec A only as there can be INVITEs with codec B only from the gateway and
they should be handled as well. The task is to avoid codec B when it is
possible at asterisk.

It would be nice that Asterisk is able to answer the most preferred codec
only in SIP response. This leaves no choice to the SIP gateway and thus the
reINVITEs are suppressed.

I've developed a patch that adds a global option to sip.conf that causes
the Asterisk to include the most preferred codec only in response.
====================================================================== 

---------------------------------------------------------------------- 
 (0102144) svnbot (reporter) - 2009-03-24 15:01
 http://bugs.digium.com/view.php?id=12485#c102144 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 183995

U   trunk/CHANGES
U   trunk/channels/chan_sip.c
U   trunk/configs/sip.conf.sample

------------------------------------------------------------------------
r183995 | dvossel | 2009-03-24 15:01:30 -0500 (Tue, 24 Mar 2009) | 10
lines

SIP preferred codec only feature

Added an option to respond to a SIP invite with only the single most
preferred joint codec.  This limits the options of what codecs the other
side can use.

(closes issue http://bugs.digium.com/view.php?id=12485)
Reported by: bamby
Review: http://reviewboard.digium.com/r/206/



------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=183995 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-24 15:01 svnbot         Note Added: 0102144                          
======================================================================




More information about the asterisk-bugs mailing list