Browse Source

Merge pull request #91 from idncom/patch-1

PJSIP compatible
pull/94/head
Alexis de Lattre 8 years ago
committed by GitHub
parent
commit
444f06713e
  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 in ['SIP', 'PJSIP']:
# We can only have one alert-info header in a SIP request
if user.alert_info:
variable.append(

Loading…
Cancel
Save