FreePBX / superfecta

Provides simultaneous use of, and complete control over multiple caller id data sources.
http://www.freepbx.org
GNU General Public License v2.0
56 stars 92 forks source link

LocalTel.ch Asterisk 12 returns Blank #262

Open Britabroad opened 8 years ago

Britabroad commented 8 years ago

Hi, not sure if this is the right place. Running Asterisk 12 using FreePBX. Trying a look up using the Swissphone book. Debug returns : Searching Local.ch-Swiss ... result took 0.2396 seconds.

Phone number exists and returns value, but Superfecta is not displaying the result.

lgaetz commented 8 years ago

Confirmed, the URL and REGEX for this lookup source has changed. file: /var/www/html/admin/modules/superfecta/sources/source-LocalTel_CH.module

new search url: http://tel.local.ch/en/q?&what=$thenumber

Test phone numbers: returns multiple business results: 0414186666 returns single bus result: 0319214700 returns single residential result: 0329441313

Multiple business result REGEX: <a class="details-entry-title-link" href=".*?">(.+?)</a>

If search returns a single bus or res result, there is a redirect to a new URL: URL regex: <html><body>You are being <a href="(.+?)">redirected</a>.</body></html>

Load the redirect URL then search again for res and business REGEX: <h1 itemprop='name'>(.+?)</h1>

I will fix when time permits

ghost commented 8 years ago

Hi, i have the same issue, as Britabroad commented. Will this issue be fixed soon ? This would be great! Thanks Best Regards Thomas