Re: vCard

Andreas Fink <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
On Montag, April 14, 2003, at 09:12  Uhr, Arne K. Haaje wrote:

> Maria Turk wrote:
>> Does anyone know what a vCard UDH and PDU look like.. I know it comes 
>> it on
>> Port 9204 and/or 9205 so I think the UDH is easy but what is the PDU.
>
> The few test I have done with this was not encouraging. Nokia phones 
> wanted the port to be set, but the Ericssons just wanted a nicely 
> formated Vcard in a regular text SMS.

One trick to know: set the originator port and the destination port to 
the same.
I think nokia dont care about the originator port and only look at the 
destination port but others might not.

this simple bash script was working ok for me on nokia.

#!/bin/sh
#
# File: cgi-bin/vcard.cgi
#
#
echo "Pragma: no-cache"
echo "Cache-Control: no-cache"
echo "Connection: close"
echo "Content-Type: application/octet-stream"
echo "X-Kannel-UDH: 06050423F40000"
echo ""
echo -n -e "BEGIN:VCARD\r\n"
echo -n -e "VERSION:2.1\r\n"
echo -n -e "N:SMSRelay\r\n"
echo -n -e "TEL;PREF:+41795169338\r\n"
echo -n -e "END:VCARD\r\n"



linefeed/carriage return is important.


Andreas Fink
Global Networks Switzerland AG

------------------------------------------------------------------
Tel: +41-61-6666333  Fax: +41-61-6666334   Mobile: +41-79-2457333
Global Networks, Inc. Clarastrasse 3, 4058 Basel, Switzerland
Web: http://www.global-networks.ch/      [email protected]
------------------------------------------------------------------
Send SMS to +979 979 UNICEF (+979979864233) to donate a
small amount to the children of Iraq. http://www.gni.ch/unicef
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.