[Gelöst] Superfecta funktioniert nicht mehr richtig

robinsonR

Mitglied
Mitglied seit
17 Apr 2006
Beiträge
560
Punkte für Reaktionen
0
Punkte
16
Ich betreibe FreePBX 12.0.48 mit Asterisk 11.5.0. Mit dabei ist Superfecta 2.11.16 um Anrufer zu identifizieren. Jetzt habe ich festgestellt, dass das Modul Local.ch nicht mehr richtig funktioniert. Die Nummer wird zwar auf der entsprechenden Site gesucht und gefunden, die Auswertung schlägt aber fehl. So stellt sich das dar:
Code:
Debug From Child-5137-LocalTel_CH:

Array
(
)
Searching Local.ch-Swiss ... 
Search URL=http://tel.search.ch/index.en.html?was=0444444444
Orignal Raw Returned Data: 


Returned Content (w/Stripped \n\r\t):

Testing pattern=/class="(?:fn|fn org)">(.*)<\/a>/
Dumping Matches
array(0) {
}
wobei der Inhalt der beiden Felder [Orignal Raw Returned Data:] und [Returned Content (w/Stripped \n\r\t):] gleich ist:
HTML:
<!DOCTYPE html>
<html lang="en" class="no-js">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="2 results for 0444444444 with Taxi">
<link rel="shortcut icon" href="http://lib.search.ch/favicon.ico?v=2">
<title>Phone book entries for 0444444444 - search.ch</title>
<link rel="stylesheet" href="http://lib.search.ch/itjs/?files=searchlib.css,searchlib-full.css,hopscotch.css&c=31ec769f65">
<link rel="stylesheet" href="/itjs/?files=tel.css,tel-full.css&c=cb456f6585">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600">
<meta name="viewport" content="initial-scale=1.0, width=device-width">
<meta name="apple-mobile-web-app-title" content="Phone book entries for 0444444444">
<link rel="apple-touch-icon-precomposed" href="http://lib.search.ch/images/touch/tel.png">
<meta name="msapplication-TileImage" content="http://lib.search.ch/images/touch/tel.png">
<meta name="msapplication-TileColor" content="#e4002c">
<link title="tel.search.ch - The phone directory" type="application/opensearchdescription+xml" rel="search" href="/opensearch.xml">
<script>document.documentElement.className = document.documentElement.className.replace(/(^|\s)no-js(\s|$)/, '$1js$2');</script>
<link rel="alternate" hreflang="x-default" title=" " href="http://tel.search.ch/?was=0444444444">
<link rel="alternate" hreflang="de" title="de" href="http://tel.search.ch/?was=0444444444">
<link rel="alternate" hreflang="fr" title="fr" href="http://tel.search.ch/index.fr.html?was=0444444444">
<link rel="alternate" hreflang="it" title="it" href="http://tel.search.ch/index.it.html?was=0444444444">
<link rel="alternate" hreflang="en" title="en" href="http://tel.search.ch/index.en.html?was=0444444444">
</head>
<body class="sl-service-tel"><!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-WK63X8"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script type="text/javascript">window.trace+="g";(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-WK63X8');window.trace+="G";</script>
<!-- End Google Tag Manager -->
<div style="position:absolute"><img class="audit" src="http://search.wemfbox.ch/cgi-bin/ivw/CP/tel/en?d=69103" alt="" style="width:0; height:0; border:0; padding:0"><div id="cX-root" style="display:none"></div>
<script>window.trace+="x";
			var cX = cX || {};
			cX.callQueue = cX.callQueue || [];
			cX.callQueue.push(["setAccountId", "9222261420329101882"]);
			cX.callQueue.push(["setSiteId", "9222261986533147876"]);
			cX.callQueue.push(["sendPageViewEvent"]);
			(function() {
				try {
					function go() {
						var sel = document.createElement("script");
						sel.type = "text/javascript";
						sel.async = "async";
						sel.src = "https:" == document.location.protocol ? "https://scdn.cxense.com/cx.js" : "http://cdn.cxense.com/cx.js";
						var el = document.getElementsByTagName("script")[0];
						el.parentNode.insertBefore(sel, el);
					}
					if (window.addEventListener)
						window.addEventListener("load", go, false);
					else if (window.attachEvent)
						window.attachEvent("onload", go);
				} catch(e) {}
			})();
			window.trace+="X";</script>
