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

Asterisk Bug Tracker noreply at bugs.digium.com
Tue May 18 05:35:18 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
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:                     new
JIRA:                        
Reviewboard Link:            
====================================================================== 
Date Submitted:             2010-02-15 16:20 CST
Last Modified:              2010-05-18 05:35 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
====================================================================== 

---------------------------------------------------------------------- 
 (0122053) sverker (reporter) - 2010-05-18 05:35
 https://issues.asterisk.org/view.php?id=16831#c122053 
---------------------------------------------------------------------- 
Hi,
I've implemented options now as well as solved some compiler warnings. The
result is uploaded as dahdi_pcap-v5.c as well as a patch which also include
the changes needed for makefile. This is the usage:

Usage: dahdi_pcap [OPTIONS]
Capture packets from DAHDI channels to pcap file

Options:
  -p, --proto=[mtp2|lapd] The protocol to capture, default mtp2
  -c, --chan=<channels>   Comma separated list of channels to capture
from, max 16. Mandatory
  -f, --file=<filename>   The pcap file to capture to. Mandatory
  -h, --help              Display this text 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-18 05:35 sverker        Note Added: 0122053                          
======================================================================




More information about the asterisk-bugs mailing list