소스 검색

debug originate

Hal De 4 년 전
부모
커밋
9446ad239f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/app.py

+ 2 - 2
app/app.py

@@ -984,8 +984,8 @@ class DeviceUnBind(Resource):
     if currentUser in NONEs:
       return noUserBound(device)
     else:
-      result = await amiSetVar('PRESENCE_STATE(CustomPresence:{})'.format(user), 'available')
-      result = await amiDBDel('DND', '{}'.format(user))
+      result = await amiSetVar('PRESENCE_STATE(CustomPresence:{})'.format(currentUser), 'available')
+      result = await amiDBDel('DND', '{}'.format(currentUser))
       ast = await getGlobalVars()
       await setUserDevice(currentUser, None) # Unbind device from current user
       if ast.QUEDEVSTATE == 'TRUE': # set device states for current user queues