<img class="audit" alt="" style="width:0; height:0; border:0; padding:0" src="http://www.search.ch/audit/NCP/tel/en/result?d=65800"></div>
<img class="sl-printonly sl-logo-print" alt="search.ch" src="http://lib.search.ch/images/search-logo-print.svg"><div class="sl-nav-container sl-screenonly"><div class="sl-nav"><div class="sl-nav-inner"><a href="http://www.search.ch/index.en.html" title="Start page"><div id="sl-logo" class="sl-logo left"></div>
</a><ul class="sl-nav-items-container"><li class="sl-nav-item right"><div id="sl-user-login" class="sl-user-login-container"><a class="sl-profile-badge" href="#" title="Login"><span data-open-user-login class="sl-icon-monospace sl-icon-profile"></span></a><form method="post" action="http://login.search.ch/login.en.html"><ul class="sl-floatlist sl-login-items"><li><a href="#" data-close-user-login><span class="sl-icon-monospace sl-icon-close"></span></a></li><li class="sl-login-input"><input type="text" placeholder="Username" name="LoginName"><div class="sl-form-row-field-action-right sl-icon-clear" style="display:none"></div>
</li><li class="sl-login-input"><input type="password" placeholder="Password" name="Password"><div class="sl-form-row-field-action-right sl-icon-clear" style="display:none"></div>
</li><li><input type="hidden" name="f" value="http://tel.search.ch/index.en.html?was=0444444444"><input type="submit" value="OK"></li><li><a class="sl-text-link" href="http://login.search.ch/register.en.html?f=http%3A%2F%2Ftel.search.ch%2Findex.en.html%3Fwas%3D0444444444">Register</a></li></ul>
<!--valid--></form>
</div>
</li><li class="sl-nav-item right"><div id="sl-language-selector" data-language-selector-status="" class="sl-language-selector-desktop"><div class="sl-language-list"><a href="/?was=0444444444" class="sl_state_link">DE</a><a href="/index.fr.html?was=0444444444" class="sl_state_link">FR</a><a href="/index.it.html?was=0444444444" class="sl_state_link">IT</a><a href="/index.en.html?was=0444444444" class="sl_state_link sl-is-active">EN</a></div>
</div>
</li><li class="sl-nav-item right"><a id="sl-more-link" class="sl-menu-link sl-vertical-center" href="#sl-flyout-menu"><span class="sl-icon-monospace sl-icon-more"></span><span class="sl-menu-title">More</span></a></li><li class="sl-nav-item sl-menu-active" data-moveable title="tel.search.ch - The phone directory"><a class="sl-menu-link sl-vertical-center" href="http://tel.search.ch/index.en.html"><span class="sl-icon-monospace sl-icon-service-tel"></span><span class="sl-menu-title">Directory</span></a></li><li class="sl-nav-item" data-moveable title="Current weather in 3197 cities of Switzerland"><a class="sl-menu-link sl-vertical-center" href="http://meteo.search.ch/index.en.html"><span class="sl-icon-monospace sl-icon-service-meteo"></span><span class="sl-menu-title">Weather</span></a></li><li class="sl-nav-item" data-moveable title="Map of Switzerland with route planner"><a class="sl-menu-link sl-vertical-center" href="http://map.search.ch/index.en.html"><span class="sl-icon-monospace sl-icon-service-map"></span><span class="sl-menu-title">Map / Route</span></a></li><li class="sl-nav-item" data-moveable title="Plan a trip using public transport."><a class="sl-menu-link sl-vertical-center" href="http://timetable.search.ch/index.en.html"><span class="sl-icon-monospace sl-icon-service-oev"></span><span class="sl-menu-title">Timetable</span></a></li><li class="sl-nav-item" data-moveable title="TV program"><a class="sl-menu-link sl-vertical-center" href="http://tv.search.ch/index.en.html"><span class="sl-icon-monospace sl-icon-service-tv"></span><span class="sl-menu-title">TV guide</span></a></li><li class="sl-nav-item" data-moveable title="Movie Guide"><a class="sl-menu-link sl-vertical-center" href="http://kino.search.ch/index.en.html"><span class="sl-icon-monospace sl-icon-service-kino"></span><span class="sl-menu-title">Cinema</span></a></li><li class="sl-nav-item" data-moveable title="Snow report for more than 200 Swiss winter sports areas"><a class="sl-menu-link sl-vertical-center" href="http://meteo.search.ch/snow.en.html"><span class="sl-icon-monospace sl-icon-service-snow"></span><span class="sl-menu-title">Snow</span></a></li><li class="sl-nav-item" data-moveable title="Search the Web"><a class="sl-menu-link sl-vertical-center" href="http://web.search.ch/index.en.html"><span class="sl-icon-monospace sl-icon-service-web"></span><span class="sl-menu-title">Web search</span></a></li></ul>
</div>
</div>
<div id="sl-service-form-container" class="sl-screenonly"><form id="tel-form-simple" style="" action="/index.en.html"><div class="tel-feedback-col"><div class="tel-feedback-row"><div class="tel-bar-container"><div class="tel-result-bar"></div>
<span class="tel-result-count">2</span><span class="tel-result-label">entries</span></div>
</div>
<div><div class="tel-input"><input class="tel-feedback" type="text" name="was" placeholder="Who/what/phone number" value="0444444444"><div class="sl-form-row-field-action-right sl-icon-clear" style="display:none"></div>
</div>
<div class="tel-input"><input class="tel-feedback" type="text" name="wo" placeholder="Where" value=""><div class="sl-form-row-field-action-right sl-icon-clear" style="display:none"></div>
</div>
</div>
</div>
<div class="tel-submit-col"><label><input class="tel-feedback" type="checkbox" name="privat" checked value="1">Private</label><label><input class="tel-feedback" type="checkbox" name="firma" checked value="1">Business</label></div>
<div class="tel-submit-col"><input type="submit" value="Search"></div>
<div class="tel-form-toggle"><a href="/index.en.html?extended=1&was=0444444444" onclick="$("#tel-form-extended").show(); $("#tel-form-simple").hide(); return false"><span class="tel-switch-form-label">Extended search</span><span class="tel-form-spickel sl-icon-down"></span></a></div>
<!--valid--></form>
<form id="tel-form-extended" style="display:none" action="/index.en.html"><div class="tel-feedback-col"><div class="tel-feedback-row"><div class="tel-bar-container"><div class="tel-result-bar"></div>
<span class="tel-result-count">2</span><span class="tel-result-label">entries</span></div>
</div>
<div><div class="tel-input"><input class="tel-feedback" type="text" name="name" placeholder="Name/First name"><div class="sl-form-row-field-action-right sl-icon-clear" style="display:none"></div>
</div>
<div class="tel-input"><input class="tel-feedback" type="text" name="misc" placeholder="Sector/Occupation"><div class="sl-form-row-field-action-right sl-icon-clear" style="display:none"></div>
</div>
<div class="tel-input"><input class="tel-feedback" type="text" name="strasse" placeholder="Street"><div class="sl-form-row-field-action-right sl-icon-clear" style="display:none"></div>
</div>
<div class="tel-input"><input class="tel-feedback" type="text" name="ort" placeholder="City"><div class="sl-form-row-field-action-right sl-icon-clear" style="display:none"></div>
</div>
<div class="tel-input"><select class="tel-feedback tel-canton-select" name="kanton"><option value="">Canton (all)</option>
<option value="AG">AG</option>
<option value="AI">AI</option>
<option value="AR">AR</option>
<option value="BE">BE</option>
<option value="BL">BL</option>
<option value="BS">BS</option>
<option value="FR">FR</option>
<option value="GE">GE</option>
<option value="GL">GL</option>
<option value="GR">GR</option>
<option value="JU">JU</option>
<option value="LU">LU</option>
<option value="NE">NE</option>
<option value="NW">NW</option>
<option value="OW">OW</option>
<option value="SG">SG</option>
<option value="SH">SH</option>
<option value="SO">SO</option>
<option value="SZ">SZ</option>
<option value="TG">TG</option>
<option value="TI">TI</option>
<option value="UR">UR</option>
<option value="VD">VD</option>
<option value="VS">VS</option>
<option value="ZG">ZG</option>
<option value="ZH">ZH</option>
<option value=" " disabled>*</option>
<option value="FL">FL</option>
</select>
</div>
<div class="tel-input"><input class="tel-feedback" type="text" name="tel" placeholder="Phone number"><div class="sl-form-row-field-action-right sl-icon-clear" style="display:none"></div>
</div>
</div>
</div>
<div class="tel-submit-col"><label><input class="tel-feedback" type="checkbox" name="privat" checked value="1">Private</label><label><input class="tel-feedback" type="checkbox" name="firma" checked value="1">Business</label><input type="submit" value="Search"></div>
<div class="tel-form-toggle"><a href="/index.en.html?extended=0&was=0444444444" onclick="$("#tel-form-simple").show(); $("#tel-form-extended").hide(); return false"><span class="tel-switch-form-label">Simple search</span><span class="tel-form-spickel sl-icon-up"></span></a></div>
<!--valid--></form>
</div>
</div>
<div class="sl-cards-container"><!-- Date: Wed Mar 25 23:29:00 CET 2015 -->
<div class="sl-loadmore-section" data-maxpage="1"><div class="sl-col sl-col-5 sl-col-4-medium"><section class="sl-card tel-result-tips sl-error"><div class="sl-card-inner"><div class="sl-card-body"><div></div>
</div>
</div>
</section>
<section class="sl-card tel-card-results"><header><a class="sl-card-action sl-icon-service-map sl-screenonly" href="http://map.search.ch/index.en.html?was=0444444444&b=low">Show on map</a><h1>2 entries for 0444444444</h1>
</header>
<ol class="tel-results tel-entries"><li class="tel-commercial tel-paid"><article class="tel-resultentry"><table class="tel-resultentry"><tr><td rowspan="2" class="tel-result-left"><a href="/zuerich/ausstellungsstrasse-36/taxi-444-ag.en.html"><img class="tel-result-image" src="/images/eintrag/minilogo/cbab9e3c226fab972077d12f372a264a.jpg" alt=""></a></td>
<td colspan="2" class="tel-result-main"><div class="tel-categories">Taxi</div>
<h1><a href="/zuerich/ausstellungsstrasse-36/taxi-444-ag.en.html">Taxi 444 AG</a></h1>
<div class="tel-occupation">Tag- u. Nachtbetrieb Zürich u. Agglomeration</div>
</td>
</tr><tr><td class="tel-result-main"><div class="tel-address">Ausstellungsstrasse 36, <span class="tel-zipcity"><span class="postal-code">8005</span> <span class="locality">Zürich</span><span class="region"></span></span></div>
<div class="tel-number"><span class="sl-nowrap"><a href="http://tel.search.ch/voip.en.html?tel=0444444444" title="Contact over VoIP" class="value" data-stats="//tel.search.ch/r/?tel.id=c3ff796bfbc3346d&event=call!kbab4f2e25cccc6f2/http://tel.search.ch/index.en.html"><span class="sl-keyword">044 444 44 44</span></a> *</span> | <a href="http://www.taxi444.ch">www.taxi444.ch</a></div>
</td>
<td class="tel-result-right"><ul class="tel-result-actions sl-screenonly"><li><a class="tel-result-action" href="/zuerich/ausstellungsstrasse-36/taxi-444-ag.en.html">Details</a></li>
</ul></td>
</tr></table></article></li><li class="tel-commercial"><article class="tel-resultentry"><table class="tel-resultentry"><tr><td rowspan="2" class="tel-result-left"><a href="/zuerich/ausstellungsstrasse-36/taxi-444-ag-2.en.html"><img class="tel-result-image default" src="http://tel.search.ch/images/organisation.png" alt=""></a></td>
<td colspan="2" class="tel-result-main"><div class="tel-categories">Taxi</div>
<h1><a href="/zuerich/ausstellungsstrasse-36/taxi-444-ag-2.en.html">Taxi 444 AG</a></h1>
<div class="tel-occupation">Tag- u. Nachtbetrieb Zürich u. Agglomeration 24h Dienst</div>
</td>
</tr><tr><td class="tel-result-main"><div class="tel-address">Ausstellungsstrasse 36, <span class="tel-zipcity"><span class="postal-code">8005</span> <span class="locality">Zürich</span><span class="region"></span></span></div>
<div class="tel-number"><span class="sl-nowrap"><a href="http://tel.search.ch/voip.en.html?tel=0444444444" title="Contact over VoIP" class="value" data-stats="//tel.search.ch/r/?tel.id=9774986f480fe702&event=call!kbab4f2e25cccc6f2/http://tel.search.ch/index.en.html"><span class="sl-keyword">044 444 44 44</span></a> *</span></div>
</td>
<td class="tel-result-right"><ul class="tel-result-actions sl-screenonly"><li><a class="tel-result-action" href="/zuerich/ausstellungsstrasse-36/taxi-444-ag-2.en.html">Details</a></li>
</ul></td>
</tr></table></article></li></ol>
</section>
<div><div class="tel-nopromo">* No advertising material</div>
<div class="tel-footnote">Data source: Swisscom Directories AG</div>
</div>
<div style="clear:both"></div>
<section class="sl-card tel-result-all-valid sl-info sl-screenonly"><div class="sl-card-inner"><div class="sl-card-body">You can <a id="changelink" href="/?was=0444444444&changemode=1">correct an entry</a>, <a href="/edit/index.html">add a private entry</a> or <a href="/edit/index.html?business=1">add company/public service entry</a>.</div>
</div>
</section>
</div>
<div class="sl-col sl-col-3 sl-col-4-medium"><section class="sl-card tel-toplinks"><div class="sl-card-inner"><header><a class="sl-card-action sl-screenonly" href="http://werbung.search.ch/kmu">Your sponsored link here</a><h2 class="sl-card-header-title">Sponsored</h2>
</header>
<ol class="tel-results"><li class="tel-ad"><article><table class="tel-resultentry"><tr><td class="tel-result-left"><a href="/daellikon/industriestrasse-30/taxi-jung.en.html" data-stats="//tel.search.ch/r/?tel.id=4ee7ff5c61ab040f&event=tlclick!kbab4f2e25cccc6f2/http://tel.search.ch/index.en.html"><img class="tel-result-image" style="background:white" src="/images/toplink.png" alt="Jung AG Taxibetrieb Tel. 044  271 11 88"></a></td>
<td class="tel-result-main"><div class="tel-categories">Taxi, Dällikon</div>
<h1><a href="/daellikon/industriestrasse-30/taxi-jung.en.html" data-stats="//tel.search.ch/r/?tel.id=4ee7ff5c61ab040f&event=tlclick!kbab4f2e25cccc6f2/http://tel.search.ch/index.en.html">Jung AG Taxibetrieb Tel.*044  271*11*88</a></h1>
<p class="tel-ad-slogan">Über 70 Jahre Erfahrung - jung, dynamisch und einfach etwas menschlicher!</p>
<a href="http://www.taxijung.ch" data-stats="//tel.search.ch/r/?tel.id=4ee7ff5c61ab040f&event=tlwebsite!kbab4f2e25cccc6f2/http://tel.search.ch/index.en.html">www.taxijung.ch</a><span class="sl-screenonly"> | </span><a class="sl-screenonly" href="/daellikon/industriestrasse-30/taxi-jung.en.html" data-stats="//tel.search.ch/r/?tel.id=4ee7ff5c61ab040f&event=tlclick!kbab4f2e25cccc6f2/http://tel.search.ch/index.en.html">address</a></td>
</tr>
</table>
</article>
</li>
<li class="tel-ad"><article><table class="tel-resultentry"><tr><td class="tel-result-left"><a href="/zuerich/ausstellungsstrasse-36/taxi-444-ag.en.html" data-stats="//tel.search.ch/r/?tel.id=c3ff796bfbc3346d&event=tlclick!kbab4f2e25cccc6f2/http://tel.search.ch/index.en.html"><img class="tel-result-image" style="background:white" src="/images/toplink.png" alt="Taxi 444 das zuverlässige Taxi-Unternehmen in Zürich,  0 444 444 444"></a></td>
<td class="tel-result-main"><div class="tel-categories">Taxi, Zürich</div>
<h1><a href="/zuerich/ausstellungsstrasse-36/taxi-444-ag.en.html" data-stats="//tel.search.ch/r/?tel.id=c3ff796bfbc3346d&event=tlclick!kbab4f2e25cccc6f2/http://tel.search.ch/index.en.html">Taxi 444 das zuverlässige Taxi-Unternehmen in Zürich,  0*444*444*444</a></h1>
<p class="tel-ad-slogan">Jederzeit, 365 Tage im Jahr, während 24h, perfekter Taxiservice gewährleistet</p>
<a href="http://www.taxi444.ch" data-stats="//tel.search.ch/r/?tel.id=c3ff796bfbc3346d&event=tlwebsite!kbab4f2e25cccc6f2/http://tel.search.ch/index.en.html">www.taxi444.ch</a><span class="sl-screenonly"> | </span><a class="sl-screenonly" href="/zuerich/ausstellungsstrasse-36/taxi-444-ag.en.html" data-stats="//tel.search.ch/r/?tel.id=c3ff796bfbc3346d&event=tlclick!kbab4f2e25cccc6f2/http://tel.search.ch/index.en.html">address</a></td>
</tr>
</table>
</article>
</li>
<li class="tel-ad"><article><table class="tel-resultentry"><tr><td class="tel-result-left"><a href="/zuerich/zypressenstrasse-76/7-x-7-fahrdienste-ag.en.html" data-stats="//tel.search.ch/r/?tel.id=085ef664577f3a31&event=tlclick!kbab4f2e25cccc6f2/http://tel.search.ch/index.en.html"><img class="tel-result-image" style="background:white" src="/media/84cfd027d3b264cfdd5857591bc04b3d.jpg/l/160x160+0+0/75x75/3d389b8c48f7a7ee789050e388262082.jpg" alt="7 x 7 TAXI Tel. 044 777 77 77"></a></td>
<td class="tel-result-main"><div class="tel-categories">Taxi, Zürich</div>
<h1><a href="/zuerich/zypressenstrasse-76/7-x-7-fahrdienste-ag.en.html" data-stats="//tel.search.ch/r/?tel.id=085ef664577f3a31&event=tlclick!kbab4f2e25cccc6f2/http://tel.search.ch/index.en.html">7 x 7 TAXI Tel.*044*777*77*77</a></h1>
<p class="tel-ad-slogan">So einfach geht Taxi bestellen heute: Online bestellen!</p>
<a href="http://www.7x7.ch/" data-stats="//tel.search.ch/r/?tel.id=085ef664577f3a31&event=tlwebsite!kbab4f2e25cccc6f2/http://tel.search.ch/index.en.html">www.7x7.ch</a><span class="sl-screenonly"> | </span><a class="sl-screenonly" href="/zuerich/zypressenstrasse-76/7-x-7-fahrdienste-ag.en.html" data-stats="//tel.search.ch/r/?tel.id=085ef664577f3a31&event=tlclick!kbab4f2e25cccc6f2/http://tel.search.ch/index.en.html">address</a></td>
</tr>
</table>
</article>
</li>
</ol>
<div class="sl-card-footer"><div class="sl-screenonly"></div>
</div>
</div>
</section>
<section class="sl-card sl-banner ad-block sl-screenonly"><div class="sl-card-inner"><header><h2 class="sl-card-header-title">Ad<button class="sl-icon-close right sl-no-js-hidden"> </button>
</h2>
</header>
<div class="sl-card-body"><div class="sl_bv" id="sl_bvid_276924"><div style="width:300px; height:250px; margin:auto"><iframe width="300" height="250" id="sl_if1" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" src="/iframe_ad.html?campaignname=RoS_MixPlus_mediaschneider_tutti_Maerz_IC90_de_102514&bannername=tutti_TT1504-REC_300x250-MyClimate-DE.txt&iframeid=sl_if1&content=1VRNb9swDL33V6gGgqQHfyVx0sRWBszLoYcAQ9e7IcuMrUWWDVnOx9AfPzpOs3RYgR03wAYIinrk4yMVNVyL2hBzqoFaBo7G%2Fc72rPdaq6zibQnKOFlVMqEIJcMGmOaFw4thSPZME7HV6K6Z7sMu8TmYtYTO%2FHx6ykbDRiZi6w8fQowno%2Fvu0utrd9c5iMwU5J6Siec9kCuArDgzolKOhloyDqNhYUy9dF2WOdcS3JQpBTptc6cwpUT4yO1LX91F97adNoZpY9ur6EJTMpW3LEeqNyxJozm1OvgG8Y1mfOewbFvp0lFgMOG2D3Q%2FpYoGc8%2FzF4uQS8F39E81nU%2FO9bic%2BvPx3Jssn6tvyUYcv8q2SUrIBKYuFIgMdGJaY0SyYaB%2FJE%2FxwksySHxvHPhTN6Xj%2BWwxni77mJcXP%2FCm9vM6TrBXx3Hg2ZtTLEXJDNhf1o5B8ST1g9lgHg8mMa9aZfQp4cVgsu5c5w%2BU22pJrY8Uv7t2MFLVm8VIoWHb9%2Bi%2FpPuhuPE7UWPqYWOYxumlVpLitOysVSTK%2FC9GBPQe3oHhlXOPp2GlM%2FoYLOaBPxk%2F%2BjOLpOgBTS3Mdh5%2FaiFDixQg8gIzI1WLMImWRdxV5DL8f4nRlXM5bMxJooh11YhuV5YsbSrZGggvGZZeeEng18fwgr9E%2B2bmf9dzL%2BDwL8uJ9N%2FW7nA43BSOSDk0rufkYtv1rX8BQGW4%2Fz8B&crc=b53de0b8c4a8f2d54210ac33aece161c">*</iframe></div></div>
</div>
</div>
</section>
</div>
<div style="clear:both; padding-top:1em"><section class="sl-card sl-banner ad-block sl-screenonly"><div class="sl-card-inner"><header><h2 class="sl-card-header-title">Ad<button class="sl-icon-close right sl-no-js-hidden"> </button>
</h2>
</header>
<div class="sl-card-body"><div class="sl_bv" id="sl_bvid_272518"><!--bstart--><a href="http://ad.search.ch/click.html/c=170207:RoS_TrafficFund_Homegate_Onlinehypo_Desktop_Wb_Q1-15_de_fr_102609/b=272518:Display-Wideboard_1_onhyp_d_20150123.gif/l=179%7C%7C%7C%7Cen/url=http://www.homegate.ch/hypotheken/vorgehen?a=default&l=default&utm_source=sea&utm_medium=wb&utm_term=fh_10&utm_campaign=wk_15_vademecum_d" target="_blank"><img src="http://ad.search.ch/view.html/c=170207:RoS_TrafficFund_Homegate_Onlinehypo_Desktop_Wb_Q1-15_de_fr_102609/b=272518:Display-Wideboard_1_onhyp_d_20150123.gif/l=179%7C%7C%7C%7Cen/img=ads/07968d3accf8ab00f9a1f9990c673fcb.gif" alt="" width="994" height="250" border="0" /></a><!--bend--></div>
</div>
</div>
</section>
</div>
</div>
<div class="sl-loadmore-throbber"></div>
</div>
<div class="sl-footer"><div class="sl-flyout-menu" id="sl-flyout-menu"><div class="sl-footer-column"><ul class="sl-footer-link-list left"><li><a href="http://www.search.ch/about.en.html">search.ch / Tamedia</a></li>
<li><a href="http://www.search.ch/jobs.en.html">Jobs at search.ch</a></li>
</ul>
<ul class="sl-footer-link-list left"><li><a href="http://www.search.ch/terms.en.html">GT & C</a></li>
<li><a href="//werbung.search.ch/">Advertising</a></li>
</ul>
<ul class="sl-footer-link-list left"><li><a href="http://www.search.ch/contact.en.html?s=tel">Contact</a></li>
<li><ul class="sl-inline-icon-list"><li><a href="https://facebook.com/search.ch"><span class="sl-icon-share-facebook"></span></a></li>
<li><a href="https://twitter.com/searchch"><span class="sl-icon-share-twitter"></span></a></li>
<li><a href="https://plus.google.com/+search-ch/posts"><span class="sl-icon-share-google"></span></a></li>
</ul>
</li>
</ul>
<ul class="sl-footer-link-list left"><li class="sl-no-js-hidden"><a class="sl-start-tour" href="#">Start tour</a></li>
</ul>
</div>
<div class="sl-more-column"><ul id="sl-more-links-list" class="sl-more-links-list"></ul>
</div>
</div>
</div>
<div style="height:1.956em;"><div class="sl-betanotice sl-screenonly"><span class="sl-no-js-hidden"><a class="sl-start-tour" href="#">Start tour</a> | </span><a href="http://lib.search.ch/images/bt_classicdesktop.gif?url=http%3A%2F%2Ftel.search.ch%2Findex.en.html%3Fwas%3D0444444444">Back to classic version</a></div>
</div>
<div id="sl-tribune-small"><!-- <iframe class="sl-tribune-ad" src="http://ad.search.ch/htmlbanner.html?host=tel.search.ch&uri=%2Fresult&keyword=%5B+0444444444+%5D%5B+0444444444+%5D%5B+0444444444+%5D&keywordtext=0444444444&region=8005&category=taxi&vars[name]=Taxi+444+AG&vars[ort]=Z%C3%BCrich&iframe=1&language=en&exclude=ricardo&place=tribune_small"></iframe>
 --></div>
