===== Snom tel.search.ch lookup ===== Snom Phones are able to call Action URLs on incomin calls. Just put this line into: Setup -> Action URL Settings -> Incoming call: http://www.spacerat.ch/call.php?caller=$remote&line=$local 1) { $title .= ' ('.count($name[1]).' Resultate)'; $i = 0; if ($modcaller) { $body .= 'Keine exakten Treffer!!!
'; } foreach ($name[1] as $eintrag) { $body .= $eintrag; if ($modcaller) { $body .= ' ('.$phone[1][$i].')'; } $body .= '
'; $i++; } // Nur 1 Resultat für diese Rufnummer. // Wir zeigen die vollständige Adresse. } elseif (count($name[1]) == 1) { preg_match_all('/(.*?)<\/content>/i', $atom, $single); if ($modcaller) { $body .= 'Keine exakten Treffer!!!
'; } $body .= $single[1][0]; } else { $body = 'Keine Resultate gefunden :-('; } // XML für das SNOM 370 ausgeben echo ''; ?> <?=$title?> ', $atom); $atom = utf8_encode($atom); $offset = strpos($atom, '', $offset); if ($offset) { preg_match_all('/(.*?)<\/title>/i', $atom, $name, PREG_PATTERN_ORDER, $offset); preg_match_all('/\ *\*{0,1}([0-9 ]*?)<\/content>/i', $atom, $phone, PREG_PATTERN_ORDER, $offset); } }
credits goes to: http://geekbox.ch/voip-telefon-snom-370/ Author: Matthias.