requirement: the phone must be plugged in your local network (because of redirection of default phonebook address).

1. First you have to redirect the A lookup pbs.gigaset.net to an IP of a server in your local network
For this point just add the IP in your configuration of your main bind (named) server.

2. On this server you set up HTTP server with the a CGI called /snipweb/phonebookservlet.do
See bolow for a sample code

3. From this step, your Gigaset will lookup your server:

lookup list details

4. Now, what about linking this script with a
- SyncML server ?
- With the .tel ?
- With your LDAP directory ?

Code of phonebookservlet.do

#!/usr/bin/perl

use strict;
use CGI;
my $cgi = new CGI;

print "Content-Type: text/xml;charset=UTF-8\n\n";

my @phonebook = (
        { user => 'edouard',  tel => '0610000000' },
        { user => 'pierre',   tel => '0610000000' },
        { user => 'paul',     tel => '0610000000' },
        { user => 'jacques',  tel => '0610000000' },
);

my $test = "test00";
for (1..64)
{
        push @phonebook, { user => $test++,    tel => '0610000000' };
}

my $lookup = lc( $cgi->param('nn'));
my $first = $cgi->param('first');
my $last  = $first + ($cgi->param('count') || 32) -1;
warn("Lookup [$lookup] from: $first to: $last\n");

$lookup =~ s/\*/\.\*/; # replace '*' into a '.*'
my @answer = grep { $_->{'user'} =~ /^$lookup$/i } @phonebook;

my $total = scalar(@answer );
my $last  = ( $total > $last ) ? $last : $total;
my $data=
        "<?xml version='1.0' encoding='UTF-8'?>".
        "<list reqid='".$$."' response='get_list' type='shcpb' total='".scalar(@answer )."' first='".$first."' last='".$last."'>";

my $id=0;
foreach my $entry (@answer)
{
        $id++;
        if ( $id >= $first and $id <= $last )
        {
                $data .= "<entry id='".$id."'><usr>".$entry->{'tel'}."</usr><nn>".$entry->{'user'}."</nn></entry>";
        }
}
$data .= '</list>';


if ($cgi->user_agent() =~ /C470IP/ )
{
        printf '%x'."\n", length( $data); # print header only for phone (not with firefox: allow debug)
}
warn "sending $data\n";
print $data."\n";