Re: wap push si/sl

[email protected] (Bruno Rodrigues)
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Robin <[email protected]> wrote:
> Hi All,
> 
> When i did a wap push via commandline "./test_ppg -q
> http://127.0.0.1:8080/wappush?username=f00'&'password=f00 ./content.xml
> ./control.xml", it works perfectly fine.
> But when i tried contrib/web/sendsms.php wap push si/sl, it doesn't work.

My fault ;)

Wap Push SI code includes an hardcoded validity date way back in the 
past (2002).

please apply this patch or update from cvs

(just commenting those two lines with dates is enough)


Index: contrib/web/sendsms.php
===================================================================
RCS file: /home/cvs/gateway/contrib/web/sendsms.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -p -r1.1 -r1.2
--- contrib/web/sendsms.php     26 Feb 2002 00:04:57 -0000      1.1
+++ contrib/web/sendsms.php     22 Jul 2003 00:56:52 -0000      1.2
@@ -236,8 +236,8 @@
        $fields['text'] .= "%0b" . "%03" . $fields['url'] . "%00";
# href=$url
        $fields['text'] .= "%11" . "%03" . rand(1,9)."@vodafone.pt" .
"%00";    # si-id=
        $fields['text'] .= "%08"; # action="signal-high"
-       $fields['text'] .= "%0A" . "%C3%07%20%01%10%21%20%02%23"; #
        created=
-       $fields['text'] .= "%10" . "%C3%04%20%02%06%30"; # valid=
+       #$fields['text'] .= "%0A" . "%C3%07%20%01%10%21%20%02%23"; #
created=
+       #$fields['text'] .= "%10" . "%C3%04%20%02%06%30"; # valid=
         $fields['text'] .= "%01"; # end indication params 
        $fields['text'] .= "%03" . urlencode($fields['name']). "%00";
       $fields['text'] .= "%01"; # </indication>
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.