gardners
8d48b873d6
added line feed to start of all monitor messages to ensure fast
...
re-sync if data blob is not read correctly.
2012-05-08 12:57:44 +09:30
Andrew Bettison
391e8d7056
Fix broken stopfile logic
...
'start' command removes stopfile just before starting
'stop' command removes stopfile after stopping
2012-05-08 12:53:59 +09:30
Andrew Bettison
329189ec8c
Fix bodgy server start/stop logic
...
Rename pidfile 'serval.pid' to 'servald.pid'
Rename stopfile 'doshutdown' to 'servald.stop'
Reinstate checking of stopfile on signals and in main loops
Correct delay loops in 'start' and 'stop' commands
Move some code from commandline.c to server.c
2012-05-08 12:19:52 +09:30
Andrew Bettison
6376baf8b8
Follow-up fixes to serval.pid clobber termination
2012-05-08 11:27:07 +09:30
Andrew Bettison
acc5e48f4f
Terminate server process if serval.pid clobbered
2012-05-08 11:23:43 +09:30
Andrew Bettison
27f2d00d5e
Minor code refactor
2012-05-07 19:14:53 +09:30
Andrew Bettison
09f8434a21
Improve "start" command
...
Add "start exec <exec path>" variants for background mode
Add background startup wait logic, so that pid can be reported to caller
2012-05-07 19:14:52 +09:30
gardners
171eb75d48
fixed packet size calculation bug.
2012-05-07 16:50:49 +09:30
gardners
74634a5068
minor tweak to dna lookup.
2012-05-07 15:47:20 +09:30
gardners
081e1b64f9
take 2 at fixing dna lookup latency bug.
2012-05-07 15:40:15 +09:30
gardners
92691a82c9
make DNA lookups immediate-dispatch traffic.
2012-05-07 15:29:31 +09:30
gardners
98607360f4
attempt at fixing wrong number in peerlist display bug in "node info"
...
command.
2012-05-07 15:29:31 +09:30
Andrew Bettison
cbc367b1f5
Rewrite server start/status/stop commands
...
Now correctly probes for server process existence using kill(pid, 0)
Status command does not dump config (use "config get" instead)
Output uses JNI cli output fields
Stop command uses 5 Hz wakeup, not busy wait while server exits
2012-05-07 13:49:38 +09:30
Andrew Bettison
4ae3c95992
"rhizome list" command filter by datavalid
2012-05-07 10:25:30 +09:30
gardners
3e9fcffd58
reversed previous commit, as it makes the monitor interface too
...
chatty, and doesn't help detect loss of servald connection, anyway.
2012-05-07 09:10:35 +09:30
gardners
4ebbb7b3bf
added dummy keep alive for null call to make it easier to track
...
death of calls.
2012-05-07 09:08:56 +09:30
gardners
ecc271c7a3
added call state keepalive so that UI can positively detect when
...
a call has been destroyed, but has not been realised.
2012-05-07 09:01:46 +09:30
gardners
7c8331a587
disable annoying debug message that is triggered by MDP packet
...
corruption bugs, that cause us to think we have seen an advertisement
for a node that doesn't exist. Still need to implement the stub
of code that has been converted to a #warning..
2012-05-07 08:47:22 +09:30
gardners
7b520e7a49
fixed various bugs with priorty dispatch of voice traffic.
...
some debug tweaking etc.
2012-05-07 08:31:53 +09:30
gardners
602c00efd7
fixed bugs in handling of audio.
2012-05-06 22:23:58 +09:30
gardners
29855e2c9d
added debugging to find out why audio is not flowing on phone.
2012-05-06 21:56:40 +09:30
gardners
6ee271d767
dispatch voice packets immediately on reception, and also flush
...
any other queues that are banked up. not an ideal implementation
of these, but is a start.
2012-05-06 21:41:08 +09:30
gardners
ad78627fb6
added PCM codec entry.
2012-05-06 21:12:31 +09:30
gardners
c59e819649
fixed call-state error related to ringing timeout.
2012-05-06 20:47:50 +09:30
gardners
a42d8aafc0
added debug for saying when we notice stale calls.
2012-05-06 20:15:46 +09:30
gardners
f93ec055ca
removed some debugging
2012-05-06 20:15:32 +09:30
gardners
963e86ea42
auto-expire stale calls that have not reached in-call status.
2012-05-05 20:58:04 +09:30
gardners
04599091d1
improved debugging of closed sockets
2012-05-05 19:28:31 +09:30
gardners
9ce7058cd0
ignore ENOTRECOVERABLE?
2012-05-05 19:10:28 +09:30
gardners
6f363db8f1
added useful message for when closing due to incorrect uid.
2012-05-05 19:06:30 +09:30
gardners
be806088b3
CALLSTATUS message now contains more information (SIDs and DIDs)
2012-05-05 03:58:42 +09:30
gardners
bee3ea6888
added monitor build target for android
2012-05-05 03:58:42 +09:30
Andrew Bettison
97884ba069
Fix bug in output from "rhizome add file"
...
When a duplicate is detected, the 'manifestid' field must contain the public
key of the existing manifest.
2012-05-04 15:59:58 +09:30
Andrew Bettison
f31c326871
CLI output from "rhizome add file", with tests
2012-05-04 15:31:03 +09:30
gardners
6bc8f5643f
better handling of disconnections by monitor clients.
2012-05-04 03:58:34 +09:30
gardners
e71b2385e6
added commandline test utility for monitor interface.
2012-05-04 03:48:56 +09:30
gardners
4f09ccebdc
further work towards working monitor interface.
...
sending DTMF works now, and DTMF packets are received back.
2012-05-04 03:44:41 +09:30
gardners
175a079c0c
monitor call/hangup/pickup commands now work.
2012-05-04 03:24:53 +09:30
gardners
91d875d70a
fixed various bugs in servald monitor. now receives commands,
...
and can act on them.
2012-05-04 03:16:06 +09:30
gardners
6718d06421
cleaned up debug output.
2012-05-04 02:40:54 +09:30
gardners
98ea86bde0
added new /proc/net/route method to find interfaces on android
...
(would you believe that using ifconfig to READ about interfaces
requires ROOT on android).
should also help for interfaces with multiple addresses.
2012-05-03 22:46:00 +09:30
gardners
6e933be9ec
fixed bug on android with previous commit
2012-05-03 17:17:56 +09:30
gardners
82ca3dde5d
impoved debugging and operation of interface detection
...
(since it has suddenly decided to fail)
2012-05-03 17:15:05 +09:30
gardners
26ef52cf99
and a bug fix for the above.
2012-05-03 17:04:47 +09:30
gardners
c981b8c28a
further monitor client debuggin improvements
2012-05-03 17:04:20 +09:30
gardners
0d899b97d3
improved debugging of when we close our end of client connection.
2012-05-03 17:02:57 +09:30
gardners
f1ac067d4f
removed excess debug.
2012-05-03 16:21:14 +09:30
gardners
11132c40c9
fixed big fat nasty socket handling bug.
2012-05-03 16:16:36 +09:30
gardners
f5c3ea024e
added debug output to see whether we are getting data back from
...
java side.
2012-05-03 15:23:42 +09:30
Andrew Bettison
eab6dafcc7
Make commandline.c error messages appear on Android log
2012-05-03 14:50:14 +09:30