Alberto wrote:
> Hi Damian,
> I made a simple port of the Snom plug-in. I'm generating the 
> configuration files with the new xml syntax. Everything work fine so 
> far. Address books are working again. Function keys too. I added a very 
> small subset of 7.x new options. I will add support for snom 370 that 
> seem pretty straightforward (unfortunately I don't own such a phone to 
> test it). 

Great news!

> The only thing I don't know how to work out are the parameters 
> permissions. In version 6 files the parameter followed by a symbol (!,$) 
> meant it was a read only or writable option from the user interface. So 
> parameters name were simply appending the right char to accomplish the 
> desired result. In the new xml syntax this is done with an xml attribute 
> for each element (phone parameter). Currently I simply set permission to 
> read/write for all. What I believe is the best solution is to give to 
> the admin the chance to set for each parameter the desired value. I'm 
> very new in plug-in development and I'd like if you can suggest me some 
> examples (maybe some other working plugins) to do something like this.
> Let me know
> Alberto
> 
> 

What do you think about following the way it used to work for older
versions of the plugin? As far as I remember the profileName for SNOM
settings can have (optional) suffix that you write about. No matter what
method you chose to generate new profiles (velocity, jdom, something else)
it should not be that complicated to strip the suffix  (if present) and use
its value to add desired SNOM XML attribute.

I you are unsure on how to do that, I  or some other sipXconfig contibutor
can help you once we see some code.
D.

_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to