<div id="sl-tribune-big"><!-- <iframe class="sl-tribune-ad" src="http://ad.search.ch/htmlbanner.html?host=tel.search.ch&uri=%2Fresult&keyword=%5B+0444444444+%5D%5B+0444444444+%5D%5B+0444444444+%5D&keywordtext=0444444444&region=8005&category=taxi&vars[name]=Taxi+444+AG&vars[ort]=Z%C3%BCrich&iframe=1&language=en&exclude=ricardo&place=tribune_big"></iframe>
 --></div>
<script>window.trace += "e";document.domain = "search.ch"; 
window.onerror = function (errmsg, file, line, column, errorObj) {
	var stack = errorObj && errorObj.stack ? "&stack=" + errorObj.stack.substr(0, 300) : "";
	var errstr = typeof errmsg !== 'string' ? 'event keys:' + Object.keys(errmsg).join() : errmsg;
	var el = document.activeElement;
	var typing = el && (el.tagName.toLowerCase() == 'input' && el.type == 'text' || el.tagName.toLowerCase() == 'textarea');
	if (!typing && !window.sl_noretry && errstr.match(/SyntaxError/) && !window.location.href.match(/retry=/) && !env.post)
		window.location.replace(window.location.href + (window.location.search ? "&retry=2" : "?retry=2"))
	else if (!window.sl_errurl)
		window.sl_errurl = (new Image()).src = "/itjs/error.gif?errmsg=" + encodeURIComponent(errstr) + "&file=" + encodeURIComponent(file) + "&line=" + line + "&trace=" + window.trace.substr(9) + "&gotjs=" + encodeURIComponent(window.it_gotjs) + stack;
	
}

