aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-10-07 18:08:31 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2017-10-22 19:23:02 +0200
commit975e34211b87dc166f06cee7c11e9b5cc09b4e91 (patch)
treec41fa9d2e965db10d2dbf0f0348d9d7abe6f7ae9
parentae29f84ed7a3d6e0f5e44fdbab0b938a22f3fc3c (diff)
Call control: Minor logging fixes
-rw-r--r--src/common/call.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/call.c b/src/common/call.c
index 2b40ca4..cdda131 100644
--- a/src/common/call.c
+++ b/src/common/call.c
@@ -828,13 +828,15 @@ int call_in_setup(int callref, const char *callerid, const char *dialing)
return -CAUSE_BUSY;
}
call.callref = callref;
- call_new_state(CALL_CONNECT);
if (callerid) {
strncpy(call.station_id, callerid, call.dial_digits);
call.station_id[call.dial_digits] = '\0';
}
strncpy(call.dialing, dialing, sizeof(call.dialing) - 1);
call.dialing[sizeof(call.dialing) - 1] = '\0';
+ call_new_state(CALL_CONNECT);
+ PDEBUG(DCALL, DEBUG_INFO, "Call automatically answered\n");
+ call_out_answer(callref);
return 0;
}
@@ -1176,7 +1178,7 @@ void call_mncc_recv(uint8_t *buf, int length)
case MNCC_SETUP_RSP:
PDEBUG(DMNCC, DEBUG_INFO, "Received MNCC answer from Network\n");
set_state_process(callref, CALL_CONNECT);
- PDEBUG(DCALL, DEBUG_INFO, "Call disconnected\n");
+ PDEBUG(DCALL, DEBUG_INFO, "Call answered\n");
call_out_answer(callref);
break;
case MNCC_DISC_REQ: