Browse Source

PJSIP compatible

pull/91/head
Apptuate 8 years ago
committed by GitHub
parent
commit
0df2adac8b
  1. 3
      asterisk_click2dial/asterisk_click2dial.py

3
asterisk_click2dial/asterisk_click2dial.py

@ -323,6 +323,7 @@ class res_users(orm.Model):
"user."), "user."),
'asterisk_chan_type': fields.selection([ 'asterisk_chan_type': fields.selection([
('SIP', 'SIP'), ('SIP', 'SIP'),
('PJSIP', 'PJSIP'),
('IAX2', 'IAX2'), ('IAX2', 'IAX2'),
('DAHDI', 'DAHDI'), ('DAHDI', 'DAHDI'),
('Zap', 'Zap'), ('Zap', 'Zap'),
@ -421,7 +422,7 @@ class PhoneCommon(orm.AbstractModel):
_('No callerID configured for the current user')) _('No callerID configured for the current user'))
variable = [] variable = []
if user.asterisk_chan_type == 'SIP':
if user.asterisk_chan_type == 'SIP' or user.asterisk_chan_type == 'PJSIP':
# We can only have one alert-info header in a SIP request # We can only have one alert-info header in a SIP request
if user.alert_info: if user.alert_info:
variable.append( variable.append(

Loading…
Cancel
Save