// Ads coming from external adservers can close their container if they have no content to avoid white boxes
"addEventListener" in window && window.addEventListener("message", function(ev) {
	for (var e = document.getElementById(ev.data); e; e = e.parentNode)
		if (/sl-banner(\s|$)/.test(e.className))
			e.style.display = "none";
}, false);
; var env = {t:{tel_entries:"entries",
tel_entry:"entry"},
tel_feedbackurl:"/feedback.en.php",
feedbackfields:{name:"N",
misc:"M",
strasse:"S",
ort:"O",
kanton:"K",
tel:"T",
was:"A",
wo:"W",
privat:"P",
firma:"F",
iquery:"Q",
all:"E"},
lang:"en",
audit_url:"http://www.search.ch/audit/CP/tel/en/result",
lib_url:"http://lib.search.ch/",
www_url:"http://www.search.ch/",
ua:{apptype:false,
full:true},
T:{searchlib_more:"More",
searchlib_less:"Less",
searchlib_locateme_denied:"You did not allow us to locate your actual position.",
searchlib_locateme_error:"Failed to determine the current location."},
post:0};window.trace += "E";</script>
<script src="/itjs/?files=jquerybuild.js,modernizr-min.js,sl.js,nav-full.js,service-form.js,geo.js,overlay.js,sl_sortable.js,hopscotch.min.js,tel-common.js,tel-full.js,fbpreload.js&c=9af67c001a" crossorigin="anonymous"></script>
<script>window.trace += "l";
			if (!("$" in window) && !window.location.href.match(/retry=/) && !env.post)
				window.location.replace(window.location.href + (window.location.search ? "&retry=1" : "?retry=1"));
			else
			$(document).ready(function () {
				window.sl_noretry = 1;
				$(document).on("click",".sl-banner .sl-icon-close", function() {
					$(this).closest(".sl-banner").animate({ height:0, padding:0 }, { duration:100, complete: function () { $(this).remove(); } })
						.find(".sl_bv").each(function() { new Image().src = "http://lib.search.ch/images/0.gif?r=2084446376&banner_close=" + this.id })
				});
				if ($(window).height() < 770 || $(window).width() < 1000)
					$(".sl-banner .sl-card-body").each(function() {
						var img = $(this).find("iframe,img");
						var imgwidth = img.width();
						var imgheight = img.height();
						var scale = imgheight > 150 && imgwidth > 900 ? 0.5 : 0;
						var origin = "top";
						if (imgwidth > $(window).width())
						{
							scale = ($(window).width() - 28) / imgwidth;
							origin = "top left";
						}
						if (scale)
							$(this).css({ "transform-origin":origin, transform:"scale(" + scale + ")", height:$(this).height() * scale + 10 });	// 2*5 pixel padding => + 10
					});$("input:text:visible,textarea:visible").first().each(function() { if (!$(this).attr("value")) $(this).focus() });});window.trace += "L";</script>
