Closed litnimax closed 9 years ago
It depends on what version of Asterisk you are using. While the StasisStart event changes that were made to add additional channels was a backwards compatible change, the ARI-py library didn't especially like them.
The code shown in the samples on the wiki and in ari-examples is correct for the most recent version of 12/13 and ARI (and has been for some time).
channel = channel_obj.get('channel') TypeError: enrich_operation() takes exactly 0 arguments (1 given) Also there is no such attribute.
Please update the documentation here - https://wiki.asterisk.org/wiki/display/AST/ARI+and+Channels%3A+Handling+DTMF#ARIandChannels:HandlingDTMF-Playingthemenu and all other examples :-)