gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spaces in phone numbers?


From: Pawel Kot
Subject: Re: Spaces in phone numbers?
Date: Fri, 08 Aug 2003 10:08:58 +0200

>>> address@hidden 7 August 2003 21:23:25 >>>
> Us mad UK users tend to quote phone numbers as "areacode localcode" -
yes evil 
> space characters abound (or seperate).

Could you please show the sample debug output when reading such entry
from the phone? Ie: 'gnokii --getphonebook ME 1' or something
Or is it the one below?

> Importing from LDAP to Kaddress book preserves this but xgnokii and
thus 
> Knokiisync were producing lots of errors on some entries and working
on 
> others, it was driving me mad.... One would work, I'd add an extra
number and 
> it would break - etc. Probably depends how they were imported to the
LDAP 
> database in the first place.

And it breaks on these extra spaces? If so I can write a simple filter
for reading
numbers from the external sources that filters the spaces.

> Maybe xgnokii shouldn't allow it on entry. But I think the underlying
tools 
> should also spit a human readable error.

It should be easy to fix. I'll try to do it till Monday.

> I can see I need to dig out my LDIF export of the LDAP database and
practice 
> my sed skills ;-)

BTW. I'm currently working on importing/exporting LDIF entries to be
able to
exchange addressbook with Mozilla.

> Did I miss this in the manual somewhere? The FAQ/docs could do with
an 
> explanation of how to interpret the UNHANDLED FRAME messages, as that
would 
> make it much easier for those of us who might not want to join the
project, 
> but are prepared to try a little more than average to figure out our
own 
> problems.

I'm afraid it is not documented anywhere. In short: when you send some
frame
to the phone, it responses with the other frame. We try to interpret as
meny
frames as possible. But we don't know meaning of all frames (eg.
because
we were not able to generate such response. In such case the message
you
got is generated.

The messages are then displayed: the request and the response. To
change
the behaviour you need to edit the phone driver: common/phones/*
files.
There you should find the corresponding functions (there's one handling
function
per one message type) and add the switch case for your frame (if you
can
interpret it).

Phone 6310i
Connection dlr3p
gnokii 0.5.0 Debian unstable package

> address@hidden:~$ xgnokii
> UNHANDLED FRAME RECEIVED
> request: 0x03 / 0x007e
> 00 01 00 0b 00 01 01 00 00 10 02 05 00 11 00 00 |
> 00 00 00 00 00 04 07 00 00 1e ff 18 00 53 00 69 |              S i
> 00 6d 00 6f 00 6e 00 20 00 57 00 61 00 74 00 65 |  m o n   W a t e
> 00 72 00 73 1e 00 00 08 ff 01 00 55 0b 00 00 20 |  r s       U
> ff 03 00 00 00 16 00 30 00 37 00 37 00 31 00 38 |        0 7 7 1 8
> 00 39 00 31 00 31 00 33 00 38 00 35 0b 00 00 22 |  9 1 1 3 8 5   "
> ff 02 00 00 00 18 00 30 00 31 00 33 00 39 00 35 |        0 1 3 9 5
> 00 20 00 32 00 33 00 32 00 37 00 36 00 39       |    2 3 2 7 6 9
> Reply: 0x03 / 0x000e
> 01 52 00 0c 00 01 0f 00 00 08 43 00 00 00       |  R        C

As far as I can see you were trying to save:
Name: Simon Waters
Number: 07718911385
Number: 01395232769

Right?

pkot




reply via email to

[Prev in Thread] Current Thread [Next in Thread]