[asterisk-bugs] [Asterisk 0014900]: [SRTP branch] RTP Read error: Success: Hanging up. If res_timing_pthread.so is loaded

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Apr 14 16:08:57 CDT 2009


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=14900 
====================================================================== 
Reported By:                vrban
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14900
Category:                   Channels/chan_sip/NewFeature
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-04-14 16:08 CDT
Last Modified:              2009-04-14 16:08 CDT
====================================================================== 
Summary:                    [SRTP branch] RTP Read error: Success: Hanging up.
If res_timing_pthread.so is loaded
Description: 
Phone for this test: snom 320 FW_7.3.14

If the res_timing_pthread.so is loaded, rtp.c hangup the channel
beacause:

[Apr 14 22:40:50] DEBUG[29841]: res_srtp.c:301 res_srtp_unprotect: SRTP
unprotect: authentication failure
WARNING[29727]: rtp.c:1723 ast_rtp_read: RTP Read error: Success. Hanging
up.

But this i a bit hasty, because this happen only with the very first frame
that is comming from the phone. All following ones are ok. (tested this by
replacing return NULL; with return &ast_null_frame;)

Then you get the warning only once, and the srtp audio is ok between
ast<->snom

UPDATE:
this issue has it's origin probably here:
res_srtp_unprotect: SRTP unprotect: authentication failure

and again only the very first frame from the snom phone caused
the "RTP unprotect: authentication failure"

so there are two options, let the ast_rtp_read function from rtp.c be a
bit more relaxed, and hangup only if there are more the one bad frames from
the phone consecutively and/or let snom check if they do something wrong
with there first srtp packet they send to asterisk. 

this issue has been also reported in 14649 by me. But was closed because i
did a formal error using this bug tracker. if i do again a formal error,
then please correct it instead of just closing the report please.

this report is certainly for twilson

p.s. a category Channels/chan_sip/SRTP would be useful 
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-14 16:08 vrban          New Issue                                    
2009-04-14 16:08 vrban          Asterisk Version          => SVN             
2009-04-14 16:08 vrban          Regression                => No              
2009-04-14 16:08 vrban          SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list