<script>$(function() {
			$(".sl-start-tour").on("click", function(e) {
				e.preventDefault();
				if ($(".sl-flyout-menu").hasClass("open"))
					$("#sl-more-link").click();	// Close menu
				try { hopscotch.startTour({"id":"search-tour","i18n":{"nextBtn":"Next","prevBtn":"Previous","doneBtn":"Close tour","closeTooltip":" "},"steps":[{"placement":"bottom","width":250,"zindex":10001,"xOffset":"10px","arrowOffset":"10px","showCloseButton":true,"showPrevButton":true,"showNextButton":true,"target":".tel-input:first-child:visible","title":"Quick search","content":"Name, sector and phone number in the first field. Street and city in the \u00abWhere\u00bb field."},{"placement":"bottom","width":250,"zindex":10001,"xOffset":"-257px","arrowOffset":"243px","showCloseButton":true,"showPrevButton":true,"showNextButton":true,"target":".tel-form-spickel:visible","title":"Extended search","content":"Extended search for sectors and a specific geographic search."},{"placement":"right","width":250,"zindex":10001,"xOffset":"0","arrowOffset":"center","showCloseButton":true,"showPrevButton":true,"showNextButton":true,"target":".tel-category-list:visible","title":"Top categories","content":"Select any category, enter more details, and search the directory."},{"placement":"bottom","width":250,"zindex":10001,"xOffset":"center","arrowOffset":"center","showCloseButton":true,"showPrevButton":true,"showNextButton":true,"target":".tel-feedback-row:visible","title":"Feedback bar","content":"Type until the feedback bar turns green. No further entry required."},{"placement":"bottom","width":250,"zindex":10001,"xOffset":"center","arrowOffset":"center","showCloseButton":true,"showPrevButton":true,"showNextButton":true,"target":".tel-feedback:visible","title":"Partial search results","content":"You will get search results as soon as you enter the first letters of a word."}]}) } catch(e) {}
				new Image().src = "http://lib.search.ch/tours.gif?service=tel_full&t=1427363815";
			});
			try {
				if (hopscotch.getState() !== null)
					$(".sl-start-tour").first().click();
			} catch(e) {}
		})</script>
