From b30e5917b58155d5569f2ea9d0faee9b36260a98 Mon Sep 17 00:00:00 2001 From: houben Date: Tue, 7 Dec 2010 10:14:21 +0100 Subject: [PATCH] Added call status states with status hook request, also added sip --- console/commands.c | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/console/commands.c b/console/commands.c index ab67569..bf18a0a 100644 --- a/console/commands.c +++ b/console/commands.c @@ -1948,10 +1948,18 @@ static int lpc_cmd_status(LinphoneCore *lc, char *args) LinphoneCallState call_state=LinphoneCallIdle; if (call) call_state=linphone_call_get_state(call); - switch(call_state){ + switch(call_state){ case LinphoneCallOutgoingInit: + linphonec_out("hook=outgoing_init sip:%s\n",linphonec_get_callee()); + break; case LinphoneCallOutgoingProgress: - linphonec_out("hook=dialing\n"); + linphonec_out("hook=dialing sip:%s\n",linphonec_get_callee()); + break; + case LinphoneCallOutgoingRinging: + linphonec_out("hook=ringing sip:%s\n",linphonec_get_callee()); + break; + case LinphoneCallPaused: + linphonec_out("hook=paused sip:%s\n",linphonec_get_callee()); break; case LinphoneCallIdle: linphonec_out("hook=offhook\n"); @@ -1964,8 +1972,8 @@ static int lpc_cmd_status(LinphoneCore *lc, char *args) linphone_core_is_mic_muted (lc) ? "yes" : "no", linphone_core_is_rtp_muted(lc) ? "yes" : "no"); }else{ - linphonec_out("hook=answered duration=%i\n" , - linphone_core_get_current_call_duration(lc)); + linphonec_out("hook=answered duration=%i %s\n" , + linphone_core_get_current_call_duration(lc), linphonec_get_caller()); } break; case LinphoneCallIncomingReceived: -- 1.7.0.4