From 019a02fa7fdd946989c9249fbdc04db461b91b89 Mon Sep 17 00:00:00 2001 From: Reidar Cederqvist Date: Mon, 4 Nov 2019 10:25:18 +0100 Subject: [PATCH] asterisk: fix No call logs for internal calls Remove the check of sip user so that the internal call can be parsed as call log. --- voice-client/files/usr/libexec/rpcd/voice.asterisk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/voice-client/files/usr/libexec/rpcd/voice.asterisk b/voice-client/files/usr/libexec/rpcd/voice.asterisk index 833623ab8..d01029301 100755 --- a/voice-client/files/usr/libexec/rpcd/voice.asterisk +++ b/voice-client/files/usr/libexec/rpcd/voice.asterisk @@ -103,9 +103,8 @@ case "$1" in echo $uniqueid | grep "[A-Z,a-z]" && continue from="$(echo $line | cut -d',' -f2)" to="$(echo $line | cut -d',' -f3)" - callok=0 - uci show voice_client | grep user | grep -wq "$from\|$to" && callok=1 - [ $callok -eq 0 ] && continue + # "from" will be empty for call log of internal call (beween extension numbers) + [ -z "$from" ] && [ -z "$to" ] && continue account="$(echo $line | cut -d',' -f4)" actok=0 uci show voice_client | grep sip_service_provider | grep -wq "$account" && actok=1