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

feature request: devices provisioning #22

Open
mmikel opened this issue May 28, 2022 · 3 comments
Open

feature request: devices provisioning #22

mmikel opened this issue May 28, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@mmikel
Copy link

mmikel commented May 28, 2022

It would be nice to be able to configure devices (intercoms, cameras, ...) via xml provisioning, not just SIP settings....

@cdeschambc
Copy link
Contributor

Hello,
this has been implemented since version 1.2 of Linhome
kind regards

@cdeschambc cdeschambc added the enhancement New feature or request label Dec 19, 2024
@cdeschambc cdeschambc reopened this Dec 19, 2024
@pgorod
Copy link

pgorod commented Jan 27, 2025

Hi

How can this be achieved?

Any docs that you can point me to?

Thanks!

@cdeschambc
Copy link
Contributor

Hello,
yes it can be achieved.
however it was not implemented via XML but via VCards (to be used with flexisip account manager contacts paradigm).
VCards received via a HTTP(S) GET are parsed in the app and translated to Devices with properties.
you can set the VCard url in the configuration file under the following entry. VCards will automatically be fetched and parsed as devices it they have the proper fields set (see below).

[misc]
contacts-vcard-list=<url of vcards>

The name of the VCard fields are listed in the Device class under Entities in the respective apps.

const val vcard_device_type_header = "X-LINPHONE-ACCOUNT-TYPE"
const val vcard_actions_list_header = "X-LINPHONE-ACCOUNT-ACTION"
const val vcard_action_method_type_header = "X-LINPHONE-ACCOUNT-DTMF-PROTOCOL"
val vCardActionMethodsToDeviceMethods = mapOf( "sipinfo" to "method_dtmf_sip_info","rfc2833" to "method_dtmf_rfc_4733","sipmessage" to "method_sip_message") // Server side method names to local app names

regards

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

No branches or pull requests

3 participants