Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add files via upload #65

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions ciscoaxl/axl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1983,10 +1983,11 @@ def add_phone(
location="Hub_None",
phone_template="Standard 8861 SIP",
common_device_config="",
css="",
css="",
aar_css="",
subscribe_css="",
securityProfileName="",
ownerUserName="",
securityProfileName="",
lines=[],
dev_class="Phone",
protocol="SCCP",
Expand All @@ -1998,6 +1999,8 @@ def add_phone(
em_url_button_index="1",
em_url_label="Press here to logon",
ehook_enable=1,
enableActivationID = 'True',
allowMraMode = 'True',
):
"""
lines takes a list of Tuples with properties for each line EG:
Expand All @@ -2016,6 +2019,7 @@ def add_phone(
:param css:
:param aar_css:
:param subscribe_css:
:param ownerUserName:
:param lines:
:param dev_class:
:param protocol:
Expand All @@ -2027,6 +2031,8 @@ def add_phone(
:param em_url_button_index:
:param em_url_label:
:param ehook_enable:
:param enableactivationid:
:param allowmramode:
:return:
"""

Expand All @@ -2039,7 +2045,7 @@ def add_phone(
"protocolSide": "User",
"commonDeviceConfigName": common_device_config,
"commonPhoneConfigName": "Standard Common Phone Profile",
"softkeyTemplateName": softkey_template,
"softkeyTemplateName": softkey_template,
"phoneTemplateName": phone_template,
"devicePoolName": device_pool,
"locationName": location,
Expand All @@ -2052,6 +2058,9 @@ def add_phone(
"callingSearchSpaceName": css,
"automatedAlternateRoutingCssName": aar_css,
"subscribeCallingSearchSpaceName": subscribe_css,
"ownerUserName": ownerUserName,
"enableActivationID": True,
"allowMraMode": True,
"lines": {"line": []},
"services": {"service": []},
"vendorConfig": [{"ehookEnable": ehook_enable}],
Expand Down
Loading