Commit d140f617 authored by Dax MIckelson's avatar Dax MIckelson

Working on updating module to work with newer FreePBX

parent 1416b212
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
......@@ -24,7 +24,7 @@ class Extension(object):
'voicemail_enable', 'voicemail_vmpwd', 'voicemail_email', 'voicemail_pager', 'voicemail_options',
'voicemail_same_exten', 'disable_star_voicemail', 'vmx_unavail_enabled', 'vmx_busy_enabled',
'vmx_temp_enabled', 'vmx_play_instructions', 'vmx_option_0_number', 'vmx_option_1_number',
'vmx_option_2_number')
'vmx_option_2_number', 'hint_override', 'bundle')
SPECIAL_ATTRIBUTES = ('findmefollow_postdest', 'findmefollow_grplist', 'mailbox', 'callerid', 'cid_masquerade',
'user', 'dial', 'id', 'voicemail', 'ringtime', 'mohclass', 'tech', 'devicetype',
'recording_in_external', 'recording_out_external', 'recording_in_internal',
......@@ -36,7 +36,8 @@ class Extension(object):
'sendrpid', 'sipdriver', 'timers', 'trustpid', 'callwaiting_enable', 'findmefollow_strategy',
'findmefollow_grptime', 'findmefollow_ringing', 'findmefollow_pre_ring',
'findmefollow_voicemail', 'findmefollow_calendar_match', 'findmefollow_changecid',
'voicemail_enable', 'voicemail_options', 'voicemail_same_exten', 'disable_star_voicemail')
'voicemail_enable', 'voicemail_options', 'voicemail_same_exten', 'disable_star_voicemail',
'emergency_cid', 'bundle')
def __init__(self, name: str, extension: int, **kwargs):
self.name = name
......@@ -490,3 +491,18 @@ class Extension(object):
key: getattr(self, key, None)
for key in self.HEADER
}
@property
def emergency_cid(self):
try:
return self._emergency_cid
except AttributeError:
return f'{self.extension}'
@property
def bundle(self):
try:
return self._bundle
except AttributeError:
return 'no'
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
......@@ -6,7 +6,7 @@ __license__ = "BSD"
setup(
name='freepbx_bulk_handler',
version='0.55',
version='0.60',
description="Assist administrators of FreePBX systems when they need to use the Bulk Handler module",
long_description="""This python package is designed to assist administrators of FreePBX systems when
they need to use the Bulk Handler module.""",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment