Explorar o código

Refactoring extension->user artefact fixed

Hal De %!s(int64=4) %!d(string=hai) anos
pai
achega
56bf5486e0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/app.py

+ 2 - 2
app/app.py

@@ -220,9 +220,9 @@ async def amiSetHint(context, user, hint):
   Returns:
     boolean: True if DialplanUserAdd action was successfull, False overwise
   '''
-  reply = await manager.send_action({'Action': 'DialplanUserAdd',
+  reply = await manager.send_action({'Action': 'DialplanExtensionAdd',
                                      'Context': context,
-                                     'User': user,
+                                     'Extension': user,
                                      'Priority': 'hint',
                                      'Application': hint,
                                      'Replace': 'yes'})