adding ss7 pcap support to dahdi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I don't know if something similar exists already but I've created a
patch to add the ability to do pcap capturing on dahdi cards. So I'm
posting it here just in case it might be useful to someone. It
consists of 2 parts

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 and wanted to ask if you ever
felt the need for similar functionality.



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


Regards,
Torrey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dahdi_pcap.c
Type: text/x-csrc
Size: 2805 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-ss7/attachments/20100215/986374b7/attachment.c 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: driver.patch
Type: text/x-diff
Size: 5223 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-ss7/attachments/20100215/986374b7/attachment.patch 


[Index of Archives]     [Asterisk App Development]     [PJ SIP]     [Gnu Gatekeeper]     [IETF Sipping]     [Info Cyrus]     [ALSA User]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Backpacking]     [Deep Creek Hot Springs]     [Yosemite Campsites]     [ISDN Cause Codes]     [Asterisk Books]

  Powered by Linux