Paul Mossman wrote: > Damian wrote: > ... >>> I'll add a sendCheckSyncToMac() to Phone.java, and call it instead. >>> Sound good? >>> >>> >> That will work, but how about we try changing >> Line.getAddrSpec (make it use User.getAuthenticationUserName). > > Won't that still result in a URI specific to the first configured user > of the phone?
Yes. But it's up to add how we implement this method. It can find out how the lines were configured and choose the one that gives us a best way of reaching the phone. But you're right it won't work if there are no lines so maybe it was not a good idea. > > We need a URI that will reach the phone (provided the phone has a > registration to some user in the system.) > > My main motivation is for auto-provisioned phones. These will have > registered with the ~~id~sipXprovision special user, but this will not > be a "configured" line. i.e. Phone.sendCheckSyncToFirstLine() won't > even send a message because there is no first line. We are planning to configure this line automatically for phones that do not have any line, right? It does not have to be visible in UI but sipXconfig will know about it in some way. > > Consider also the case where Ned has left the company, and new hire Andy > now occupies his office. The phone in the office is currently > registered to Ned, and this matches the configuration. You delete the > Ned line, add a line for Andy, and Send Profiles. The "configured" line > is Andy, but the phone is registered to Ned. > > In both cases we need the NOTIFY to reach the phone regardless of what > its configured first line is, or whether one even exists. > > The "sip:~~in~[instrume...@[domain]" URI will give us this, but I'm > pretty sure "sip:~~in~[user]/[instrume...@[domain]" will not. > I am OK with adding a new method as you proposed. I was just hoping we can implement the existing method (maybe renaming it) so that it handles all the cases. But any other solution is good as well. Are you sure that sip:~~in~[instrume...@[domain] works if none line is registered? I was under impression it only works if there is at least one line configured and registered with instrument info in auth user name. 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/
