[asterisk-bugs] [Asterisk 0017855]: Asterisk with SRTP Record and Playback Issue

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Aug 13 01:25:14 CDT 2010


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17855 
====================================================================== 
Reported By:                hemanshurpatel
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17855
Category:                   Resources/res_srtp
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           Older Addons - please test a newer version 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-08-13 01:25 CDT
Last Modified:              2010-08-13 01:25 CDT
====================================================================== 
Summary:                    Asterisk with SRTP Record and Playback Issue
Description: 
I am using asterisk successfully with SRTP for Calling.
I havent tested my installation for record and playback since i added SRTP
support to it.
i have configured extention 999 for record task:

exten => 999,1,Set(_SIPSRTP_CRYPTO=enable)
exten => 999,n,Set(_SIPSRTP=1)
exten => 999,n,Answer
exten => 999,n,Record(hemu.ulaw)
exten => 999,n,Hangup


When i call 999, application receives INVITE packet with crypto tag in
SDP. I am using Grandstream GVX3410 phone which supports SRTP.Apllication
process the message, Process_crypto function call and call is established.
I mean asterisk starts recording, but while recording in rtp_recvfrom
function, rtp->srtp == NULL and so it doesnt decrypt the packets. Stores
packet as it is.

and same happens while playback, and so packet which asterisk sends while
playback are encyrpted with tags of recording call, so its just blank
screen and Noise on speakers.

What extra happens in normal call is that asterisk also processes 200 OK
with crypto header and so it calls process_crypto function two times while
in record and playback function it calls those function one time only.

Anyone has got same problem?

regards
Hemanshu Patel
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-08-13 01:25 hemanshurpatel Asterisk Version          => Older Addons -
please test a newer version
2010-08-13 01:25 hemanshurpatel Regression                => No              
2010-08-13 01:25 hemanshurpatel SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list