mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
voice-client: show only the calls with account info in the call log refs #14164
This commit is contained in:
parent
1e0ca02fd3
commit
dca064ff86
1 changed files with 2 additions and 1 deletions
|
|
@ -106,11 +106,12 @@ case "$1" in
|
|||
uci show voice_client | grep user | grep -wq "$from" && callok=1
|
||||
uci show voice_client | grep user | grep -wq "$to" && callok=1
|
||||
[ $callok -eq 0 ] && continue
|
||||
account="$(echo $line | cut -d',' -f4)"
|
||||
uci show voice_client | grep sip_service_provider | grep -wq "$account" || continue
|
||||
timestart="$(echo $line | awk -F',' '{print $(NF-8)}')"
|
||||
timend="$(echo $line | awk -F',' '{print $(NF-6)}')"
|
||||
startdate=$(date -u -d "$timestart" +"%s")
|
||||
enddate=$(date -u -d "$timend" +"%s")
|
||||
#duration="$(date -d@$((startdate - enddate)) -u +%H:%M:%S)"
|
||||
uci show voice_client | grep user | grep -wq "$from" && direction="OUTGOING" || direction="INCOMING"
|
||||
json_add_object ""
|
||||
json_add_string uniqueid "$uniqueid"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue