[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
  [W70B Basis + W73H Handset] 2nd line for foreign country calls der.ronny@gmx.net 1 1,748 03-20-2024 09:34 PM
Last Post: complex1
  Handset won't ring while on the charger. therring 1 3,833 04-03-2023 09:40 PM
Last Post: FSUE
  W56H handset no tones or ring swdatanet 2 7,211 12-14-2022 07:14 PM
Last Post: adamjames1
  W73P (UK) Contacts Import Kestrel4765 0 2,336 08-22-2022 01:17 AM
Last Post: Kestrel4765
  increase volume on earpiece on W56H handset? Simon from Sydney 0 3,325 05-14-2022 01:08 PM
Last Post: Simon from Sydney
  The handset terminal does not see the base station wasp-1111 2 7,422 01-07-2022 12:14 AM
Last Post: Yisroel_MongoTEL
  W90 W53 W59R Handset Keylock seatelOne 1 6,940 05-01-2021 03:15 PM
Last Post: MISTELECOS
  W60B Handset Intercom meeks726 4 11,954 12-02-2020 03:08 AM
Last Post: meeks726
  incorrect pin during registration of a second handset barny 12 34,910 09-04-2020 06:26 AM
Last Post: kientrucduytan
  W59R Handset jmbjmbjmb 1 7,078 08-16-2020 08:57 PM
Last Post: Yisroel_MongoTEL

Forum Jump:


User(s) browsing this thread:

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