[asterisk-bugs] [Asterisk 0019251]: [patch] Framehooks ast_indicate_data Incorectly uses "read" this should be "write"

Asterisk Bug Tracker noreply at bugs.digium.com
Mon May 9 09:09:40 CDT 2011


The following issue has been RESOLVED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19251 
====================================================================== 
Reported By:                irroot
Assigned To:                mnicholson
====================================================================== 
Project:                    Asterisk
Issue ID:                   19251
Category:                   Channels/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Asterisk Version:           1.8.4-rc3 
JIRA:                        
Regression:                 No 
Reviewboard Link:           https://reviewboard.asterisk.org/r/1116 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2011-05-09 05:20 CDT
Last Modified:              2011-05-09 09:09 CDT
====================================================================== 
Summary:                    [patch] Framehooks ast_indicate_data Incorectly uses
"read" this should be "write"
Description: 
A framehook has 2 events relating to frames read/write

a frame hook on a bridged channel can look at the write events to see the
packets coming into [read] on the peer.

the problem with control frames is they are not sent across the bridge
using a ast_write but a ast_indicate_data so to see these packets framehook
events are triggered in ast_indicate_data ... these are WRITE not READ
events and causes most peculiar results ...

in addition there is no certainty a AST_FRAME_CONTROL will be sent back
perhaps a AST_FRAME_NULL or someother frame .... i add a sanity check ...

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0019215 [patch] Framehook Segfaults on indicate
related to          0013405 [patch] T38 gateway
====================================================================== 

---------------------------------------------------------------------- 
 (0134653) svnbot (reporter) - 2011-05-09 09:09
 https://issues.asterisk.org/view.php?id=19251#c134653 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 318142

U   branches/1.8/main/channel.c

------------------------------------------------------------------------
r318142 | mnicholson | 2011-05-09 09:09:39 -0500 (Mon, 09 May 2011) | 9
lines

Make indicate/control frames WRITE events on framehooks.  Also, if a
framehook
returns a non-control frame, don't forward it to the channel.

(closes issue https://issues.asterisk.org/view.php?id=19251)
Reported by: irroot
Patches:
      (modified) framehook_indicate.patch2 uploaded by irroot (license 52)
Tested by: irroot

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=318142 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-09 09:09 svnbot         Note Added: 0134653                          
2011-05-09 09:09 svnbot         Status                   ready for review =>
assigned
2011-05-09 09:09 svnbot         Assigned To               => mnicholson      
2011-05-09 09:09 svnbot         Status                   assigned => resolved
2011-05-09 09:09 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list