</body>
</html>
Leider habe ich keine neuere Version gefunden. Kennt sich da jemand aus? vielleicht kann man ja das Modul händisch modifizieren.
 
Zuletzt bearbeitet:

killbyt

Neuer User
Mitglied seit
18 Apr 2015
Beiträge
13
Punkte für Reaktionen
0
Punkte
1
Hi RobinsonR

Ich hatte genau das selbe Problem und aus dem Umstand, dass ich PHP programmieren kann, habe ich das Modul kurzerhand abgeändert. Die Datei unter /*freepbx-webroot*/admin/modules/superfecta/sources/source-LocalTel_CH.module einfach mit der angehänten Version ersetzen.

Gruss Killbyt
 

Anhänge

  • source-LocalTel_CH_v1.zip
    1.1 KB · Aufrufe: 1
Zuletzt bearbeitet:

robinsonR

Mitglied
Mitglied seit
17 Apr 2006
Beiträge
560
Punkte für Reaktionen
0
Punkte
16
Super. Vielen Dank. Funktioniert fast einwandfrei. Ausser bei Nummern, die mehr als einen Eintrag haben, erhalte ich kein Ergebnis, z. B. 044 777 77 77 oder 044 444 44 44.
 

killbyt

Neuer User
Mitglied seit
18 Apr 2015
Beiträge
13
Punkte für Reaktionen
0
Punkte
1
Danke für das Feedback, wurde angepasst :)
 

