Discussion:
[asterisk-users] Any Method for capturing ISUP packets in DAHDI/ASTERISK
DHAVAL INDRODIYA
2011-08-11 06:27:46 UTC
Permalink
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
Russ Meyerriecks
2011-08-11 17:43:43 UTC
Permalink
On Thu, Aug 11, 2011 at 11:57:46AM +0530, DHAVAL INDRODIYA wrote:
> 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.

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.

--
Russ Meyerriecks
Digium, Inc. | Linux Kernel Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
direct: +1 256-428-6025
Check us out at: www.digium.com & www.asterisk.org
Russ Meyerriecks
2011-08-11 17:51:50 UTC
Permalink
On Thu, Aug 11, 2011 at 12:43:43PM -0500, Russ Meyerriecks wrote:
> On Thu, Aug 11, 2011 at 11:57:46AM +0530, DHAVAL INDRODIYA wrote:
> > 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.
>
> 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.

Forgot to link to the feature request:
https://issues.asterisk.org/view.php?id=16831

--
Russ Meyerriecks
Digium, Inc. | Linux Kernel Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
direct: +1 256-428-6025
Check us out at: www.digium.com & www.asterisk.org
DHAVAL INDRODIYA
2011-08-17 05:21:48 UTC
Permalink
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
<***@digium.com>wrote:

> On Thu, Aug 11, 2011 at 12:43:43PM -0500, Russ Meyerriecks wrote:
> > On Thu, Aug 11, 2011 at 11:57:46AM +0530, DHAVAL INDRODIYA wrote:
> > > 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.
> >
> > 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.
>
> Forgot to link to the feature request:
> https://issues.asterisk.org/view.php?id=16831
>
> --
> Russ Meyerriecks
> Digium, Inc. | Linux Kernel Developer
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
> direct: +1 256-428-6025
> Check us out at: www.digium.com & www.asterisk.org
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
James zhu
2011-08-18 03:47:40 UTC
Permalink
hi:
please show the config files.

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


Date: Wed, 17 Aug 2011 10:51:48 +0530
From: ***@gmail.com
To: asterisk-***@lists.digium.com; ***@digium.com
Subject: Re: [asterisk-users] Any Method for capturing ISUP packets in DAHDI/ASTERISK

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 <***@digium.com> wrote:

On Thu, Aug 11, 2011 at 12:43:43PM -0500, Russ Meyerriecks wrote:

> On Thu, Aug 11, 2011 at 11:57:46AM +0530, DHAVAL INDRODIYA wrote:

> > 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.

>

> 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.



Forgot to link to the feature request:

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



--

Russ Meyerriecks

Digium, Inc. | Linux Kernel Developer

445 Jan Davis Drive NW - Huntsville, AL 35806 - USA

direct: +1 256-428-6025

Check us out at: www.digium.com & www.asterisk.org



--

_____________________________________________________________________

-- Bandwidth and Colocation Provided by http://www.api-digital.com --

New to Asterisk? Join us for a live introductory webinar every Thurs:

http://www.asterisk.org/hello



asterisk-users mailing list

To UNSUBSCRIBE or update options visit:

http://lists.digium.com/mailman/listinfo/asterisk-users




--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
DHAVAL INDRODIYA
2011-08-18 05:34:34 UTC
Permalink
/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 <***@live.com>

> hi:
> please show the config files.
>
> Best regards,
> James.zhu
> Doing asterisk/PRI/ss7/dahdi, linux, asterisk cards,
> gateway(fxs/fxo/pri<->SIP).
> website: www.voipviews.com
>
>
> ------------------------------
> Date: Wed, 17 Aug 2011 10:51:48 +0530
> From: ***@gmail.com
> To: asterisk-***@lists.digium.com; ***@digium.com
> Subject: Re: [asterisk-users] Any Method for capturing ISUP packets in
> DAHDI/ASTERISK
>
>
> 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 <
> ***@digium.com> wrote:
>
> On Thu, Aug 11, 2011 at 12:43:43PM -0500, Russ Meyerriecks wrote:
> > On Thu, Aug 11, 2011 at 11:57:46AM +0530, DHAVAL INDRODIYA wrote:
> > > 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.
> >
> > 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.
>
> Forgot to link to the feature request:
> https://issues.asterisk.org/view.php?id=16831
>
> --
> Russ Meyerriecks
> Digium, Inc. | Linux Kernel Developer
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
> direct: +1 256-428-6025
> Check us out at: www.digium.com & www.asterisk.org
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
> -- _____________________________________________________________________ --
> Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
> Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE
> or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
Russ Meyerriecks
2011-08-18 15:15:11 UTC
Permalink
On Wed, Aug 17, 2011 at 10:51:48AM +0530, DHAVAL INDRODIYA wrote:
> 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

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.

--
Russ Meyerriecks
Digium, Inc. | Linux Kernel Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
direct: +1 256-428-6025
Check us out at: www.digium.com & www.asterisk.org
Loading...