Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocalTel.ch Asterisk 12 returns Blank #262

Open
Britabroad opened this issue Sep 23, 2015 · 2 comments
Open

LocalTel.ch Asterisk 12 returns Blank #262

Britabroad opened this issue Sep 23, 2015 · 2 comments

Comments

@Britabroad
Copy link

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
Copy link
Contributor

lgaetz commented Sep 23, 2015

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
Copy link

ghost commented Feb 24, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants