mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-01-28 01:47:19 +01:00
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:
parent
42d496107e
commit
019a02fa7f
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue