[asterisk-bugs] [Asterisk 0005413]: [patch] [branch] Secure RTP (SRTP)

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Mar 17 01:30:52 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=5413 
====================================================================== 
Reported By:                mikma
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   5413
Category:                   Channels/chan_sip/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     confirmed
Target Version:             1.8
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 48491 
Request Review:              
====================================================================== 
Date Submitted:             2005-10-09 10:36 CDT
Last Modified:              2010-03-17 01:30 CDT
====================================================================== 
Summary:                    [patch] [branch] Secure RTP (SRTP)
Description: 
This patch adds initial support for secure RTP using libsrt[1]. It can
be used in for example an implementation of the sdecriptions draft[2].

[1] http://srtp.sourceforge.net/srtp.html
[2]
http://www.ietf.org/internet-drafts/draft-ietf-mmusic-sdescriptions-12.txt


Update (16/03/2010): Branch against trunk is located here
http://svn.asterisk.org/svn/asterisk/team/group/srtp_reboot

*** IF TESTING, PLEASE USE THE ABOVE BRANCH AND NOT THE PATCHED ATTACHED
TO THIS ISSUE AS THEY ARE OUT OF DATE ***
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0010129 Module SRTP can't loaded
====================================================================== 

---------------------------------------------------------------------- 
 (0119494) hemanshurpatel (reporter) - 2010-03-17 01:30
 https://issues.asterisk.org/view.php?id=5413#c119494 
---------------------------------------------------------------------- 
Further to my testing..i put so many debugging info into code.
and now i amazed seeing that for stream few frames are authenticated
successfully and few frames are failed, even though srtp_t session is
same.

see here

ar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect: Hemanshu:
Unprotecting successfull srtp:f0010f40  with Session:?{??                  
    
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:398 res_srtp_unprotect:
Hemanshu: Unprotecting failed srtp:f0010f40 with Session:?{??              
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:398 res_srtp_unprotect:
Hemanshu: Unprotecting failed srtp:f0010f40 with Session:?{??              
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f0010f40  with Session:?{??        
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:398 res_srtp_unprotect:
Hemanshu: Unprotecting failed srtp:f0010f40 with Session:?{??              
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f0010f40  with Session:?{??        
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f0010f40  with Session:?{??        
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:398 res_srtp_unprotect:
Hemanshu: Unprotecting failed srtp:f0010f40 with Session:?{??              
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f000e450  with Session:??          
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f00080c0  with Session:?|??        
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f000e450  with Session:??          
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f0010f40  with Session:?{??        
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f000e450  with Session:??          
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:398 res_srtp_unprotect:
Hemanshu: Unprotecting failed srtp:f0010f40 with Session:?{??              
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:398 res_srtp_unprotect:
Hemanshu: Unprotecting failed srtp:f0010f40 with Session:?{??              
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f0010f40  with Session:?{??        
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:398 res_srtp_unprotect:
Hemanshu: Unprotecting failed srtp:f0010f40 with Session:?{??              
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f000e450  with Session:??          
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f000e450  with Session:??          
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:398 res_srtp_unprotect:
Hemanshu: Unprotecting failed srtp:f0010f40 with Session:?{??              
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f000e450  with Session:??          
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f000e450  with Session:??          
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f000e450  with Session:??          
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:398 res_srtp_unprotect:
Hemanshu: Unprotecting failed srtp:f0010f40 with Session:?{??              
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f000e450  with Session:??          
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:398 res_srtp_unprotect:
Hemanshu: Unprotecting failed srtp:f000abf0 with Session:??                
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f00080c0  with Session:?|??        
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f000abf0  with Session:0r??        
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f00080c0  with Session:?|??        
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:398 res_srtp_unprotect:
Hemanshu: Unprotecting failed srtp:f000abf0 with Session:0r??              
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f00080c0  with Session:?|??        
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f000abf0  with Session:0r??        
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f00080c0  with Session:?|??        
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f000abf0  with Session:0r??        
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f00080c0  with Session:?|??        
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:398 res_srtp_unprotect:
Hemanshu: Unprotecting failed srtp:f000abf0 with Session:0r??              
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f00080c0  with Session:?|??        
              
[Mar 17 11:52:22] DEBUG[28454]: res_srtp.c:403 res_srtp_unprotect:
Hemanshu: Unprotecting successfull srtp:f000abf0  with Session:0r??        
      


Check the address of srtp and session stuff, for some frames they are
successful and for some they are not.

is this phone's issue?
what could be the problem?


More information about the asterisk-bugs mailing list