Kannel-Version: 1.4.3 Handset (SMSC): Motorola RAZR V3 OS: Debian / Linux 2.6.33.3 #1 SMP x86_64 GNU/Linux
Hi together, if I try to send a WAP push I get the following logs. I can see the message in the store-status, but kannel won't send it to the receiver phone. As sender I see '1234' instead of the global sender value in the store status. My kannel.conf and the script triggerd by myself to send a push is below, too. I use a Motorola RAZR V3 as SMSC mobile phone. I can send and receive normal SMS. The receiver handset is configured to accept WAP push. An other issue is that after a restart of kannel the phone is no longer accessible, until i put it out of the USB-Port and plug it in again. Thx in advance Thomas SMSC: ==================================================================== [9936] [6] DEBUG: AT2[SMSC_01]: detecting modem speed. [9936] [6] INFO: AT2[SMSC_01]: opening device [9936] [6] DEBUG: AT2[SMSC_01]: device opened. Telnet mode = 0 [9936] [6] DEBUG: AT2[SMSC_01]: device opened [9936] [6] INFO: AT2[SMSC_01]: speed set to 115200 [9936] [6] DEBUG: AT2[SMSC_01]: --> ^M [9936] [6] DEBUG: AT2[SMSC_01]: --> AT^M [9936] [6] DEBUG: AT2[SMSC_01]: <-- AT [9936] [6] DEBUG: AT2[SMSC_01]: <-- OK [9936] [6] INFO: AT2[SMSC_01]: Closing device [9936] [6] INFO: AT2[SMSC_01]: detect speed is 115200 [9936] [6] DEBUG: AT2[SMSC_01]: detecting modem type [9936] [6] INFO: AT2[SMSC_01]: opening device [9936] [6] DEBUG: AT2[SMSC_01]: device opened. Telnet mode = 0 [9936] [6] DEBUG: AT2[SMSC_01]: device opened [9936] [6] INFO: AT2[SMSC_01]: speed set to 115200 [9936] [6] DEBUG: AT2[SMSC_01]: --> ^M [9936] [6] DEBUG: AT2[SMSC_01]: --> AT^M [9936] [6] DEBUG: AT2[SMSC_01]: <-- AT [9936] [6] DEBUG: AT2[SMSC_01]: <-- OK [9936] [6] DEBUG: AT2[SMSC_01]: --> AT&F^M [9936] [6] DEBUG: AT2[SMSC_01]: <-- AT&F [9936] [6] DEBUG: AT2[SMSC_01]: <-- OK [9936] [6] DEBUG: AT2[SMSC_01]: --> ATE0^M [9936] [6] DEBUG: AT2[SMSC_01]: <-- ATE0 [9936] [6] DEBUG: AT2[SMSC_01]: <-- OK [9936] [6] DEBUG: AT2[SMSC_01]: --> ATI^M [9936] [6] DEBUG: AT2[SMSC_01]: <-- 144 [9936] [6] DEBUG: AT2[SMSC_01]: <-- OK [9936] [6] DEBUG: AT2[SMSC_01]: Cannot detect modem, using generic [9936] [6] DEBUG: AT2[SMSC_01]: Reading modem definitions from </etc/kannel/kannel.conf> [9936] [6] DEBUG: AT2[SMSC_01]: Found <1> modems in config [9936] [6] DEBUG: AT2[SMSC_01]: --> AT+CSMS=?^M [9936] [6] DEBUG: AT2[SMSC_01]: <-- +CSMS: (128) [9936] [6] DEBUG: AT2[SMSC_01]: <-- OK [9936] [6] INFO: AT2[SMSC_01]: Closing device [9936] [6] INFO: AT2[SMSC_01]: opening device [9936] [6] DEBUG: AT2[SMSC_01]: device opened. Telnet mode = 0 [9936] [6] DEBUG: AT2[SMSC_01]: device opened [9936] [6] INFO: AT2[SMSC_01]: Logging in [9936] [6] INFO: AT2[SMSC_01]: init device [9936] [6] INFO: AT2[SMSC_01]: speed set to 115200 [9936] [6] DEBUG: AT2[SMSC_01]: --> ATZ^M [9936] [6] DEBUG: AT2[SMSC_01]: <-- OK [9936] [6] DEBUG: AT2[SMSC_01]: --> AT^M [9936] [6] DEBUG: AT2[SMSC_01]: <-- AT [9936] [6] DEBUG: AT2[SMSC_01]: <-- OK [9936] [6] DEBUG: AT2[SMSC_01]: --> AT&F^M [9936] [6] DEBUG: AT2[SMSC_01]: <-- AT&F [9936] [6] DEBUG: AT2[SMSC_01]: <-- OK [9936] [6] DEBUG: AT2[SMSC_01]: --> ATE0^M [9936] [6] DEBUG: AT2[SMSC_01]: <-- ATE0 [9936] [6] DEBUG: AT2[SMSC_01]: <-- OK [9936] [6] DEBUG: AT2[SMSC_01]: --> AT+IFC=2,2^M [9936] [6] DEBUG: AT2[SMSC_01]: <-- OK [9936] [6] DEBUG: AT2[SMSC_01]: --> AT+CPIN?^M [9936] [6] DEBUG: AT2[SMSC_01]: <-- +CPIN: READY [9936] [6] DEBUG: AT2[SMSC_01]: <-- OK [9936] [6] DEBUG: AT2[SMSC_01]: --> AT+CSCA="+491770610000"^M [9936] [6] DEBUG: AT2[SMSC_01]: <-- OK [9936] [6] DEBUG: AT2[SMSC_01]: --> AT+CMGF=0^M [9936] [6] DEBUG: AT2[SMSC_01]: <-- OK [9936] [6] DEBUG: AT2[SMSC_01]: --> AT+CSMS=?^M [9936] [6] DEBUG: AT2[SMSC_01]: <-- +CSMS: (128) [9936] [6] DEBUG: AT2[SMSC_01]: <-- OK [9936] [6] DEBUG: AT2[SMSC_01]: --> AT+CMEE=2;+CNMI=3,1,0,0,0^M [9936] [6] DEBUG: AT2[SMSC_01]: <-- OK [9936] [6] INFO: AT2[SMSC_01]: AT SMSC successfully opened. [9936] [6] DEBUG: AT2[SMSC_01]: TP-Validity-Period: 24.0 hours [9936] [6] DEBUG: AT2[SMSC_01]: --> AT+CMGS=93^M [9936] [6] DEBUG: AT2[SMSC_01]: <-- > [9936] [6] DEBUG: AT2[SMSC_01]: send command status: 1 [9936] [6] DEBUG: AT2[SMSC_01]: --> 0051000C91947199??????0004A74F0 605040B8423F0000605AE8DC0C39302056A0045C608110331323733353137393432 000C037761702E676F6F676C652E636F6D000103546869732069732061206675636 B696E672074657374000101 [9936] [6] DEBUG: AT2[SMSC_01]: --> ^Z [9936] [6] DEBUG: AT2[SMSC_01]: send command status: -1 WAP Box: ===================================================================== [10043] [0] INFO: Added logfile `/var/log/kannel/wapbox.log' with level `0'. [10043] [0] INFO: Starting to log to file /var/log/kannel/wapbox.log level 0 [10043] [0] DEBUG: syslog parameter is none [10043] [0] INFO: Logging accesses to '/var/log/kannel/wap-access.log'. [10043] [0] INFO: Started access logfile `/var/log/kannel/wap-access.log'. [10043] [0] INFO: -------------------------------------------------------- [10043] [0] INFO: Kannel wapbox version 1.4.3 starting up. [10043] [0] DEBUG: Started thread 1 (wap/wsp_session.c:main_thread) [10043] [0] DEBUG: Started thread 2 (wap/wsp_unit.c:main_thread) [10043] [0] DEBUG: Started thread 3 (wap/wsp_push_client.c:main_thread) [10043] [0] DEBUG: Started thread 4 (wap/timers.c:watch_timers) [10043] [0] DEBUG: Started thread 5 (wap/wtp_init.c:main_thread) [10043] [0] DEBUG: Started thread 6 (wap/wtp_resp.c:main_thread) [10043] [0] DEBUG: Started thread 7 (gw/wap-appl.c:main_thread) [10043] [0] DEBUG: Started thread 8 (gw/wap-appl.c:return_replies_thread) [10043] [0] DEBUG: Started thread 9 (gw/wap_push_ota.c:main_thread) [10043] [0] INFO: HTTP: Opening server at port 8080. [10043] [0] DEBUG: Started thread 10 (gwlib/fdset.c:poller) [10043] [0] DEBUG: Started thread 11 (gwlib/http.c:server_thread) [10043] [0] DEBUG: Started thread 12 (gw/wap_push_ppg.c:ota_read_thread) [10043] [0] DEBUG: Started thread 13 (gw/wap_push_ppg.c:http_read_thread) [10043] [0] DEBUG: Started thread 14 (gw/wap_push_ppg.c:pap_request_thread) [10043] [0] INFO: Connected to bearerbox at localhost port 13002. [10043] [0] DEBUG: Started thread 15 (gw/heartbeat.c:heartbeat_thread) [10043] [6] DEBUG: Thread 6 (wap/wtp_resp.c:main_thread) maps to pid 10043. [10043] [9] DEBUG: Thread 9 (gw/wap_push_ota.c:main_thread) maps to pid 10043. [10043] [4] DEBUG: Thread 4 (wap/timers.c:watch_timers) maps to pid 10043. [10043] [11] DEBUG: Thread 11 (gwlib/http.c:server_thread) maps to pid 10043. [10043] [13] DEBUG: Thread 13 (gw/wap_push_ppg.c:http_read_thread) maps to pid 10043. [10043] [15] DEBUG: Thread 15 (gw/heartbeat.c:heartbeat_thread) maps to pid 10043. [10043] [3] DEBUG: Thread 3 (wap/wsp_push_client.c:main_thread) maps to pid 10043. [10043] [1] DEBUG: Thread 1 (wap/wsp_session.c:main_thread) maps to pid 10043. [10043] [14] DEBUG: Thread 14 (gw/wap_push_ppg.c:pap_request_thread) maps to pid 10043. [10043] [12] DEBUG: Thread 12 (gw/wap_push_ppg.c:ota_read_thread) maps to pid 10043. [10043] [10] DEBUG: Thread 10 (gwlib/fdset.c:poller) maps to pid 10043. [10043] [8] DEBUG: Thread 8 (gw/wap-appl.c:return_replies_thread) maps to pid 10043. [10043] [7] DEBUG: Thread 7 (gw/wap-appl.c:main_thread) maps to pid 10043. [10043] [5] DEBUG: Thread 5 (wap/wtp_init.c:main_thread) maps to pid 10043. [10043] [2] DEBUG: Thread 2 (wap/wsp_unit.c:main_thread) maps to pid 10043. [10043] [11] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. [10043] [11] DEBUG: HTTP: Created HTTPClient area 0x22e0730. [10043] [14] INFO: PPG: Accept request </wappush> from <127.0.0.1> [10043] [14] DEBUG: PPG: http_read_thread: pap multipart accepted [10043] [14] INFO: client address was <+491799??????>, accepted [10043] [14] DEBUG: PAP COMPILER: doing semantic analysis for address type a phone number [10043] [14] DEBUG: using defaults instead of anys [10043] [14] DEBUG: PPG: http_read_thread: pap control entity compiled ok [10043] [14] DEBUG: PPG: transform_message: push message content and headers valid [10043] [14] DEBUG: PPG: push machine 0 created [10043] [14] DEBUG: PPG: store_push_data: push machine 0 appended to unit push list [10043] [14] DEBUG: PPG: send_push_response: telling pi [10043] [14] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. [10043] [14] INFO: PPG: handle_push_message: push message accepted for processing [10043] [14] DEBUG: PPG: OTA request for unit push [10043] [14] INFO: PPG: unconfirmed push delivered to OTA [10043] [14] DEBUG: PPG: destroying push machine 0 [10043] [9] DEBUG: OTA: event arrived [10043] [9] DEBUG: OTA: made connectionless session service request [10043] [2] DEBUG: WSP (UNIT): event arrived [10043] [2] DEBUG: WSP_UNIT: Connectionless push accepted [10043] [2] DEBUG: WSP: Mapping `application/vnd.wap.sic', WSP 1.2 to 0x002e. [10043] [2] DEBUG: WSP: Mapping `Content-Length', WSP 1.3 to 0x000d. [10043] [2] DEBUG: WSP: Mapping `Content-Type', WSP 1.3 to 0x0011. [10043] [2] DEBUG: WSP: Mapping `Encoding-Version', WSP 1.3 to 0x0043. [10043] [2] DEBUG: WDP (wapbox): delivering 1 segments to bearerbox [10043] [2] DEBUG: WSP (UNIT): delivering to wdp [10043] [10] DEBUG: HTTP: Destroying HTTPClient area 0x22e0730. [10043] [10] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. [10043] [0] WARNING: Received other message than wdp/admin, ignoring! SMS Box: ======================================================================= [10046] [0] INFO: Added logfile `/var/log/kannel/smsbox.log' with level `0'. [10046] [0] INFO: Service global sender set as '+4915779688801' [10046] [0] INFO: Logging accesses to '/var/log/kannel/sms-access.log'. [10046] [0] INFO: Started access logfile `/var/log/kannel/sms-access.log'. [10046] [0] INFO: HTTP: Opening server at port 13013. [10046] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) [10046] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) [10046] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 10046. [10046] [0] INFO: Set up send sms service at port 13013 [10046] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 10046. [10046] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) [10046] [0] DEBUG: ---------------------------------------------- [10046] [0] DEBUG: Kannel smsbox version 1.4.3 starting [10046] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 10046. [10046] [0] DEBUG: dumping group (sendsms-user): [10046] [0] DEBUG: <user-allow-ip> = <*.*.*.*> [10046] [0] DEBUG: <group> = <sendsms-user> [10046] [0] DEBUG: <max-messages> = <3> [10046] [0] DEBUG: <username> = <tester> [10046] [0] DEBUG: <concatenation> = <true> [10046] [0] DEBUG: <password> = <foobar> [10046] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) [10046] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 10046. [10046] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) [10046] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 10046. [10046] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) [10046] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 10046. [10046] [0] INFO: Connected to bearerbox at localhost port 13001. [10046] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) [10046] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 10046. Bearer Box: ============================================================================== [9936] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `0'. [9936] [0] INFO: Started access logfile `/var/log/kannel/kannel-access.log'. [9936] [0] INFO: HTTP: Opening server at port 13000. [9936] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) [9936] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) [9936] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 9936. [9936] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) [9936] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 9936. [9936] [0] DEBUG: starting smsbox connection module [9936] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 9936. [9936] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). [9936] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) [9936] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) [9936] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 9936. [9936] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 9936. [9936] [0] INFO: Set SMS resend frequency to 60 seconds. [9936] [0] INFO: SMS resend retry set to unlimited. [9936] [0] DEBUG: smsbox MO concatenated message handling enabled [9936] [0] INFO: DLR rerouting for smsc id <SMSC_01> disabled. [9936] [0] INFO: Added logfile `/var/log/kannel/smsc.log' with level `0'. [9936] [0] INFO: AT2[SMSC_01]: configuration doesn't show modemtype. will autodetect [9936] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread) [9936] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) [9936] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 9936. [9936] [0] DEBUG: starting UDP sender/receiver module [9936] [6] INFO: Logging thread `6' to logfile `/var/log/kannel/smsc.log' with level `0'. [9936] [0] INFO: Adding interface * [9936] [0] DEBUG: udpc_create: Bound to UDP <0.0.0.0:9200> [9936] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 9936. [9936] [0] DEBUG: Started thread 8 (gw/bb_udp.c:udp_receiver) [9936] [0] DEBUG: Started thread 9 (gw/bb_udp.c:udp_sender) [9936] [8] DEBUG: Thread 8 (gw/bb_udp.c:udp_receiver) maps to pid 9936. [9936] [0] DEBUG: udpc_create: Bound to UDP <0.0.0.0:9201> [9936] [9] DEBUG: Thread 9 (gw/bb_udp.c:udp_sender) maps to pid 9936. [9936] [0] DEBUG: Started thread 10 (gw/bb_udp.c:udp_receiver) [9936] [10] DEBUG: Thread 10 (gw/bb_udp.c:udp_receiver) maps to pid 9936. [9936] [0] DEBUG: Started thread 11 (gw/bb_udp.c:udp_sender) [9936] [0] DEBUG: starting wapbox connection module [9936] [0] DEBUG: Started thread 12 (gw/bb_boxc.c:wdp_to_wapboxes) [9936] [0] DEBUG: Started thread 13 (gw/bb_boxc.c:wapboxc_run) [9936] [0] DEBUG: starting WDP router [9936] [12] DEBUG: Thread 12 (gw/bb_boxc.c:wdp_to_wapboxes) maps to pid 9936. [9936] [0] DEBUG: Started thread 14 (gw/bearerbox.c:wdp_router) [9936] [14] DEBUG: Thread 14 (gw/bearerbox.c:wdp_router) maps to pid 9936. [9936] [0] INFO: ---------------------------------------- [9936] [0] INFO: Kannel bearerbox II version 1.4.3 starting [9936] [0] INFO: Loaded 0 messages from store. [9936] [0] INFO: MAIN: Start-up done, entering mainloop [9936] [0] DEBUG: AT2[SMSC_01]: start called [9936] [13] DEBUG: Thread 13 (gw/bb_boxc.c:wapboxc_run) maps to pid 9936. [9936] [11] DEBUG: Thread 11 (gw/bb_udp.c:udp_sender) maps to pid 9936. [9936] [13] INFO: Client connected from <127.0.0.1> [9936] [13] DEBUG: Started thread 15 (gw/bb_boxc.c:function) [9936] [15] DEBUG: Thread 15 (gw/bb_boxc.c:function) maps to pid 9936. [9936] [15] DEBUG: setting up systems for new wapbox [9936] [15] DEBUG: Started thread 16 (gw/bb_boxc.c:boxc_sender) [9936] [16] DEBUG: Thread 16 (gw/bb_boxc.c:boxc_sender) maps to pid 9936. [9936] [5] INFO: Client connected from <127.0.0.1> [9936] [5] DEBUG: Started thread 17 (gw/bb_boxc.c:function) [9936] [17] DEBUG: Thread 17 (gw/bb_boxc.c:function) maps to pid 9936. [9936] [17] DEBUG: Started thread 18 (gw/bb_boxc.c:boxc_sender) [9936] [18] DEBUG: Thread 18 (gw/bb_boxc.c:boxc_sender) maps to pid 9936. [9936] [17] DEBUG: boxc_receiver: got boxc_id <sms_box> from <127.0.0.1> [9936] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. [9936] [2] DEBUG: HTTP: Created HTTPClient area 0x1246d90. [9936] [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. [9936] [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. [9936] [15] DEBUG: boxc_receiver: got sms from wapbox [9936] [15] DEBUG: send_msg: sending msg to box: <127.0.0.1> [9936] [7] DEBUG: sms_router: handling message (0x12523b0 vs 0x12523b0) [9936] [7] DEBUG: re-queing SMS not-yet-to-be resent [9936] [7] DEBUG: sms_router: handling message (0x12523b0 vs 0x12523b0) [9936] [7] DEBUG: re-queing SMS not-yet-to-be resent [9936] [7] DEBUG: sms_router: time to sleep 30.00 secs. [9936] [7] DEBUG: sms_router: gwlist_len = 1 [9936] [7] DEBUG: sms_router: handling message (0x12523b0 vs 0x12523b0) [9936] [7] DEBUG: re-queing SMS not-yet-to-be resent [9936] [7] DEBUG: sms_router: handling message (0x12523b0 vs 0x12523b0) [9936] [7] DEBUG: re-queing SMS not-yet-to-be resent [9936] [7] DEBUG: sms_router: time to sleep 30.00 secs. [9936] [7] DEBUG: sms_router: gwlist_len = 1 [9936] [7] DEBUG: sms_router: handling message (0x12523b0 vs 0x12523b0) [9936] [7] DEBUG: re-queing SMS not-yet-to-be resent [9936] [7] DEBUG: sms_router: handling message (0x12523b0 vs 0x12523b0) [9936] [7] DEBUG: re-queing SMS not-yet-to-be resent [9936] [7] DEBUG: sms_router: time to sleep 30.00 secs. [9936] [1] DEBUG: Timeout for fd:53 appeares. [9936] [1] DEBUG: HTTP: Destroying HTTPClient area 0x1246d90. [9936] [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. [9936] [7] DEBUG: sms_router: gwlist_len = 1 [9936] [7] DEBUG: sms_router: handling message (0x12523b0 vs 0x12523b0) [9936] [7] DEBUG: Message routed successfully. [9936] [7] DEBUG: sms_router: handling message (0x1252240 vs 0x1252240) [9936] [7] DEBUG: re-queing SMS not-yet-to-be resent [9936] [7] DEBUG: sms_router: handling message (0x1252240 vs 0x1252240) [9936] [7] DEBUG: re-queing SMS not-yet-to-be resent [9936] [7] DEBUG: sms_router: time to sleep 30.00 secs. [9936] [7] DEBUG: sms_router: gwlist_len = 1 [9936] [7] DEBUG: sms_router: handling message (0x1252240 vs 0x1252240) [9936] [7] DEBUG: re-queing SMS not-yet-to-be resent [9936] [7] DEBUG: sms_router: handling message (0x1252240 vs 0x1252240) [9936] [7] DEBUG: re-queing SMS not-yet-to-be resent [9936] [7] DEBUG: sms_router: time to sleep 30.00 secs. [9936] [7] DEBUG: sms_router: gwlist_len = 1 [9936] [7] DEBUG: sms_router: handling message (0x1252240 vs 0x1252240) [9936] [7] DEBUG: Message routed successfully. [9936] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. [9936] [2] DEBUG: HTTP: Created HTTPClient area 0x1252a60. [9936] [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. wappush.php: ========================================================= <? $phone = '+4917649??????'; $push_url = 'http://wap.google.com'; $text = 'This is a test'; $smsc_id = 'SMSC_01'; send_wap_push($smsc_id, $phone, $push_url, $text); function send_wap_push($smsc_id, $phone, $push_url, $text) { $host = 'localhost'; $port = '8080'; $url = "http://$host:$port"; $wap_push_id = time(); $nl = "\r\n"; $body = '--multipart-boundary'.$nl. 'Content-type: application/xml'.$nl. $nl. '<?xml version="1.0"?>'.$nl. '<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN" "http://www.wapforum.org/DTD/pap_1.0.dtd" >'.$nl. '<pap>'.$nl. '<push-message push-id="'.$wap_push_id.'">'.$nl. '<address address-value="WAPPUSH='.$phone. '/type=p...@localhost"/>'.$nl. '<quality-of-service priority="high" delivery-method="unconfirmed" network-required="true" network="GSM" bearer-required="true" bearer="SMS"/>'.$nl. '</push-message>'.$nl. '</pap>'.$nl. $nl. '--multipart-boundary'.$nl. 'Content-type: text/vnd.wap.si'.$nl. $nl. '<?xml version="1.0"?>'.$nl. '<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" "http://www.wapforum.org/DTD/si.dtd">'.$nl. '<si>'.$nl. '<indication action="signal-high" si-id="'.$wap_push_id.'" href="'.$push_url.'">'.$text.'</indication>'.$nl. '</si>'.$nl. '--multipart-boundary--'.$nl; print_r($body); $post = 'POST /wappush HTTP/1.1'.$nl. 'Host: '.$host.':'.$port.$nl. 'X-Kannel-SMSC: '.$smsc_id.$nl. 'X-Kannel-Smsbox-Id: sms_box'.$nl. 'Content-Type: multipart/related; boundary=multipart-boundary; type="application/xml"'.$nl. 'Content-Length: '.strlen($body).$nl. $nl. $body; print_r($post.$nl.$nl.$nl.$nl,$nl); $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 15); curl_setopt ($ch,CURLOPT_CUSTOMREQUEST , $post); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $reply = curl_exec($ch); curl_close ($ch); print_r($reply." ".$wap_push_id); } ?> kannel.conf: ================================================================== group = core admin-port = 13000 admin-password = tester status-password = foobar admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1" log-file = "/var/log/kannel/bearerbox.log" log-level = 0 access-log = "/var/log/kannel/kannel-access.log" smsbox-port = 13001 wapbox-port = 13002 wdp-interface-name = "*" store-type = spool store-location = /var/spool/kannel group = smsc smsc-id = SMSC_01 smsc = at modemtype = auto device = /dev/ttyACM0 sms-center = +491770610000 my-number = +4915779?????? log-file = "/var/log/kannel/smsc.log" log-level = 0 max-error-count = 1 group = modems id = generic name = "Motorola" init-string = AT+CMEE=2;+CNMI=3,1,0,0,0 reset-string = "ATZ" group = wapbox bearerbox-host = localhost log-file = "/var/log/kannel/wapbox.log" log-level = 0 access-log = "/var/log/kannel/wap-access.log" syslog-level = none group = smsbox smsbox-id = sms_box bearerbox-host = localhost sendsms-port = 13013 sendsms-chars = "0123456789+" global-sender = +4915779?????? log-file = "/var/log/kannel/smsbox.log" log-level = 0 access-log = "/var/log/kannel/sms-access.log" sendsms-url = /cgi-bin/sendsms group = sendsms-user username = tester password = foobar user-allow-ip = "*.*.*.*" max-messages = 3 concatenation = true group = sms-service keyword = default text = "No service specified" #max-messages=0 group = ppg ppg-url = /wappush ppg-port = 8080 concurrent-pushes = 100 users = 1024 trusted-pi = true ppg-allow-ip = "*.*.*.*" ppg-smsbox-id = sms_box default-smsc = SMSC_01 group = wap-push-user ppg-username = tester ppg-password = foobar allow-ip = "*.*.*.*" default-smsc = SMSC_01 SMSC after restart of kannel: ================================================================ [2414] [6] DEBUG: AT2[SMSC_01]: detecting modem speed. [2414] [6] INFO: AT2[SMSC_01]: opening device [2414] [6] DEBUG: AT2[SMSC_01]: device opened. Telnet mode = 0 [2414] [6] DEBUG: AT2[SMSC_01]: device opened [2414] [6] INFO: AT2[SMSC_01]: speed set to 115200 [2414] [6] DEBUG: AT2[SMSC_01]: --> ^M [2414] [6] DEBUG: AT2[SMSC_01]: --> AT^M [2414] [6] DEBUG: AT2[SMSC_01]: --> AT^M [2414] [6] DEBUG: AT2[SMSC_01]: --> AT^M [2414] [6] INFO: AT2[SMSC_01]: Closing device [2414] [6] INFO: AT2[SMSC_01]: opening device [2414] [6] DEBUG: AT2[SMSC_01]: device opened. Telnet mode = 0 [2414] [6] DEBUG: AT2[SMSC_01]: device opened [2414] [6] INFO: AT2[SMSC_01]: speed set to 57600 [2414] [6] DEBUG: AT2[SMSC_01]: --> ^M [2414] [6] DEBUG: AT2[SMSC_01]: --> AT^M [2414] [6] DEBUG: AT2[SMSC_01]: --> AT^M [2414] [6] DEBUG: AT2[SMSC_01]: --> AT^M
