Andrew Bettison
9310a15cbd
Improve test framework: better output from tfw_cat
2012-08-16 16:58:41 +09:30
Jeremy Lakeman
1a468f23b6
Fix off by one bug in payload length storage
2012-08-16 16:25:20 +09:30
Jeremy Lakeman
7b224d8947
Fix initialisation of monitor client
2012-08-16 15:39:11 +09:30
Andrew Bettison
3c736b1f6c
Improve test framework: orderly shutdown on signal
...
Uses bash job control internally instead of PIDs, because job control
allows all processes in a job to be killed.
Changes the way _tfw_shopt/_tfw_shopt_restore work, to avoid "unrestored shopt"
errors on interrupt.
2012-08-16 12:17:15 +09:30
Andrew Bettison
e1fb64e9d4
Improve test framework: assertExpr
...
Change internal implementation of assertExpr to use shell commands test(1) and
grep(1) instead of awk(1), so that we can write 'assertExpr "$var" '~' "$rexp"
where $rexp is a grep regular expression. (awk(1) does not support \{N,M\} in
regular expressions.)
2012-08-15 18:46:57 +09:30
Jeremy Lakeman
60a82eb251
Improve logging
2012-08-14 16:31:29 +09:30
Jeremy Lakeman
58457a703d
Refactor monitor port bindings
2012-08-14 14:37:16 +09:30
Jeremy Lakeman
e302238b29
Trigger a sas key lookup when peers are reachable
2012-08-14 14:37:16 +09:30
Jeremy Lakeman
51de755be2
Avoid unnecessary warning during neighbour discovery
2012-08-14 14:37:16 +09:30
Jeremy Lakeman
dd78c11db0
Clear monitor state structure
2012-08-14 14:37:16 +09:30
Andrew Bettison
eec8fb6e95
Improve SAS resolution debug messages
2012-08-14 14:06:59 +09:30
Andrew Bettison
cd35c5e2ae
Fix issues arising from new strlcpy.c
2012-08-14 11:23:27 +09:30
Daniel O'Connor
d77e5b7c62
Add strlcpy as it appears some systems (Ubuntu and probably Debian) don't have it.
...
This is a public domain version from http://cantrip.org/strlcpy.c
2012-08-13 18:24:19 +09:30
Jeremy Lakeman
dcb2da45fa
Allow for audio to arrive in variable sized blocks
2012-08-13 16:35:30 +09:30
Jeremy Lakeman
e69a492c2b
Fix socket leak
2012-08-13 14:02:13 +09:30
Jeremy Lakeman
3ab79d8e5b
Pass phone numbers in vomp call initiation
2012-08-13 14:01:57 +09:30
Jeremy Lakeman
2bd26dfcdb
Send monitor dna response with my sid in uri
2012-08-12 16:03:18 +09:30
Daniel O'Connor
f453071251
Fix compilation in the non-JNI case
2012-08-10 16:55:38 +09:30
Jeremy Lakeman
6981e7e2c2
Allow monitor clients to resolve did's
2012-08-10 15:29:19 +09:30
Jeremy Lakeman
f77e055988
Add timeout argument for dna lookup
2012-08-10 15:29:19 +09:30
Daniel O'Connor
75889355fa
Build static library version of libmonitorclient.
2012-08-10 14:36:46 +09:30
Daniel O'Connor
15013d7086
Fix bug in debug printing.
2012-08-10 10:45:01 +09:30
Andrew Bettison
39325e0262
Fix compile error
2012-08-09 13:45:57 +09:30
Jeremy Lakeman
6f9cf490dc
Standardise session id format
2012-08-09 13:32:09 +09:30
Jeremy Lakeman
fb6090917a
Tweak call failure timeouts
2012-08-09 13:32:08 +09:30
Jeremy Lakeman
fd111a4d1f
Listen to INADDR_ANY on OSX, otherwise we can't hear broadcasts
2012-08-09 13:32:08 +09:30
Jeremy Lakeman
f059546eb0
Improve monitor client interface and vomp for asterisk channel driver
2012-08-09 13:32:08 +09:30
Jeremy Lakeman
736a8f43c0
Refactor towards changing the vomp monitor interface
2012-08-09 13:32:08 +09:30
Jeremy Lakeman
7705676a9e
Move str functions to c file to enable reuse
2012-08-09 13:30:52 +09:30
Jeremy Lakeman
fc9a9b337e
Wait for vomp client to indicate that ringing has started
2012-08-09 13:30:52 +09:30
Jeremy Lakeman
152d46ddb6
Reduce and improve logging
2012-08-09 13:30:52 +09:30
Jeremy Lakeman
409186eced
Don't bother to calculate scores for invalid nodes
2012-08-09 13:30:26 +09:30
Andrew Bettison
ec4384ae7d
Fix failing 'dnahelper' test case
2012-08-09 12:21:40 +09:30
Andrew Bettison
12d8bc0c12
Use new typedef time_ms_t everywhere
2012-08-09 12:14:32 +09:30
Daniel O'Connor
e3bef80965
Fix compilation of shared library on 64 bit ELF platforms (only tested on Linux so far) by using -fPIC.
2012-08-06 17:03:00 +09:30
Daniel O'Connor
0d5ecb4a9e
Move system headers up top so we compile on Ubuntu 10.04
2012-08-06 17:01:29 +09:30
Andrew Bettison
b7fa83624d
Split up dnaprotocol tests for speed
2012-08-06 16:45:07 +09:30
Andrew Bettison
fd1da2df93
Fix bug that failed dnaprotocol multi-lookup test
2012-08-06 16:44:36 +09:30
Andrew Bettison
fa03b7e667
Fix bug in alloca_toprint() that caused SEGV
2012-08-06 15:39:08 +09:30
Andrew Bettison
858c6c3efc
Improve logging to diagnose dnaprotocol test failure
2012-08-03 19:08:44 +09:30
Andrew Bettison
03da89225d
Add xprintf() extensible stream formatter
...
Use it to replace open_memstream(3) in logServalPacket() -- not available on
Mac OS X
2012-08-03 16:44:05 +09:30
Andrew Bettison
4f9abdeb86
Refactor serval_packetvisualise(): hex dump
2012-08-03 13:13:47 +09:30
Andrew Bettison
9ede55ab4c
Fix DEBUG_packet_visualise() log output
2012-08-03 13:12:54 +09:30
Andrew Bettison
355af1f874
Fix bug in strbuf_ncat(): not appending nul terminator
2012-08-03 13:11:30 +09:30
Andrew Bettison
0022990e72
Add new dnaprotocol test
...
Dnahelpers on many nodes resolve the same DIDs
Currently fails, suspicious error from overlay_mdp_sanitytest_sourceaddr()
2012-08-02 17:18:04 +09:30
Andrew Bettison
0c7c4e7296
Improve logging to help diagnose dnaprotocol test failure
...
Replace printf() with DEBUGF() and INFOF()
Improve error message from overlay_mdp_sanitytest_sourceaddr()
2012-08-02 17:16:18 +09:30
Andrew Bettison
29bf23d7ac
Add dnahelper test: dna.helper.argv.1 config option
2012-08-02 17:11:36 +09:30
Andrew Bettison
32704bf0e9
Improve 'dnaprotocol' test script
...
Replace hard-coded identity names and DIDs with shell variables
2012-08-02 15:46:53 +09:30
Andrew Bettison
18424a4f1e
Improve test framework: expose shellarg() function
2012-08-02 15:42:18 +09:30
Andrew Bettison
ee6d9d8ea3
Fix logging in vomp.c
...
Replace DEBUG_SIMULATION with DEBUG_VOMP
Replace all printf(...) and fprintf(stderr,...) with WHYF(...) and DEBUGF(...)
Make all debug logging conditional on DEBUG_VOMP
2012-08-02 11:29:37 +09:30