Re: [asterisk-users] ARI libraries?

2019-07-21 Thread Tony Mountifield
In article ,
Jean-Denis Girard  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 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: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] ARI libraries?

2019-07-20 Thread Jean-Denis Girard
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 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



signature.asc
Description: OpenPGP digital signature
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] ARI libraries?

2019-07-20 Thread Tony Mountifield
In article <301a2e78-d490-3805-e30f-41b668aac...@sysnux.pf>,
Jean-Denis Girard  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: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] ARI libraries?

2019-07-20 Thread Jean-Denis Girard
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.


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



signature.asc
Description: OpenPGP digital signature
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users