(01-13-2017 03:29 PM)dmark Wrote: Hello!
I try to implement a remote phonebook with server-side search function.
The initial remote phonebook XML looks like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<YealinkIPPhoneDirectory>
<Title>Firma</Title>
<DirectoryEntry><Name>Albertine</Name><Telephone>(714) 208-2992</Telephone></DirectoryEntry>
<DirectoryEntry><Name>Barrett</Name><Telephone>(670) 217-0290</Telephone></DirectoryEntry>
<DirectoryEntry><Name>Christine</Name><Telephone>(680) 360-3348</Telephone></DirectoryEntry>
<DirectoryEntry><Name>Jeramy</Name><Telephone>(302) 102-6431</Telephone></DirectoryEntry>
<DirectoryEntry><Name>Kristen</Name><Telephone>(719) 481-2889</Telephone></DirectoryEntry>
<DirectoryEntry><Name>Mohamed</Name><Telephone>(942) 849-9823</Telephone></DirectoryEntry>
<DirectoryEntry><Name>Nana</Name><Telephone>(423) 475-8404</Telephone></DirectoryEntry>
<SoftKeyItem><Name>0</Name><URL>http://pbx/phonebook.php?t=company&k=0</URL></SoftKeyItem>
<SoftKeyItem><Name>1</Name><URL>http://pbx/phonebook.php?t=company&k=1</URL></SoftKeyItem>
<SoftKeyItem><Name>2</Name><URL>http://pbx/phonebook.php?t=company&k=2</URL></SoftKeyItem>
<SoftKeyItem><Name>3</Name><URL>http://pbx/phonebook.php?t=company&k=3</URL></SoftKeyItem>
<SoftKeyItem><Name>4</Name><URL>http://pbx/phonebook.php?t=company&k=4</URL></SoftKeyItem>
<SoftKeyItem><Name>5</Name><URL>http://pbx/phonebook.php?t=company&k=5</URL></SoftKeyItem>
<SoftKeyItem><Name>6</Name><URL>http://pbx/phonebook.php?t=company&k=6</URL></SoftKeyItem>
<SoftKeyItem><Name>7</Name><URL>http://pbx/phonebook.php?t=company&k=7</URL></SoftKeyItem>
<SoftKeyItem><Name>8</Name><URL>http://pbx/phonebook.php?t=company&k=8</URL></SoftKeyItem>
<SoftKeyItem><Name>9</Name><URL>http://pbx/phonebook.php?t=company&k=9</URL></SoftKeyItem>
<SoftKeyItem><Name>*</Name><URL>http://pbx/phonebook.php?t=company&k=A</URL></SoftKeyItem>
<SoftKeyItem><Name>#</Name><URL>http://pbx/phonebook.php?t=company&k=</URL></SoftKeyItem>
</YealinkIPPhoneDirectory>
If the "k" parameter is empty, the phonebook.php makes a search like "select * from phonebook order by name". If it is not empty, for example k=6 the select is "select * from phonebook where name like (mno)* order by name" ("6" means the letters on key 6).
In the example above, after pressing key 6 the phonebook.php would only deliver Mohamed and Nana. And additionally a new list of SoftKey Items:
Code:
<SoftKeyItem><Name>0</Name><URL>http://pbx/phonebook.php?t=company&k=60</URL></SoftKeyItem>
<SoftKeyItem><Name>1</Name><URL>http://pbx/phonebook.php?t=company&k=61</URL></SoftKeyItem>
[...]
so further key presses would refine the search.
This schema works fine on Snom phones for years. The problem with Yealink T42G-T48G (and probably others) is: They make a prefetch of all found URLs within the XML phonebook. Which make the search function pretty useless...
Is there a way to disable this prefetching completely. The http request should only be sent when the user presses a key.
I already enabled "features.remote_phonebook.enter_update_enable" but this does not disable prefetching.
Hello,
Would you please give me some screenshots about "prefetching" issue you met?
I don't really understand what the exact issue you met since I don't have the test environment, actually, we just developed a better search method for remote phonebook.
If you can record a short video to me, that would be better, I will check if the new search method can meet your requirement.
Upload link as below:
http://ftp.yealink.com/?ShareToken=5A186...112A708081
Regards
Travis