Anhänge

  • source-LocalTel_CH_v1.zip
    1.1 KB · Aufrufe: 7

robinsonR

Mitglied
Mitglied seit
17 Apr 2006
Beiträge
560
Punkte für Reaktionen
0
Punkte
16
Danke. Jetzt läuft’s. Ist das dann eigentlich nur bei dir erhältlich oder pflegst du das in die offiziellen Quellen ein?
 

killbyt

Neuer User
Mitglied seit
18 Apr 2015
Beiträge
13
Punkte für Reaktionen
0
Punkte
1
Superfecta FreePBX 13 tel.search.ch Update

Hallo zusammen

Das ich letztens meine FreePBX distro von 12 auf 13 geupgradet habe, musste ich leider feststellen das Superfecta (nur tel.search.ch) nicht mehr richtig funktioniert. Daher habe ich den Quellcode kurz angepasst.
Ich habe zwar schon ein Pullrequest auf Github eröffnet, doch bis das in die aktuelle Soure eingepflegt wird, dauert es sicher noch ein bisschen. Daher für die, die nicht warten wollen:

Anhänge funktionieren irgendwie grad nicht, daher hier als Code formatiert die Datei: {freepbx_gui_root}/admin/modules/superfecta/sources/source-LocalTel_CH.module
PHP:
<?php
/*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Developer Notes:
TOS for this site: http://info.local.ch/en/general-terms-and-conditions 
TOS date: December 15, 2009
TOS summary by lgaetz: I have reviewed what is available on this page and can't see anything that prohibits or prevents superfecta from using this as a lookup source. date: 2014-01-06 

Version History
2016-04-18      Updated parse method (compatiple php 5.6), formatted code and did a bit of commentary
2015-04-19    Fixed bug if there are multiple results 
2015-04-18    Changed method for the request (use tel.search.ch API)
2012-xx-xx    Initial migration

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***/
class LocalTel_CH extends superfecta_base {

