Public bug reported:

py-asterisk fails to authenticate to asterisk manager.

ubuntu version : Ubuntu 12.04.1 LTS
package version : 0.1a3+r160-4.1

Steps to reproduce :

- Configure asterisk manager
- On python console :

            from Asterisk.Manager import Manager
            manager = Manager(('localhost', 5038), 'login', 
'yoursecretpassword')

- Stacktrace :
  File "/usr/lib/pymodules/python2.7/Asterisk/Manager.py", line 209, in __init__
    self._authenticate()
  File "/usr/lib/pymodules/python2.7/Asterisk/Manager.py", line 224, in 
_authenticate
    raise Exception('Server banner was incorrect.')
Exception: Server banner was incorrect.

It turns out that py-asterisk is expecting the precise line "Asterisk
Call Manager/1.0" from the manager while the version shipped with
precise reports "Asterisk Call Manager/1.1".

Proposed solutions :
- Backport version 0.4-1 from quantal where the bug is corrected.
or
- Patch version 0.1a3+r160-4.1 to match the expected string from Manager.

** Affects: py-asterisk (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1078171

Title:
  py-asterisk can't authenticate with installed version of asterisk
  manager

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/py-asterisk/+bug/1078171/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to