py-asterisk can't authenticate with installed version of asterisk manager
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
py-asterisk (Ubuntu) |
Confirmed
|
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(
- Stacktrace :
File "/usr/lib/
self.
File "/usr/lib/
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.
Status changed to 'Confirmed' because the bug affects multiple users.