James Bensley
2013-Jun-13 13:23 UTC
[asterisk-users] Troubleshooting TDMs (Packet capture like debugging)
Hi All, I am looking for a way to troubleshoot issues with TDM (E1) trunks with a provider. Currently with SIP trunks I am using tcpdump to perform packet captures between our gateways and the SIP providers IPs, capturing traffic on all ports, to include both the SIP messages and the RTP stream. How can I achieve a similar result on TDM links connected to TDM cards in Asterisk servers, where by I can see the signalling (like the SIP message) and the audio stream (like the RTP stream) in my packet captures? If it helps, the end goal is to create something like the packet captures I am making so I can see the control signals and audio streams (in and out) for troubleshooting one way audio issues for example. So, am I sending audio to the TDM provider, are they sending it to me, have we both signalled correctly to start/stop sending audio, etc. Many thanks, James.
Steve Totaro
2013-Jun-13 13:29 UTC
[asterisk-users] Troubleshooting TDMs (Packet capture like debugging)
On Thu, Jun 13, 2013 at 9:23 AM, James Bensley <jwbensley at gmail.com> wrote:> Hi All, > > I am looking for a way to troubleshoot issues with TDM (E1) trunks > with a provider. > > Currently with SIP trunks I am using tcpdump to perform packet > captures between our gateways and the SIP providers IPs, capturing > traffic on all ports, to include both the SIP messages and the RTP > stream. > > How can I achieve a similar result on TDM links connected to TDM cards > in Asterisk servers, where by I can see the signalling (like the SIP > message) and the audio stream (like the RTP stream) in my packet > captures? > > If it helps, the end goal is to create something like the packet > captures I am making so I can see the control signals and audio > streams (in and out) for troubleshooting one way audio issues for > example. So, am I sending audio to the TDM provider, are they sending > it to me, have we both signalled correctly to start/stop sending > audio, etc. > > Many thanks, > James. > >Is it PRI? You can see PRI debug info on the console. Extremely valuable in troubleshooting. http://www.voip-info.org/wiki/view/Asterisk+CLI Zap channel commands zap destroy channel: Destroy a channel zap show channels: Show active zapata channels zap show channel: Show information on a channel zap show status: lists all the Zaptel spans. A span will apear here whether or not its channels are configured with chan_zap. zap show cadences: Show the configured ring cadences (available e.g with Zap/1r2). zap set swgain(<= 1.6): set the (software) gain for a hannel. Temporary equivalents of rxgain and txgain in zapata.conf. zap set hwgain(<=1.6): set the hardware gain for channels that support it. zap set dnd(<=1.6) set a channel's do-not-disturb mode on or off. The following commands are available if the channel is built with support for libpri: pri debug span: Enables PRI debugging on a span pri intense debug span: Enables REALLY INTENSE PRI debugging pri no debug span: Disables PRI debugging on a span pri show spans: List spans and their status. pri show span: Information about a span. pri show debug: show where debug is enabled. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130613/9761b3be/attachment.htm>
jg
2013-Jun-13 13:30 UTC
[asterisk-users] Troubleshooting TDMs (Packet capture like debugging)
Hi! Depending which TDM board you are using there might already be tool to get a pcap trace. E.g. if you have a Sangoma board, the wanpipemon utility has a -pcap option. I don't know about other boards. Wireshark already comes with basic support for ISDN protocols, so now work is needed here. jg
Tony Mountifield
2013-Jun-13 14:57 UTC
[asterisk-users] Troubleshooting TDMs (Packet capture like debugging)
In article <CAAWx_pVGZA965LjXWRNA_tKz2HkhqubOknGeSsSjE3bKkVE8-A at mail.gmail.com>, James Bensley <jwbensley at gmail.com> wrote:> Hi All, > > I am looking for a way to troubleshoot issues with TDM (E1) trunks > with a provider. > > Currently with SIP trunks I am using tcpdump to perform packet > captures between our gateways and the SIP providers IPs, capturing > traffic on all ports, to include both the SIP messages and the RTP > stream. > > How can I achieve a similar result on TDM links connected to TDM cards > in Asterisk servers, where by I can see the signalling (like the SIP > message) and the audio stream (like the RTP stream) in my packet > captures? > > If it helps, the end goal is to create something like the packet > captures I am making so I can see the control signals and audio > streams (in and out) for troubleshooting one way audio issues for > example. So, am I sending audio to the TDM provider, are they sending > it to me, have we both signalled correctly to start/stop sending > audio, etc.A google for "DAHDI pcap" led me to the following page: http://forums.digium.com/viewtopic.php?f=1&t=82833 That suggests that DAHDI 2.6 onwards can be compiled with pcap support, that presumably provides the drivers with the ability to capture to pcap files, and a tool to control it. Presumably a recent version of Wiresharl will then be able to interpret the captured files. Cheers Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org