In article <301a2e78-d490-3805-e30f-41b668aac5c1 at sysnux.pf>, Jean-Denis Girard <jd.girard at sysnux.pf> wrote:> > Hi Tony, > > Le 20/07/2019 à 06:29, Tony Mountifield a écrit : > > Are there any other languages/libraries I should be considering? > > Same here, after years of AGI / AMI, I recently made my first project > using ARI on Asterisk-16. I love Python, and was disappointed to find > that Python ARI looks abandoned. Then I found aioari > (https://github.com/M-o-a-T/aioari), an asyncio version of Python ARI, > which looked newer, and supported modern Python. Apart from a bug with > channel variables, aioari works for me. Hope that helps.Ah, cool, thank you! I see that project started off as a fork from ari-py. What is the bug with channel variables? Do you have a fix for it? Cheers Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org
Le 20/07/2019 à 12:21, Tony Mountifield a écrit :> What is the bug with channel variables? Do you have a fix for it?Channels variables caused an error, my fix is in aioswagger11/client.py (line 80) : elif param['paramType'] == 'body': < if not data: < data = {} < data[pname] = value> if isinstance(value, dict): > if data: > data.update(value) > else: > data = value > else: > raise TypeError("Parameters of type 'body'require dict input") I know, I should fork and make a pull request... Best regards, -- Jean-Denis Girard SysNux Systèmes Linux en Polynésie française https://www.sysnux.pf/ Tél: +689 40.50.10.40 / GSM: +689 87.797.527 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 195 bytes Desc: OpenPGP digital signature URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190720/a63a8c51/attachment.sig>
In article <fa813679-775a-b6c0-5b2a-4bfb2c117c48 at sysnux.pf>, Jean-Denis Girard <jd.girard at sysnux.pf> wrote:> Le 20/07/2019 à 12:21, Tony Mountifield a écrit : > > What is the bug with channel variables? Do you have a fix for it? > > Channels variables caused an error, my fix is in aioswagger11/client.py > (line 80) : > elif param['paramType'] == 'body': > < if not data: > < data = {} > < data[pname] = value > > if isinstance(value, dict): > > if data: > > data.update(value) > > else: > > data = value > > else: > > raise TypeError("Parameters of type 'body' > require dict input") > > I know, I should fork and make a pull request...Great, thanks! Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org