From 8e1e375b8b2e49ec978bb5999e2e135fd085e1cb Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 7 Oct 2010 19:39:23 +0200 Subject: [PATCH] [FIX] WaitTime parameter is now really taken into account In fact, it corresponds to the 'Timeout' instruction for the Asterisk Manager --- asterisk_click2dial/asterisk_click2dial.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/asterisk_click2dial/asterisk_click2dial.py b/asterisk_click2dial/asterisk_click2dial.py index 226a7b5..8e49a4a 100644 --- a/asterisk_click2dial/asterisk_click2dial.py +++ b/asterisk_click2dial/asterisk_click2dial.py @@ -19,11 +19,6 @@ # ############################################################################## -# TODO list : -# Wait time don't seem to be taken into account -# In fact, maybe it the waittime for external correspondants ! -# -> if yes, default waittime should be changed from 15 to 30 - from osv import osv, fields # Lib required to open a socket (needed to communicate with Asterisk server) import socket @@ -231,7 +226,7 @@ class asterisk_server(osv.osv): sock.send('Secret: '+str(ast_server.password)+'\r\n\r\n') sock.send('Action: originate\r\n') sock.send('Channel: ' + str(user.asterisk_chan_type) + '/' + str(user.internal_number)+'\r\n') - sock.send('WaitTime: '+str(ast_server.wait_time)+'\r\n') + sock.send('Timeout: '+str(ast_server.wait_time*1000)+'\r\n') sock.send('CallerId: '+str(user.callerid)+'\r\n') sock.send('Exten: '+str(ast_number)+'\r\n') sock.send('Context: '+str(ast_server.context)+'\r\n')