[asterisk-bugs] [DAHDI-linux 0016831]: [patch] adding ss7 pcap support to dahdi

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Oct 5 18:14:17 CDT 2010


The following issue requires your FEEDBACK. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16831 
====================================================================== 
Reported By:                tsearle
Assigned To:                
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   16831
Category:                   NewFeature
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
JIRA:                        
Reviewboard Link:            
====================================================================== 
Date Submitted:             2010-02-15 16:20 CST
Last Modified:              2010-10-05 18:14 CDT
====================================================================== 
Summary:                    [patch] adding ss7 pcap support to dahdi
Description: 
as per the thread on the libss7 mailing list

1. changes to the dahdi driver to add ioctls to mirror reads/writes
from a signaling channel to a pseudo channel
2. a corresponding user app to set up the mirroring and record the
traffic in a pcap

This seems to work though I'm not sure if it's the best solution
design-wise.
I might be abusing the pseudo channel concept.

to compile the app do the following
gcc dahdi_pcap.c -o dahdi_pcap -lpcap

and the syntax to run it is
./dahdi_pcap chan1  [chan2]* pcap.pcap

e.g.
./dahdi_pcap 16 47 test.pcap
====================================================================== 

---------------------------------------------------------------------- 
 (0127726) sruffell (administrator) - 2010-10-05 18:14
 https://issues.asterisk.org/view.php?id=16831#c127726 
---------------------------------------------------------------------- 
I looked at just the kernel part of the patches, and it isn't immediately
clear to me what they provide that isn't already done by the existing
conferencing ioctls.  

For example, if you look at dahdi_monitor, you will see it opens a pseudo
and drops it into a conference with the channel to be monitored (via
DAHDI_CONF_MONITOR/DAHDI_CONF_MONITORTX/DAHDI_CONF_MONITORRX confmodes) in
order to achieve what I believe is the same effect as the new
DAHDI_TXMIRROR / DAHDI_RXMIRROR ioctls.

Couldn't dahdi_pcap be modified to use the same method dahdi_monitor uses
in order to get the channel data? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-10-05 18:14 sruffell       Note Added: 0127726                          
2010-10-05 18:14 sruffell       Status                   new => feedback     
======================================================================




More information about the asterisk-bugs mailing list