Re: PPG

"Eko Yanuar" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi Aarno,

My HTTP SMSC routing work fine for PPG.
When PPG get PAP request, it directed the processed SI/SL to my HTTP SMSC and then HTTP SMSC use cgi/sendsms to send it to SMSC.
I just want to see push PPG via SMS bearer (:

The problem was in file: wap_push_ppg.c=>pap_request_thread()

First Request from PI succesfully accepted by WAP Box , But second request (with different session id) just get accepted by PPG http server.

For detail, please look at WAPBox debug message :

2002-06-24 22:29:26 [0] INFO: ------------------------------------------------------------
2002-06-24 22:29:26 [0] INFO: Kannel wapbox version cvs- starting up.
2002-06-24 22:29:26 [0] DEBUG: Started thread 1 (wap/wsp_session.c:main_thread)
2002-06-24 22:29:26 [0] DEBUG: Started thread 2 (wap/wsp_unit.c:main_thread)
2002-06-24 22:29:26 [0] DEBUG: Started thread 3 (wap/wsp_push_client.c:main_thread)
2002-06-24 22:29:26 [0] DEBUG: Started thread 4 (wap/timers.c:watch_timers)
2002-06-24 22:29:26 [0] DEBUG: Started thread 5 (wap/wtp_init.c:main_thread)
2002-06-24 22:29:26 [0] DEBUG: Started thread 6 (wap/wtp_resp.c:main_thread)
2002-06-24 22:29:26 [0] DEBUG: Started thread 7 (gw/wap-appl.c:main_thread)
2002-06-24 22:29:26 [0] DEBUG: Started thread 8 (gw/wap-appl.c:return_replies_thread)
2002-06-24 22:29:26 [0] DEBUG: Started thread 9 (wap/wtls-secmgr.c:main_thread)
2002-06-24 22:29:26 [0] DEBUG: Started thread 10 (wap/wtls.c:main_thread)
2002-06-24 22:29:26 [0] DEBUG: Started thread 11 (gw/wap_push_ota.c:main_thread)
2002-06-24 22:29:26 [0] INFO: Using global server SSL certificate from file /usr/local/openssl/newcerts/cert.pem
2002-06-24 22:29:26 [0] INFO: Using global server SSL key from file /usr/local/openssl/private/certkey.pem
2002-06-24 22:29:26 [0] DEBUG: HTTP: Opening server at port 8081.
2002-06-24 22:29:26 [0] DEBUG: Started thread 12 (gwlib/fdset.c:poller)
2002-06-24 22:29:26 [0] DEBUG: Started thread 13 (gwlib/http.c:server_thread)
2002-06-24 22:29:26 [0] DEBUG: HTTP: Opening SSL server at port 8082.
2002-06-24 22:29:26 [0] DEBUG: Started thread 14 (gw/wap_push_ppg.c:ota_read_thread)
2002-06-24 22:29:26 [0] DEBUG: Started thread 15 (gw/wap_push_ppg.c:http_read_thread)
2002-06-24 22:29:26 [0] DEBUG: Started thread 16 (gw/wap_push_ppg.c:https_read_thread)
2002-06-24 22:29:26 [0] DEBUG: Started thread 17 (gw/wap_push_ppg.c:pap_request_thread)
2002-06-24 22:29:26 [0] INFO: Connected to bearerbox at localhost port 13002.
2002-06-24 22:29:26 [0] DEBUG: Started thread 18 (gw/heartbeat.c:heartbeat_thread)
2002-06-24 22:30:26 [13] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
2002-06-24 22:30:26 [17] INFO: PPG: Accept request </cgi-bin/wappush> from <127.0.0.1>
2002-06-24 22:30:26 [17] DEBUG: PPG: http_read_thread: pap multipart accepted
2002-06-24 22:30:26 [17] INFO: client address was <+358408676001>, accepted
2002-06-24 22:30:26 [17] DEBUG: PAP COMPILER: doing semantic analysis for address type a phone number
2002-06-24 22:30:26 [17] DEBUG: using defaults instead of anys
2002-06-24 22:30:26 [17] DEBUG: PPG: http_read_thread: pap control entity compiled ok
2002-06-24 22:30:26 [17] DEBUG: PPG: transform_message: push message content and headers valid
2002-06-24 22:30:26 [17] DEBUG: PPG: push machine 0 created
2002-06-24 22:30:26 [17] DEBUG: PPG: store_push_data: push machine 0 appended to unit push list
2002-06-24 22:30:26 [17] DEBUG: PPG: send_push_response: telling pi
2002-06-24 22:30:26 [17] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.
2002-06-24 22:30:26 [17] INFO: PPG: handle_push_message: push message accepted for processing
2002-06-24 22:30:26 [17] DEBUG: PPG: OTA request for unit push
2002-06-24 22:30:26 [17] INFO: PPG: unconfirmed push delivered to OTA
2002-06-24 22:30:26 [17] DEBUG: PPG: destroying push machine 0
2002-06-24 22:30:26 [11] DEBUG: OTA: event arrived
2002-06-24 22:30:26 [11] DEBUG: OTA: made connectionless session service request
2002-06-24 22:30:26 [2] DEBUG: WSP_UNIT: Connectionless push accepted
2002-06-24 22:30:26 [2] DEBUG: WSP_UNIT: delivering to wdp
2002-06-24 22:30:26 [12] DEBUG: HTTP: Destroying HTTPClient area 0x80d5818.
2002-06-24 22:30:26 [12] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'.
2002-06-24 22:31:59 [13] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
2002-06-24 22:31:59 [17] DEBUG: Thread 17 (gw/wap_push_ppg.c:pap_request_thread) terminates.

The last line show that when second http client arrive, pap_request_thread misteriously terminated ???


Best Regards,



*********** REPLY SEPARATOR  ***********

On 24/06/2002 at 17:00 Aarno Syvänen wrote:

>Eko Yanuar kirjoittaa maanantaina, 24. kesäkuuta 2002, kello 16:49:Hi 
>all,
>>  
>> I use Kannel 1.1.6 from CVS and find it working correctly except for 
>> PPG.
>> When I test it with testppg utility and also with Ericsson Push 
>> Initiator, I got this bug.
>> At first time , Kannel PPG successfully route my message to defined 
>> SMSC. But only at the first time!
>> Second time I send PPG, WAPBox just accept its as new HTTP connection 
>> and its do nothing.
>>  
>> Is there anyone that have got success with PPG? Please let me know, 
>> maybe I was wrong with my config file, or maybe I should wait for 
>> stable release 1.2.
>
>PPG does not have SMSC routing yet. This is in my todo list, though.
>
>Aarno
>
>Eko Yanuar kirjoittaa maanantaina, 24. kesäkuuta 2002, kello
>16:49:<color><param>0000,0000,0000</param><smaller>Hi all,</smaller>
>
><excerpt> 
>
><smaller>I use Kannel 1.1.6 from CVS and find it working correctly
>except for PPG.</smaller>
>
><smaller>When I test it with testppg utility and also with Ericsson
>Push Initiator, I got this bug.</smaller>
>
><smaller>At first time , Kannel PPG successfully route my message to
>defined SMSC. But only at the first time!</smaller>
>
><smaller>Second time I send PPG, WAPBox just accept its as new HTTP
>connection and its do nothing.</smaller>
>
> 
>
><smaller>Is there anyone that have got success with PPG? Please let me
>know, maybe I was wrong with my config file, or maybe I should wait
>for stable release 1.2.</smaller>
>
></excerpt>
>
>PPG does not have SMSC routing yet. This is in my todo list, though.
>
>
>Aarno
>
></color>


Eko Apriandi Yanuar
C/C++ Application Developer
Email : [email protected]
Phone : +62-21-5211500
PT INFRACELL NUSATAMA / 3WSI
World Trade Centre 12th Floor
Sudirman Street, Kav 29-31
Jakarta 12920 - Indonesia
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.