1 package GSM::SMS::OTA::VCard;
2 use GSM::SMS::OTA::OTA;
4 # Generic package for VCARDS
10 @EXPORT = qw( OTAVcard_makestream
15 use constant OTAVcard_PORT => 9204;
18 sub OTAVcard_makestream {
19 my ($lastname, $firstname, $phone) = @_;
21 $lastname = encode( $lastname );
22 $firstname = encode( $firstname);
23 $phone = encode( $phone );
28 N:$lastname,$firstname
34 return OTAencode_8bit($vcard);
40 $string=~s/([,;:])/\\$1/g;
53 This package allows you to create a VCard to send an address/phone book item to a handset capable receiving it. This is only tested with a Nokia Phone (7110).
54 Anyway, this module is rather experimental.
58 =head2 OTAVcard_makestream
60 $stream = OTAVcard_makestream( $lastname, $firstname, $phone );
62 Make a VCard with only name, lastname and (home)phonenumber. A lot more is possible to include, but I think this is sufficient for most uses (?) ... or until somebody motivates me to expand this ...
66 NSB Port number for a VCard message.
70 Joha Van den Brande <johan@vandenbrande.com>