    public $description = "http://local.ch (tel.search.ch) -     These listings include business and residential data for Switzerland.";
    public $version_requirement = "2.11";

    function get_caller_id($thenumber, $run_param=array())
    {
        //Define vars
        $caller_id = null;
        
        //Check the number format
        if ((!$this->IsValidNumber('CH', $thenumber))) 
        {
            $this->DebugPrint("Skipping Source - Not a valid Swiss number: {$thenumber}");
        } 
        else 
        {
            $this->DebugPrint("Searching Local.ch-Swiss ... ");
            $request = "http://tel.search.ch/api/?was=$thenumber";
            $feed = implode(file($request));
            //Load XML
            if(!$xml = simplexml_load_string($feed))
            {
                $this->DebugPrint("not found (xml error)");
                return($caller_id);
            }
            //Parse to json
            if(!$json = json_encode($xml))
            {
                $this->DebugPrint("not found (json encode error)");
                return($caller_id);
            }
            if(!$array = json_decode($json,TRUE))
            {
                $this->DebugPrint("not found (json decode error)");
                return($caller_id);
            }
            else
            {
                //Check if a result has been found
                if(array_key_exists('entry', $array))
                {
                    //Check if there are multiple results
                    if(isset($array['entry'][0]))
                    {
                        $this->DebugPrint("Multiple results found, I took the first one");
                        //Set callerid
                        if(!$caller_id = $array['entry'][0]['title'])
                        {
                            $this->DebugPrint('Could not parse xml-response from tel.search.ch');
                            $caller_id = null;
                        }
                    }
                    else
                    {
                        //Single result, set callerid
                        $this->DebugPrint("Entry found, try to set callerid:");
                        if(!$caller_id = $array['entry']['title'])
                        {
                            $this->DebugPrint('Could not parse xml-response from tel.search.ch');
                            $caller_id = null;
                        }
                    }
                }
                else
                {
                    //Return empty Callerid
                    $this->DebugPrint("not found");
                    return $caller_id = null;
                }
            }
        }
        //Return Callerid (success)
        return($caller_id);
    }

}

Gruss

Killbyt
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.