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.
This commit is contained in:
Reidar Cederqvist 2019-11-04 10:25:18 +01:00 committed by Sukru Senli
parent 42d496107e
commit 019a02fa7f

View file

@ -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