diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2016-08-07 17:23:56 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2016-08-07 17:23:56 +0200 |
commit | 541eafe59effc407a811f645608a7a9c93425732 (patch) | |
tree | d81d1d50bd7e3f0d364fdcd2d3b4e19b23ba2c68 /src | |
parent | 362b1cbb610f2135440d5ab686ed934f28b9e005 (diff) |
Common code: Add call state debugging
Diffstat (limited to 'src')
-rw-r--r-- | src/common/call.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/call.c b/src/common/call.c index a9c2e27..3b462a9 100644 --- a/src/common/call.c +++ b/src/common/call.c @@ -73,6 +73,15 @@ enum call_state { CALL_DISCONNECTED, }; +static const char *call_state_name[] = { + "IDLE", + "SETUP_MO", + "SETUP_MT", + "ALERTING", + "CONNECT", + "DISCONNECTED", +}; + enum audio_pattern { PATTERN_NONE = 0, PATTERN_TEST, @@ -172,6 +181,7 @@ static call_t call; static void call_new_state(enum call_state state) { + PDEBUG(DCALL, DEBUG_DEBUG, "Call state '%s' -> '%s'\n", call_state_name[call.state], call_state_name[state]); call.state = state; call.audio_pos = 0; call.test_audio_pos = 0; |