Alberto wrote:
> Hi,
> I extended the Snom (firmware v7) plug-in and I'm quite close to my
> personal expected target. I added some new features and changed few
> things. The most significant is some sort of BLF support.
> Looking at the Polycom plug-in as a reference I added the RLS uri
> setting in the generated config.
> 
> Snom phones permits one RLS uri per identity (line).  In fact the phone
> won't show events subscribed in this way in any psychical light, but
> instead it will show corresponding states on the display only in models
> 360 ad 370.
> This means it's possible to add and monitor up to 12 RLS uri. I don't
> really know if this i appropriate or even necessary, but I believe it
> could be nice to add this feature for users that needs it.
> 
> The very simple way is to generate the RLS uri using the same code in
> the method getResourceListId in SpeedDial. But I believe it isn't a good
> approach. I cannot predict if the RLS uri exists for that user and even
> worse if something change in the method above the plug-in will stop
> generating a correct uri.
> 
> Using the phone SpeedDial I could only get the RLS uri for the first
> line. It's quite logical in fact: speed-dials for many lines are not
> merged or appended on a single phone.
> 
> How can I get the SpeedDial object just knowing the user, getting in
> this way all SpeedDials for each line assigned to the phone?
> 
> Thanks in advance and best regards
> Alberto
> 

There is a SpeedDialManager.getSpeedDialForUserId

You'll need to inject "speadDialManager" bean into SnomPhone class. Check
out how it is injected in PhoneContextImpl - you need modify both the java
code and *.beans.xml file.

And once you have a user you can call it like that:
m_speedDialManager.getSpeedDialForUserId(user.getId(), false);

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
sipXecs IP PBX -- http://www.sipfoundry.org/

Reply via email to