diff --git a/asterisk/agi.py b/asterisk/agi.py index d1dc39a..aa0ba35 100644 --- a/asterisk/agi.py +++ b/asterisk/agi.py @@ -116,6 +116,8 @@ class AGI: """ provides double quotes to string, converts int/bool to string """ if isinstance(string, int): string = str(string) + if isinstance(string, float): + string = str(string) return ''.join(['"', string.encode('ascii', 'ignore'), '"']) def _handle_sighup(self, signum, frame):