Damian Krzeminski ha scritto:

Thanks a lot. I will try to find some time to check this by the end of the
  week.

Thanks Damian! If it doesn't cost you too much time can you make the snom plug-in a separate project. It would be nice to test the plug-in just dropping a jar.
There is still an open issue: languages are not loaded in the phone
firmware in v7. To load a language we need to provide the links to them
in a different file. The file should look like this:

<?xml version="1.0" encoding="UTF-8"?>
<setting-files>
  <file url="http://provisioning.snom.com/config/web_lang2.xml"; />
  <file url="http://provisioning.snom.com/config/gui_lang2.xml"; />
  <file
url="http://ourSipXecs.example.com:8090/phone/profile/docroot/{mac}.xml"; />
</setting-files>

Very silly to say ... I don't know how to extend the plug-in to generate
a second file. It would be enough to generate it once. It's definitely
not needed to do it for every snom phone in the system.
Please tell me if there is a good place I can look to take the right
inspiration...

If the file never changes we can declare it as 'static' profile element.

    <property name="staticProfileFilenames">
      <list>
        <value>file-name.cfg</value>
      </list>
    </property>

But I am pretty sure that would not take care of generating proper URL.

We can just add another ProfileType - that requires some changes to the
plugin. You can grep for getProfileTypes to see how other plugins do that.
If you wait a day or two I'll try to make some changes to SnomPhone that
would make it easier.

Well I saw I could add a static profile. But the file there is not static. It contains a list of file the phone should load. First two are language files (actually fw 7.3.14 specific language files), the third is the sipxconfig phone profile. This make it non static. Using the {mac} variable we can skip adding it for all phone and do the thing just once.

I was thinking a better deploy solution to handle this. It wold be probably a good idea to extend the plug-in with an upload feature for language files, so that administrator would have the chance to load the right ones for their firmware version if they feel they do now want to generate lots of wan traffic just booting the phones. It's about 120 kbytes per phone. In this case the file above would have the first two lines pointing to some local destinations. Snom provide language files in tgz compressed file. Can we upload and uncompress with the Upload feature?

So if you like the idea the file above, let's call it snom.xml (first file to be loaded from the phone: dhcp option 67), will contain the basic provisioning link in the snom site for fw 7.3.14 out of the box. But if the sipxecs administrator load some other phone language files snom.xml changes accordingly pointing to some local destination. Is this possible with the current plug-in framework?

Thanks again
Alberto
_______________________________________________
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