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_phone does not use "enableActivationID" and "enableActivationID" #67

Open
HouyauxS opened this issue Jun 4, 2024 · 0 comments
Open

Comments

@HouyauxS
Copy link

HouyauxS commented Jun 4, 2024

I've noticed during the usage of your library that in the dictionnary in the <add_phone> function, the keys "enableActivationID" and "allowMraMode" are forced to True and the arguments "allowMraMode" and "enableActivationID" are never used.

This makes the creation of certain types of phone impossible.

I've fixed it on my side like so :

req = {
            "name": name,
            "description": description,
            "product": product,
            "class": dev_class,
            "protocol": protocol,
            "protocolSide": "User",
            "commonDeviceConfigName": common_device_config,
            "commonPhoneConfigName": "Standard Common Phone Profile",
	    "softkeyTemplateName": softkey_template,
            "phoneTemplateName": phone_template,
            "devicePoolName": device_pool,
            "locationName": location,
            "useTrustedRelayPoint": "Off",
            "builtInBridgeStatus": "Default",
            "certificateOperation": "No Pending Operation",
            "packetCaptureMode": "None",
            "deviceMobilityMode": "Default",
            "enableExtensionMobility": enable_em,
            "callingSearchSpaceName": css,
            "automatedAlternateRoutingCssName": aar_css,
            "subscribeCallingSearchSpaceName": subscribe_css,
	    "ownerUserName": ownerUserName,
	    "enableActivationID": enableActivationID,  # Here
	    "allowMraMode": allowMraMode,  # And Here
            "lines": {"line": []},
            "services": {"service": []},
            "vendorConfig": [{"ehookEnable": ehook_enable}],
        }

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant