[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cli friendly API for import/export/delete handset directories & blacklists?
Author Message
warthog9 Offline
Junior Member
**

Posts: 2
Joined: Sep 2021
Reputation: 0
Post: #1
cli friendly API for import/export/delete handset directories & blacklists?
So I'll preface this that I know the W60's web interface has a directory section the ability to export and import the local handset directories, that's not what I'm looking for (though I have no scripting up a selenium browser puppeting to get me access to these, I'll be publishing that once I've got it cleaned up some).

What I'm really looking for is some mechanism to call into the W60 from (preferably) a restful api and get the dump of the handset directories, and wipe them (I personally need the upload anything back, but if this exists it could be useful). My intention is to pull whatever edits / contacts are on the handset and slowly merge them upwards in the stack (remote directory, and up into the fully centralized directory that's more easily shareable across not only the W60 and it's handsets but other phones and situations).

Other Yealink phones have a bit of an API under /cgi-bin/ConfigManApp.com however in attempting to poke at that to get anything useful I didn't get anywhere, and there's precious little documentation about that (in particular with respect to the W60). In an ideal world there would be 3 (ok 4) commands under that:
/cgi-bin/ConfigManApp.com?9990&username=<username>&password=<password> (list handsets to query)
/cgi-bin/ConfigManApp.com?9991&handset=1&addressbook=[xml|csv]&username=<username>&password=<password> (where handset is either an index or name from 9990)
/cgi-bin/ConfigManApp.com?9992&handset=1&delete_addressbook&username=<username>&password=<password> (again where handset is either an index or name from 9990)

I don't actually care about the number involved 999[012] are there for illustrative purposes only. But I'm not seeing that kind of API. I've gone ahead and scripted up basically that API through Selenium, but that's not entirely ideal (although obviously better than nothing).

I've also noticed that handsets note a directory group of "Blacklist"

<group display_name="Blacklist" />

but Blacklist entries in the handset(s) don't seem to actually be stored / exported there. As far as I can tell the blacklist is not accessible in any way from the W60 which seems odd, and I suspect is a bug that those aren't being included in the directory export and the directory delete. Is anyone familiar with what's going on there?

(09-06-2021 04:51 AM)warthog9 Wrote:  [...]

but Blacklist entries in the handset(s) don't seem to actually be stored / exported there. As far as I can tell the blacklist is not accessible in any way from the W60 which seems odd, and I suspect is a bug that those aren't being included in the directory export and the directory delete. Is anyone familiar with what's going on there?

Also as a note the XML that the exporter generates is technically invalid as an empty root_contact generates:

<root_contact />

which generates

# xmllint somefile.xml
somefile.xml:6: parser error : Extra content at the end of the document
<root_contact />
^
#

It's also worth noting that the exported xml files have multiple roots and realistically need to be wrapped in a central single root element to be correct
(This post was last modified: 09-06-2021 05:41 AM by warthog9.)
09-06-2021 04:51 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Messages In This Thread
cli friendly API for import/export/delete handset directories & blacklists? - warthog9 - 09-06-2021 04:51 AM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  W90 W53 W59R Handset Keylock seatelOne 1 3,018 05-01-2021 03:15 PM
Last Post: MISTELECOS
  W60B Handset Intercom meeks726 4 4,423 12-02-2020 03:08 AM
Last Post: meeks726
  incorrect pin during registration of a second handset barny 12 14,337 09-04-2020 06:26 AM
Last Post: kientrucduytan
  W59R Handset jmbjmbjmb 1 3,042 08-16-2020 08:57 PM
Last Post: Yisroel_MongoTEL
  How to delete "missed call" notifcations from ALL w56H handsets at once? nangers123 3 4,396 07-10-2020 03:06 PM
Last Post: complex1
  handset will not ring-IP Office lrb45 1 2,695 10-09-2019 01:20 PM
Last Post: Evan_Yealink
  Change Display Name of Line on Handset Libertis 7 14,476 02-28-2019 07:30 PM
Last Post: complex1
  Delete handset button missed with FW 77.83.0.10 TWT_Support 0 2,868 09-18-2018 07:33 AM
Last Post: TWT_Support
  german translation issues W56h handset woodgee 8 10,984 07-26-2018 07:04 PM
Last Post: woodgee
  How to upgrade W52P handset firmware via W60B base?? regan 5 15,219 03-14-2018 10:42 AM
Last Post: complex1

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication