Any Method for capturing ISUP packets in DAHDI/ASTERISK

Home » Asterisk Users » Any Method for capturing ISUP packets in DAHDI/ASTERISK
Asterisk Users 5 Comments

Hi All,

I want packets [request/response] capture for ISUP packets , i have E1 line
terminated to my digium card
i just want a packets flow between my machine and teleco side, is any tool
or utility [command] availabele for
observation this packets and data.

any help appericiated

Thanks
Dhaval

5 thoughts on - Any Method for capturing ISUP packets in DAHDI/ASTERISK

  • This issue and patch added pcap support for a guy who wanted to monitor
    ss7 traffic. You’ll need to use dahdi 2.5. You’ll also need to compile
    the “dahdi_pcap” program on your own, or write a script to exercise the
    DAHDI_RXMIRROR and DAHDI_TXMIRROR ioctl’s. This is an unsupported
    interface.

  • Hi Russ,

    I have tried given patch and successfully compiled dahdi_pcap but when i try
    to run below command it gives me error.

    *./dahdi_pcap lapd 16 test.pcap *

    error setting channel err=-1!
    error setting channel err=-1!
    error setting channel err=-1!
    error setting channel err=-1!
    Segmentation fault

    I have TE112 Card configured on my machine.

    Regards
    Dhaval

    On Thu, Aug 11, 2011 at 11:21 PM, Russ Meyerriecks
    wrote:

  • hi:
    please show the config files.

    Best regards,
    James.zhu
    Doing asterisk/PRI/ss7/dahdi, linux, asterisk cards, gateway(fxs/fxo/pri< ->SIP).
    website: http://www.voipviews.com

    Hi Russ,

    I have tried given patch and successfully compiled dahdi_pcap but when i try to run below command it gives me error.

    ./dahdi_pcap lapd 16 test.pcap

    error setting channel err=-1!
    error setting channel err=-1!

    error setting channel err=-1!
    error setting channel err=-1!
    Segmentation fault

    I have TE112 Card configured on my machine.

    Regards
    Dhaval

    Forgot to link to the feature request:

    https://issues.asterisk.org/view.php?id=16831

  • /etc/dahdi/system.conf

    span=1,1,0,ccs,hdb3,crc4
    bchan=1-15
    dchan=16
    bchan=17-31
    echocanceller=mg2,1-15,17-31

    /etc/asterisk/chan_dahdi.conf
    [trunkgroups]

    [channels]
    language=en
    context=from-pstn
    switchtype=euroisdn
    pridialplan=local
    prilocaldialplan=local
    callerid=asreceived
    signalling=pri_cpe
    usecallerid=yes
    hidecallerid=no
    callwaiting=yes
    usecallingpres=yes
    callwaitingcallerid=yes
    threewaycalling=yes
    transfer=yes
    cancallforward=yes
    callreturn=yes
    echocancel=yes
    echocancelwhenbridged=yes
    echotraining=80000000
    resetinterval=never
    rxgain=5.0
    txgain=0.0
    callgroup=1
    pickupgroup=1
    immediate=no
    relaxdtmf=yes
    faxdetect=both
    cidstart=polarity_IN

    group=0
    channel => 1-15
    channel => 17-31

    2011/8/18 James zhu

  • 1) Try ./dahdi_pcap -p lapd 16 test.pcap but i’ll assume that’s a typo

    2) Make sure you #define CONFIG_DAHDI_MIRROR in
    drivers/dahdi/dahdi-base.c That’s an error I might expect to see if the
    DAHDI_RXMIRROR or DAHDI_TXMIRROR ioctl’s weren’t enabled.