thanks edgar for correcting me. XML is taking it's toll on my mind ;-) me forwarding this to list so that others can also get some pointers.
regards Navjot Singh On 7/5/05, Edgar Zavala <[EMAIL PROTECTED]> wrote: > Hi, > > The vCard is not XML, but is a tag based format (RFC-2426). > > Starting with the sendvcard.php example on the contrib/php-admin > directory i constructed a simple "service.php" (i'm working on a POC > so this is good for me) wich do the following: > > 1.- Set the content type to : text/vnd.wap.wml > 2.- Construct the vCard as : > > $text = "BEGIN:VCARD\r\n"; > $text .= "VERSION:2.1\r\n"; > $text .= "N:".$lastname.";".$firstname."\r\n"; > $text .= "TITLE:".$puesto."\r\n"; > $text .= "ORG:myCompany/".$area." ".$area2."\r\n"; > $text .= "TEL;PREF:".$telefono."\r\n"; > $text .= "NOTE: Provided by eDirectory Service\r\n"; > $text .= "END:VCARD\r\n"; > > 3.- On the kannel config for the smsc i do the following: > > # SMS SERVICE > group = sms-service > keyword = default > get-url = > "http://127.0.0.1/service.php?phone=%p&text=%r&binary=%b&smsc=$i&time=%t" > accept-x-kannel-headers = true > max-messages = 3 > concatenation = true > > It work with a sony ericsson phone but does not work with my > motorola t720i. I'm working to see why is not interpreted correctly on > the motorola (if it supported it also). > > Regards, > Edgar Zavala. > > On 7/4/05, Navjot Singh <[EMAIL PROTECTED]> wrote: > > that's so easy. all you need to do is to set the right udh and convert > > your vCard xml to right hex code. please look thru one of my older > > posts. i had posted some example also. or just google the web. still > > if you dont find, i will try to dig some example for you from the > > debris that i maintain ;-) > > > > > > On 7/3/05, Ismail Adebayo <[EMAIL PROTECTED]> wrote: > > > Hi > > > > > > How? > > > > > > Ismail > > > ----- Original Message ----- > > > From: "Edgar Zavala" <[EMAIL PROTECTED]> > > > To: <users@kannel.org> > > > Sent: Friday, July 01, 2005 6:10 PM > > > Subject: Re: vCard via SMS > > > > > > > > > > Hi, > > > > > > > > I just find how to send the vcard and is now working, thankyou. > > > > > > > > Regards, > > > > Edgar Zavala. > > > > > > > > On 7/1/05, Edgar Zavala <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > > > > > > > > I'm using kannel for a POC and i need to send a personal > > > > > information on request, is there a way i can send a vCard using SMS > > > > > insted of the plain text? > > > > > > > > > > Regards, > > > > > Edgar Zavala. > > > > > -- > > > > > J. Edgar Zavala S. ak'a Kerberos > > > > > eMail: jezavala at gmail.com | jezs at ossr dor org > > > > > PGP: 0x6B60B604/0x73C6D26B > > > > > Web: http://www.ossr.org > > > > > -- My software never has bugs.It just develops random features -- > > > > > > > > > > > > > > > > > -- > > > > J. Edgar Zavala S. ak'a Kerberos > > > > eMail: jezavala at gmail.com | jezs at ossr dor org > > > > PGP: 0x6B60B604/0x73C6D26B > > > > Web: http://www.ossr.org > > > > -- My software never has bugs.It just develops random features -- > > > > > > > > > > > > > > > > -- > J. Edgar Zavala S. ak'a Kerberos > eMail: jezavala at gmail.com | jezs at ossr dor org > PGP: 0x6B60B604/0x73C6D26B > Web: http://www.ossr.org > -- My software never has bugs.It just develops random features -- >