[Vobject] phone numbers

D. R. Evans doc.evans at gmail.com
Fri Nov 28 18:37:46 CST 2008


In RFC 2426, the phone numbers for one of the authors are given as:

   TEL;TYPE=VOICE,MSG,WORK:+1-919-676-9515
   TEL;TYPE=FAX,WORK:+1-919-676-9564

I've done everything i can think of, but can't figure out how to make
vobject create such a vcard :-(

There are two basic problems for which I haven't been able to figure out a
solution:

1. How to create types such as VOICE,MSG,WORK.

If I do:
  card.tel.type_param = "HOME"
then I get a correct single-valued type; but if I do:
  card.tel.type_param = "HOME;VOICE"
then when I serialize the card, the type contains extraneous quotation marks:
  TEL;TYPE="HOME,VOICE":303-530-1598

2. How to have multiple phone numbers in the card (each with a different
type and value, of course).

As I mentioned in my earlier post, I haven't been able to find the
documentation for vobject (except for what's on the web site, which is
insufficient to guess at how to perform things like this -- at least for
me, anyway).

  Doc Evans


More information about the VObject mailing list