Browse Source

Vianney changed the name of the 'alert-info' field to 'alert_info'...

but he also made the change in the name of the SIP header !
This commit reverts this mistake.
6.0
Alexis de Lattre 14 years ago
parent
commit
1aff391117
  1. 2
      asterisk_click2dial/asterisk_click2dial.py

2
asterisk_click2dial/asterisk_click2dial.py

@ -236,7 +236,7 @@ class asterisk_server(osv.osv):
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')
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()

Loading…
Cancel
Save