I would really like to know how this works. Is this script specific to a
type of phone? I dug around and finally found some information about the
udh but it has not really helped.
Could you please answer a few questions.
The mclass=3 sends the message to the SIM Toolkit. What does that mean and
do most current cell phones support this?
The udh indicates a header of length 6 octets with the IEI being the
"application port addressing 16 bit address" followed by the length (4
octets) and the destination port #23F4 and originator port #0000.
Is port #23F4 the port for an application running on the mobile phone that
has to do with the SIM toolkit? As you can see I am really just stabbing
around in the dark. If you could explain the choice of these parameter
values more explicitly I would greatly appreciate it.
Thank you very much,
-Tony
On Wed, Jul 9, 2008 at 5:01 AM, Tharanga <[EMAIL PROTECTED]> wrote:
> this is a sample script i have developed to send vcard. hope you can get
> some idea from this.
>
> #!/usr/local/bin/php
> <?
> $lastname="Abeyseela";
> $firstname="Tharanga";
> $telephone="94xxxxxxxxx";
>
> $text = "BEGIN:VCARD\r\n";
> $text .= "VERSION:2.1\r\n";
> $text .= "N:".$lastname.";".$firstname."\r\n";
> $text .= "TEL;PREF:+".$telephone."\r\n";
> $text .= "EMAIL: [EMAIL PROTECTED] \r\n";
> $text .= "END:VCARD\r\n";
>
> $encoded=urlencode($text);
>
> $vcar=shell_exec("lynx -dump
> '
> http://localhost:13013/cgi-bin/sendsms?username=122&password=112&to=xxxxxxx
> xx&from=44&mclass=3&udh=%06%05%04%23%F4%00%00&text=$encoded<http://localhost:13013/cgi-bin/sendsms?username=122&password=112&to=xxxxxxxxx&from=44&mclass=3&udh=%06%05%04%23%F4%00%00&text=$encoded>'
> ");
>
> ?>
>
>
> ----- Original Message -----
> From: "Raphael Maseko" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Wednesday, July 09, 2008 3:29 PM
> Subject: Sending V-CARD via SMS
>
>
> > Hi All,
> >
> > I would like to find out how I can send a VCARD from my Kannel to a
> mobile
> > phone in a format that can easily be installed on the phonebook of the
> > destination phone.
> >
> > I have tried to send a VCARD from my phone to the kannel and then send
> back
> > the same to the phone. The problem is that it comes as a text and does
> not
> > recognize it as a contact. If I send the card to another phone, it
> > recognizes it as a contact and prompts for addition to phonebook.
> >
> > In the logs the SMS sent with a contact looks like this:
> >
> > :BEGIN:VCARD VERSION:2.1 N:Name1;Name2 TEL;CELL: 11111111
> > X-IRMC-LUID:00020000019A
> > END:VCARD
> >
> > Any idea how I can get kannel to send that information in a format that
> will
> > prompt the recipient to install the contact ?
> >
> > Ralph
> >
> >
> >
> >
>
>
>