[asterisk-dev] Recording sound directly from zaptel

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sat May 27 01:58:38 MST 2006


On Sat, May 27, 2006 at 01:03:34AM +0200, Maxim Vexler wrote:
> Hello list
> 
> I need to do a bit of frequency analyzing for the PSTN telephony
> system in Israel. I'm using Digium's TDM400 with FXO module on port1.
> 
> To be more particular - I'm trying to identify what signals our telco
> company (bezeq) sends upon remote call hangup.
> 
> For this I'm looking to somehow record the raw sound information
> coming from the phone line into the zaptel device and upper to the
> zapata driver, preferably while asterisk is using the device.
> 
> The preferred recording format is WAV so that I could latter on use
> Frequency Analyzer from relisoft.com to analyze it.
> 
> Can I in some way, running as root of curse, get a "direct recording
> interface" to the device (Using the kernel I assume)?

ztmonitor is a bit more direct. Though when recording to a file it
basically creates a (zaptel-level!) conference and listens from there
rather than getting the data "directly".

The only shortcome of it is that it mixes both directions of the call to
provide one mono stream (when recording to a file. ztmonitor -v shows
you input and output separately).

I figure it would be rather trivial to make it record to two streams. If
anybody thinks that this is wortht the effort, I have a pending patch to
make it use getopt and do a sane command-line parsing.

That said, this is only what Linux gets. This is not exactly what you
have on the line. 

-- 
Tzafrir Cohen      sip:tzafrir at local.xorcom.com
icq#16849755       iax:tzafrir at local.xorcom.com
+972-50-7952406           
tzafrir.cohen at xorcom.com  http://www.xorcom.com



More information about the asterisk-dev mailing list