Hi Mauricio,

I guess You should send following data first:

POST /cgi-bin/wap-push.cgi HTTP/1.1
Host: localhost //or what ever Your host is
X-Kannel-SMSC: YOURSMSC // add X-Kannel-Headers if needed


If You need to send username and password, You can add those in POST
url:
POST /cgi-bin/wap-push.cgi?username=foo&password=bar HTTP/1.1
Host: localhost //or what ever Your host is
X-Kannel-SMSC: YOURSMSC // add X-Kannel-Headers if needed

I dont remember was it possible to send username and password as kannel
headers, but I'm sure they can be send in url (as I'm doing so).

HTH,

:)Marko


On Tue, 2005-02-08 at 14:27 -0500, Mauricio Reyes wrote:
> Hi,
>  
> Does anybody know which one is the ppg url of kannel?
>  
> when i´m trying to connect to the ppg port i get the following error
>  
> [Connection to PPG failed]
> Please check that the PPG URL is correct.
> class java.lang.NullPointerException
> null
> 
> What i´m sending is this:
>  
> Content-Type: multipart/related; type=application/xml;
> boundary=WPL38woVbhESdfalYevGqpdzLCs
>  
> --WPL38woVbhESdfalYevGqpdzLCs
> Content-Type: application/xml; charset=UTF-8
>  
> <?xml version="1.0"?>
> <!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN"
> "http://www.wapforum.org/DTD/pap_1.0.dtd";>
> <pap>
> <push-message push-id="64062/198/Openwave Push">
> <address address-value="WAPPUSH=+571585****/[EMAIL PROTECTED]"/>
> <quality-of-service delivery-method="unconfirmed" network="GSM"
> network-required="true" bearer="SMS" bearer-required="true"/>
> </push-message>
> </pap>
> --WPL38woVbhESdfalYevGqpdzLCs
> Content-Type: text/vnd.wap.si; charset=UTF-8
>  
> <?xml version="1.0"?>
> <!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN"
> "http://www.wapforum.org/DTD/si.dtd";>
> <si>
> <indication href="http://192.168.*.*/wapi/index.php";
> action="signal-high">
> Alerta Kannel
> </indication>
> </si>
> --WPL38woVbhESdfalYevGqpdzLCs--
> 
>  
> and this is may configuration:
>  
> # PPG CORE SETUP, for defining the push request interface
>  
> group = ppg
> ppg-url = /cgi-bin/wap-push.cgi
> ppg-port = 4445
> #ppg-ssl-port = 8081
> concurrent-pushes = 100
> trusted-pi = false
> users = 1024
> #ppg-deny-ip = "*.*.*.*"
> ppg-allow-ip = "*.*.*.*"
> #ssl-server-cert-file = "cert.pem"
> #ssl-server-key-file = "key.pem"
>  
> # PPG USER SETUP, for authorizing a specific push user
>  
> group = wap-push-user
> wap-push-user = foo
> ppg-username = foo
> ppg-password = bar
> #country-prefix = +358
> #allowed-prefix = "40;60;70"
> #denied-prefix = 50
> #white-list = http://localhost:8082/whitelist
> #black-list =  http://localhost:8082/blacklist
> #deny-ip = "*.*.*.*"
> allow-ip = "*.*.*.*"
>  
> Thanks,
>  
> Carlos 


Reply via email to