|
I think you must try so:
c.
$URL1 =
"$baseURL:$SMSPort/cgi-bin/sendsms?username=XXX&password=XXX&to=$SendPictureTo&udh=%0B%05%04%15%8A%00%00%00%03%01%03%01&text=%30%00%00%04%20%20%20%20%02%01%00$DATA1"; $URL2
=
"$baseURL:$SMSPort/cgi-bin/sendsms?username=XXX&password=XXX&to=$SendPictureTo&udh=%0B%05%04%15%8A%00%00%00%03%01%03%02&text=$DATA2"; $URL3
=
"$baseURL:$SMSPort/cgi-bin/sendsms?username=XXX&password=XXX&to=$SendPictureTo&udh=%0B%05%04%15%8A%00%00%00%03%01%03%03&text=$DATA3";
that's why udh length (first octet) is 0b so your udh must be 11 chars
length.
See you,
Enzo
----- Original Message -----
Sent: Wednesday, October 02, 2002 8:21
PM
Subject: Pic Message with ver 1.2
Dear fellow Kannel users,
Greetings! Sorry if this
is a second post. Not sure if I sent the last one right. I'm a new
kannel user, and I recently upgraded to ver 1.2 from ver 1.03. I would
appreciate any help soon, as our telco will be testing our service in a days
time.
This is the first problem I've encountered:
1. Picture
Messages - the log files indicated a "malformed UDH", and does not send.
It was working fine with 1.03. I'm using URL GET from a Perl script.
a. These is the config file: group = sms-service keyword =
smartpix url = "http://www.digitalres.com/cgi-bin/sms/sendpicture.pl?to=%p&SendRequest=%s&command=%a" max-messages
= 0
b. These are the header parameters from the cgi
script: $pictureUDH = "%0B%05%04%15%8A%00%00"; $pictueHeader1 =
"%00%03%01%03%01"; $pictueHeader2 = "%00%03%01%03%02"; $pictueHeader3 =
"%00%03%01%03%03";
c. and here's the sendsms command from the same
script: $URL1 =
"$baseURL:$SMSPort/cgi-bin/sendsms?username=XXX&password=XXX&to=$SendPictureTo&udh=%0B%05%04%15%8A%00%00&text=%00%03%01%03%01%30%00%00%04%20%20%20%20%02%01%00$DATA1"; $URL2
=
"$baseURL:$SMSPort/cgi-bin/sendsms?username=XXX&password=XXX&to=$SendPictureTo&udh=%0B%05%04%15%8A%00%00&text=%00%03%01%03%02$DATA2"; $URL3
=
"$baseURL:$SMSPort/cgi-bin/sendsms?username=XXX&password=XXX&to=$SendPictureTo&udh=%0B%05%04%15%8A%00%00&text=%00%03%01%03%03$DATA3"; $ua
= LWP::UserAgent->new; $ua->request(GET
$URL1); $ua->request(GET $URL2); $ua->request(GET
$URL3); }
Thank you very much!
|