From 975e34211b87dc166f06cee7c11e9b5cc09b4e91 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sat, 7 Oct 2017 18:08:31 +0200 Subject: Call control: Minor logging fixes --- src/common/call.c | 6 ++++-- 1 file 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: -- cgit v1.2.3