[asterisk-bugs] [Asterisk 0018674]: [patch] Unable to choose which SRTP suite to offer

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Feb 2 08:12:26 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18674 
====================================================================== 
Reported By:                bbeers
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18674
Category:                   Channels/chan_sip/SRTP
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 303637 
Request Review:              
====================================================================== 
Date Submitted:             2011-01-25 09:56 CST
Last Modified:              2011-02-02 08:12 CST
====================================================================== 
Summary:                    [patch] Unable to choose which SRTP suite to offer
Description: 
Setting encryption=yes in sip.conf will cause asterisk to
 generate a line in SIP INVITE SDP:

 a=crypto: AES_CM_128_HMAC_SHA1_80 ...

There is no way to specify that asterisk should offer
 AES_CM_128_HMAC_SHA1_32 instead of
 AES_CM_128_HMAC_SHA1_80.

====================================================================== 

---------------------------------------------------------------------- 
 (0131390) bbeers (reporter) - 2011-02-02 08:12
 https://issues.asterisk.org/view.php?id=18674#c131390 
---------------------------------------------------------------------- 
This:

a=crypto:1 OFF inline:83/tqfQYLydlotymyiAv+x/WSWWw6yKsAJVly3Tn

and this:

#
[Feb 1 15:34:46] VERBOSE[24428] chan_sip.c: == Encrypted Media is
required, offering suite 2.
#
[Feb 1 15:34:46] VERBOSE[24428] chan_sip.c: == Invalid SRTP_CRYPTO_SUITE =
2.
#
[Feb 1 15:34:46] VERBOSE[24428] sip/sdp_crypto.c: == Selecting 'OFF' for
srtp crypto offer.

from your first trace indicates the problem. 

I changed the offset of the srtp tructure's suite bits to allow for 4
options,
 and forgot to change the offset.

New patch to follow. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-02 08:12 bbeers         Note Added: 0131390                          
======================================================================




More information about the asterisk-bugs mailing list