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."),
'asterisk_chan_type': fields.selection([
('SIP', 'SIP'),
('PJSIP', 'PJSIP'),
('IAX2', 'IAX2'),
('DAHDI', 'DAHDI'),
('Zap', 'Zap'),
@ -421,7 +422,7 @@ class PhoneCommon(orm.AbstractModel):
_('No callerID configured for the current user'))
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
if user.alert_info:
variable.append(

Loading…
Cancel
Save