Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ami disconection #58

Open
orionseedata opened this issue Oct 16, 2023 · 0 comments
Open

Ami disconection #58

orionseedata opened this issue Oct 16, 2023 · 0 comments

Comments

@orionseedata
Copy link

im having a recurring disconnection problem with ami action when i use muteaudio

Task exception was never retrieved
future: <Task finished name='Task-481' coro=<AsyncServer._handle_event_internal() done, defined at /usr/local/lib/python3.8/dist-packages/socketio/asyncio_server.py:522> exception=IndexError('list index out of range')>
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/socketio/asyncio_server.py", line 524, in _handle_event_internal
    r = await server._trigger_event(data[0], namespace, sid, *data[1:])
  File "/usr/local/lib/python3.8/dist-packages/socketio/asyncio_server.py", line 558, in _trigger_event
    ret = await handler(*args)
  File "main_v2.py", line 155, in click
    pabx.para_intercom_bg()
  File "/home/asterisk/apiinter/classes/pabxmanager.py", line 281, in para_intercom_bg
    retorno = ret.split("Local/s@chegou"+str(ramal)+"-")[1]
IndexError: list index out of range
Desmutou saida de audio pro 11 None
CLICK SOCKET {'ramal': '12', 'token': 'T*$jA@f8HDpWZeqmBBdgvhN_z'}
atendimento
set intercomstatus true e muda pra fora
Toca intercom BG
---------ERRO---------
<class 'ConnectionResetError'> pabxmanager.py 144
-
[Errno 104] Connection reset by peer
Logme: 2023-10-16 19:43:08 -> erro: [Errno 104] Connection reset by peer, kwargs: <class 'ConnectionResetError'>, pabxmanager.py, 144

please some one can help me? or some one knows the same commando directly in asterisk Cli ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant