README for ping audio patch
David Rowe 14 October 2010

Ping tones "rendered" as audio tones.  A prototype tuning tool for MP
mesh Wifi links.  Google on "audio ping" for David's blog posts on
this idea.

Directories
-----------

.       - audio ping modules and unit tests, app_ping Asterisk application
iputils - iputils full function ping
busybox - minimal ping adapted from early busybox ping

1/ Audio Ping as an Asterisk "application"
------------------------------------------

Copy the module to the Asterisk modules directory:

  [host] $ scp app_ping.so root@10.130.1.112:/usr/lib/asterisk/modules

The top directory contains the source code for app_ping, an Asterisk
audio ping application.  You can use it with this dialplan:

[default]

exten => 4555,1,Answer
exten => 4555,2,Read(ip||3)
exten => 4555,3,Ping(10.130.1.${ip})

Dial 4555, then 3 digits of the last octet of the MP you would like to
ping (e.g. 001, 121, 021).  You can see the ping times on the Asterisk
CLI when it's running with:

CLI> set verbose 6

app_ping can be compiled as an x86 or MP Asterisk application, see
Makefile.

tping, taudioping, taudio are unit test programs that run on an x86,
using sound blaster output.

2/ Audio feature for x86 ping
-----------------------------

This iputils directory contains a development version of an audio ping
that runs on x86 machines (not Mesh Potatoes). Adds an audio tone
feature (-Z) to the full featured iputils ping, for example:

      iputils-s20101006$ sudo ./ping 10.0.0.2 -Z

Building:

	wget http://www.skbuff.net/iputils/iputils-s20101006.tar.bz2
	bunzip iputils-s20101006.tar.bz2
	tar xvf iputils-s20101006.tar.bz2
	patch -p0 < ping_tone.patch
	cd iputils-s20101006
	make
	sudo ./ping 10.0.0.2 -Z

