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

Bug #1078171 reported by Thomas Detoux on 2012-11-13
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
py-asterisk (Ubuntu)
Undecided
Unassigned

Bug Description

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.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in py-asterisk (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers