From afa2462a4e0c2647945f0ffe79d7264ad54940a2 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sun, 3 Apr 2011 00:03:54 +0200 Subject: [PATCH] [FIX] Wrong if condition fixed Thanks to Todd Johnson for pointing out this mistake. --- asterisk_click2dial/asterisk_click2dial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asterisk_click2dial/asterisk_click2dial.py b/asterisk_click2dial/asterisk_click2dial.py index 466a737..0719962 100644 --- a/asterisk_click2dial/asterisk_click2dial.py +++ b/asterisk_click2dial/asterisk_click2dial.py @@ -251,7 +251,7 @@ class asterisk_server(osv.osv): 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') - if not ast_server.alert_info and user.asterisk_chan_type == 'SIP': + if ast_server.alert_info and user.asterisk_chan_type == 'SIP': sock.send('Variable: SIPAddHeader=Alert-Info: '+str(ast_server.alert_info)+'\r\n') sock.send('Priority: '+str(ast_server.extension_priority)+'\r\n\r\n') sock.send('Action: Logoff\r\n\r\n')