Hello,

I hope you got my post about the Picture Message malformed UDH.

There's also an issue about the x-kannel headers, which I hope you could 
also guide me with (both for ver 1.03 and 1.2).

a. Problem - SMSC replies and sends to phone "Empty Response from Content 
Provider" or "Result could not be represented as an SMS message".

b. This is my sms-service config:

group = sms-service
keyword = xlogo
url = 
"http://www.digitalres.com/cgi-bin/sms/xsendlogo.pl?to=%p&SendRequest=%s&command=%a";
accept-x-kannel-headers = true
max-messages = 5
concatenation = true

c. this is the send-sms config:

group = sendsms-user
username = xxx
password = xxx
concatenation = true

d. This a part of the xlogo.pl script:

sub sendLOGO {

#  $URL = 
"$baseURL:$SMSPort/cgi-bin/sendsms?username=xxx&password=xxx&to=$SendLogoTo&udh=$logoUDH&text=$MCCMNC$DATA";
#  $ua = LWP::UserAgent->new;
#  $ua->request(GET $URL);

         $MSGTEXT = "$MCCMNC$DATA";
         $ua = new LWP::UserAgent;
         $ua->agent('Kannel/0.1 ' . $ua->agent);
         my $h = new HTTP::Headers
                                 'X-Kannel-Username' => 'xxx',
                                 'X-Kannel-Password' => 'xxx',
                                 'X-Kannel-To'       => $SendLogoTo,
                                 'X-Kannel-UDH'             => $logoUDH;

         my $req = 
HTTP::Request->new(POST,"$baseURL:$SMSPort/cgi-bin/sendsms", $h);
         $req->content_type('application/octet-stream');
         $req->content($MSGTEXT);
         $res = $ua->request($req);
         die $res->message() unless $res->is_success();
#        return 1;

}

e. Once the x-kannel header is working, I need to put in the following 
TC/SD parameters:

2.50 - ordinary messages : TC/12 SD/08
15.00 - downloading of picture message, ringtone, logos : TC/15 SD/07
0.00 - succeeding messages for reply with more than 1 messages : TC/00 SD/00

Am I missing some parameters perhaps?

Thank you once again!

Regards,

Dan

______________________
DANTE C. DEL ROSARIO
Digital Resource Corporation
http://www.digital-resource.net
[EMAIL PROTECTED] 


Reply via email to