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

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Feb 26 12:22:32 CST 2009


The following issue is now in status NEW (again) 
====================================================================== 
http://bugs.digium.com/view.php?id=12485 
====================================================================== 
Reported By:                bamby
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12485
Category:                   Channels/chan_sip/CodecHandling
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
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-02-26 12:22 CST
====================================================================== 
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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-02-26 12:22 tilghman       Status                   feedback => new     
======================================================================




More information about the asterisk-bugs mailing list