[asterisk-bugs] [JIRA] (ASTERISK-29208) AMI Action PJSIPShowContacts returns No Contacts found
Mikhail (JIRA)
noreply at issues.asterisk.org
Thu Dec 10 08:21:16 CST 2020
Mikhail created ASTERISK-29208:
----------------------------------
Summary: AMI Action PJSIPShowContacts returns No Contacts found
Key: ASTERISK-29208
URL: https://issues.asterisk.org/jira/browse/ASTERISK-29208
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Core/ManagerInterface
Affects Versions: 16.11.1, 16.9.0
Environment: ubuntu 18.04.4
debian 10
Reporter: Mikhail
Hello. Faced a bug: sending PJSIPShowContacts action from ami libraries (panoramisk, ami-py) says "Message='No Contacts found' Response='Error' content=''>". while asterisk -rx 'pjsip show contacts' - shows contacts.
script example is here
from panoramisk import Manager
import asyncio
@asyncio.coroutine
def check_peers():
manager = Manager(loop=loop,host='127.0.0.1', port=5038,username='123', secret='123')
try:
yield from manager.connect()
peersobj = yield from manager.send_action({'Action': 'PJSIPShowContacts'})
return peersobj
manager.close()
except:
return 'oops...something is wrong'
loop = asyncio.get_event_loop()
peers = loop.run_until_complete(check_peers())
print(peers)
Other ami-commands (like PJSIPShowEndpoints, etc.) work fine.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list