From 55b7d66b255da3b9196886665c25b5b1d376e7b3 Mon Sep 17 00:00:00 2001
From: vianneydc <>
Date: Thu, 23 Sep 2010 12:46:08 -0300
Subject: [PATCH] [REF] changed alert-info column into alter_info as Postgres
might not accept it else
---
asterisk_click2dial/asterisk_click2dial.py | 6 +++---
asterisk_click2dial/asterisk_click2dial_demo.xml | 2 +-
asterisk_click2dial/asterisk_server_view.xml | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/asterisk_click2dial/asterisk_click2dial.py b/asterisk_click2dial/asterisk_click2dial.py
index 42b0f49..256a8b6 100644
--- a/asterisk_click2dial/asterisk_click2dial.py
+++ b/asterisk_click2dial/asterisk_click2dial.py
@@ -44,7 +44,7 @@ class asterisk_server(osv.osv):
'context' : fields.char('Dialplan context', size=50, required=True, help="Asterisk dialplan context from which the calls will be made. Refer to /etc/asterisk/extensions.conf on your Asterisk server."),
'wait_time' : fields.integer('Wait time (sec)', required=True, help="Amount of time (in seconds) Asterisk will try to reach the user's phone before hanging up."),
'extension_priority' : fields.integer('Extension priority', required=True, help="Priority of the extension in the Asterisk dialplan. Refer to /etc/asterisk/extensions.conf on your Asterisk server."),
- 'alert-info' : fields.char('Alert-Info SIP header', size=40, help="Set Alert-Info header in SIP request to user's IP Phone. If empty, the Alert-Info header will not be added. You can use it to have a special ring tone for click2dial, for example you could choose a silent ring tone."),
+ 'alert_info' : fields.char('Alert-Info SIP header', size=40, help="Set Alert-Info header in SIP request to user's IP Phone. If empty, the Alert-Info header will not be added. You can use it to have a special ring tone for click2dial, for example you could choose a silent ring tone."),
'company_id' : fields.many2one('res.company', 'Company', help="Company who uses the Asterisk server."),
}
@@ -220,8 +220,8 @@ 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':
- sock.send('Variable: SIPAddHeader=Alert-Info: '+str(ast_server.alert-info)+'\r\n')
+ if not 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')
sock.close()
diff --git a/asterisk_click2dial/asterisk_click2dial_demo.xml b/asterisk_click2dial/asterisk_click2dial_demo.xml
index 619f6f0..495a67b 100644
--- a/asterisk_click2dial/asterisk_click2dial_demo.xml
+++ b/asterisk_click2dial/asterisk_click2dial_demo.xml
@@ -8,7 +8,7 @@
click2dial
mypassword
from-internal
- info=<Bellcore-dr5>
+ info=<Bellcore-dr5>
diff --git a/asterisk_click2dial/asterisk_server_view.xml b/asterisk_click2dial/asterisk_server_view.xml
index 92c775f..1926d78 100644
--- a/asterisk_click2dial/asterisk_server_view.xml
+++ b/asterisk_click2dial/asterisk_server_view.xml
@@ -33,7 +33,7 @@
-
+