Re: fake SMSC
Check the docs. You have to run bearerbox first. Regards, Alejandro On 10/19/07, hafez ahmad [EMAIL PROTECTED] wrote: Hi All, I setup kannel on my ubuntu box using apt-get, I need to run and test the SMS gateway, I don't have SMSC to test with, is there a fake SMSC that I could testing with, when I run the command smsbox I get the following output: 2007-10-19 22:50:02 [12832] [0] INFO: Starting to log to file /var/log/kannel/smsbox.log level 0 2007-10-19 22:50:02 [12832] [0] INFO: Added logfile `/var/log/kannel/smsbox.log' with level `0'. 2007-10-19 22:50:02 [12832] [0] DEBUG: -- 2007-10-19 22:50:02 [12832] [0] DEBUG: Kannel smsbox version 1.4.1 starting 2007-10-19 22:50:02 [12832] [0] DEBUG: Started thread 1 (gw/smsbox.c:obey_request_thread) 2007-10-19 22:50:02 [12832] [0] DEBUG: Started thread 2 (gw/smsbox.c:url_result_thread) 2007-10-19 22:50:02 [12832] [0] DEBUG: Started thread 3 (gw/smsbox.c:http_queue_thread) 2007-10-19 22:50:02 [12832] [0] ERROR: connect failed 2007-10-19 22:50:02 [12832] [0] ERROR: System error 111: Connection refused 2007-10-19 22:50:02 [12832] [0] ERROR: error connecting to server `localhost' at port `13002' 2007-10-19 22:50:02 [12832] [0] PANIC: Couldn't connect to the bearerbox. 2007-10-19 22:50:02 [12832] [0] PANIC: smsbox(gw_panic+0x107) [0x8086367] 2007-10-19 22:50:02 [12832] [0] PANIC: smsbox(main+0xf0a) [0x8053baa] 2007-10-19 22:50:02 [12832] [0] PANIC: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc) [0xb78b9ebc] 2007-10-19 22:50:02 [12832] [0] PANIC: smsbox [0x80524e1] Is there problem with this output my kannel.conf file is: group = core admin-port = 13000 admin-password = bar admin-deny-ip = *.*.*.* admin-allow-ip = smsbox-port = 13002 #wapbox-port = 13002 #wdp-interface-name = * #wdp-interface-name = * log-file = /var/log/kannel/bearerbox.log box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 #group = wapbox #bearerbox-host = localhost #log-file = /var/log/kannel/wapbox.log group = smsbox bearerbox-host = localhost log-file = /var/log/kannel/smsbox.log any help, Thanks, Hafez -- Alejandro Guerrieri Magicom http://www.magicom-bcn.net/ LinkedIn: http://www.linkedin.com/in/aguerrieri
RE: mv file
Sorry, please do not post any NO RELATIVE Kannel subject to this mailing list. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: vendredi 19 octobre 2007 13:27 To: users@kannel.org Subject: Re: mv file Hi all This is not a kannel issue, but I need your assistance. I am using linux red hat. I mistakinly move all files in my root directory to anotehr directory - mv /* /var/www. Nothing works. Plese how can I move the files back. Thanks. Ismail - Original Message - From: info.ubichip [EMAIL PROTECTED] To: 'Alexander Bukharin' [EMAIL PROTECTED]; users@kannel.org Sent: Friday, October 19, 2007 6:30 AM Subject: RE: Delete old messages from store-file Yes definetly, You only have to delete the kannel.store and kannel.store.bak according your kannel.conf The first one is used by kannel as the true store, the .bak is used in case of crash for persistence. Hope that help Ps : you have to stop the kannel process to do that -Original Message- From: Alexander Bukharin [mailto:[EMAIL PROTECTED] Sent: jeudi 18 octobre 2007 21:33 To: users@kannel.org Subject: Delete old messages from store-file Hi! I'm using kannel with GSM modem. For some reason kannel can't send some messages and they remain in the store-file. I can see it with /store-status. But when I restart kannel it begins to send these messages even if they are quite old and there is validityperiod = 6 (35 minutes) in smsc group in kannel.conf. Is it possible to delete old messages from store-file, or to patch kannel so it wouldn't resend messages if they older then validity-period? Here is the situation when message get stuck in the store-file: 2007-10-17 20:21:39 [3736] [7] DEBUG: AT2[gsm1]: TP-Validity-Period: 35 minutes 2007-10-17 20:21:39 [3736] [7] DEBUG: AT2[gsm1]: -- AT+CMGS=54^M 2007-10-17 20:21:39 [3736] [7] DEBUG: AT2[gsm1]: -- 2007-10-17 20:21:39 [3736] [7] DEBUG: AT2[gsm1]: -- 2007-10-17 20:21:39 [3736] [7] DEBUG: AT2[gsm1]: send command status: 1 2007-10-17 20:21:39 [3736] [7] DEBUG: AT2[gsm1]: -- 0011000B320020 2007-10-17 20:21:39 [3736] [7] DEBUG: AT2[gsm1]: -- ^Z 2007-10-17 20:22:00 [3736] [7] DEBUG: AT2[gsm1]: send command status: -1 2007-10-17 20:22:00 [3736] [7] DEBUG: AT2[gsm1]: -- AT+CMGS=54^M 2007-10-17 20:22:00 [3736] [7] DEBUG: AT2[gsm1]: -- 2007-10-17 20:22:00 [3736] [7] DEBUG: AT2[gsm1]: -- OK 2007-10-17 20:22:00 [3736] [7] DEBUG: AT2[gsm1]: send command status: 0 _ Antivirus avast! http://www.avast.com : message Sortant sain. Base de donnees virale (VPS) : 000782-2, 18/10/2007 Analyse le : 18/10/2007 22:30:20 avast! - copyright (c) 1988-2007 ALWIL Software. _ Antivirus avast! http://www.avast.com : message Sortant sain. Base de donnees virale (VPS) : 000782-3, 19/10/2007 Analyse le : 19/10/2007 13:32:29 avast! - copyright (c) 1988-2007 ALWIL Software.
Re: mv file
Hi all This is not a kannel issue, but I need your assistance. I am using linux red hat. I mistakinly move all files in my root directory to anotehr directory - mv /* /var/www. Nothing works. Plese how can I move the files back. Thanks. Ismail - Original Message - From: info.ubichip [EMAIL PROTECTED] To: 'Alexander Bukharin' [EMAIL PROTECTED]; users@kannel.org Sent: Friday, October 19, 2007 6:30 AM Subject: RE: Delete old messages from store-file Yes definetly, You only have to delete the kannel.store and kannel.store.bak according your kannel.conf The first one is used by kannel as the true store, the .bak is used in case of crash for persistence. Hope that help Ps : you have to stop the kannel process to do that -Original Message- From: Alexander Bukharin [mailto:[EMAIL PROTECTED] Sent: jeudi 18 octobre 2007 21:33 To: users@kannel.org Subject: Delete old messages from store-file Hi! I'm using kannel with GSM modem. For some reason kannel can't send some messages and they remain in the store-file. I can see it with /store-status. But when I restart kannel it begins to send these messages even if they are quite old and there is validityperiod = 6 (35 minutes) in smsc group in kannel.conf. Is it possible to delete old messages from store-file, or to patch kannel so it wouldn't resend messages if they older then validity-period? Here is the situation when message get stuck in the store-file: 2007-10-17 20:21:39 [3736] [7] DEBUG: AT2[gsm1]: TP-Validity-Period: 35 minutes 2007-10-17 20:21:39 [3736] [7] DEBUG: AT2[gsm1]: -- AT+CMGS=54^M 2007-10-17 20:21:39 [3736] [7] DEBUG: AT2[gsm1]: -- 2007-10-17 20:21:39 [3736] [7] DEBUG: AT2[gsm1]: -- 2007-10-17 20:21:39 [3736] [7] DEBUG: AT2[gsm1]: send command status: 1 2007-10-17 20:21:39 [3736] [7] DEBUG: AT2[gsm1]: -- 0011000B320020 2007-10-17 20:21:39 [3736] [7] DEBUG: AT2[gsm1]: -- ^Z 2007-10-17 20:22:00 [3736] [7] DEBUG: AT2[gsm1]: send command status: -1 2007-10-17 20:22:00 [3736] [7] DEBUG: AT2[gsm1]: -- AT+CMGS=54^M 2007-10-17 20:22:00 [3736] [7] DEBUG: AT2[gsm1]: -- 2007-10-17 20:22:00 [3736] [7] DEBUG: AT2[gsm1]: -- OK 2007-10-17 20:22:00 [3736] [7] DEBUG: AT2[gsm1]: send command status: 0 _ Antivirus avast! http://www.avast.com : message Sortant sain. Base de donnees virale (VPS) : 000782-2, 18/10/2007 Analyse le : 18/10/2007 22:30:20 avast! - copyright (c) 1988-2007 ALWIL Software.
fake SMSC
Hi All, I setup kannel on my ubuntu box using apt-get, I need to run and test the SMS gateway, I don't have SMSC to test with, is there a fake SMSC that I could testing with, when I run the command smsbox I get the following output: 2007-10-19 22:50:02 [12832] [0] INFO: Starting to log to file /var/log/kannel/smsbox.log level 0 2007-10-19 22:50:02 [12832] [0] INFO: Added logfile `/var/log/kannel/smsbox.log' with level `0'. 2007-10-19 22:50:02 [12832] [0] DEBUG: -- 2007-10-19 22:50:02 [12832] [0] DEBUG: Kannel smsbox version 1.4.1 starting 2007-10-19 22:50:02 [12832] [0] DEBUG: Started thread 1 (gw/smsbox.c:obey_request_thread) 2007-10-19 22:50:02 [12832] [0] DEBUG: Started thread 2 (gw/smsbox.c:url_result_thread) 2007-10-19 22:50:02 [12832] [0] DEBUG: Started thread 3 (gw/smsbox.c:http_queue_thread) 2007-10-19 22:50:02 [12832] [0] ERROR: connect failed 2007-10-19 22:50:02 [12832] [0] ERROR: System error 111: Connection refused 2007-10-19 22:50:02 [12832] [0] ERROR: error connecting to server `localhost' at port `13002' 2007-10-19 22:50:02 [12832] [0] PANIC: Couldn't connect to the bearerbox. 2007-10-19 22:50:02 [12832] [0] PANIC: smsbox(gw_panic+0x107) [0x8086367] 2007-10-19 22:50:02 [12832] [0] PANIC: smsbox(main+0xf0a) [0x8053baa] 2007-10-19 22:50:02 [12832] [0] PANIC: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc) [0xb78b9ebc] 2007-10-19 22:50:02 [12832] [0] PANIC: smsbox [0x80524e1] Is there problem with this output my kannel.conf file is: group = core admin-port = 13000 admin-password = bar admin-deny-ip = *.*.*.* admin-allow-ip = smsbox-port = 13002 #wapbox-port = 13002 #wdp-interface-name = * #wdp-interface-name = * log-file = /var/log/kannel/bearerbox.log box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 #group = wapbox #bearerbox-host = localhost #log-file = /var/log/kannel/wapbox.log group = smsbox bearerbox-host = localhost log-file = /var/log/kannel/smsbox.log any help, Thanks, Hafez
Re: http request for wap push
You're maybe having some problem with some \r\n or similar, when I first did it I spent some time tweaking that until it worked... I once sent to the list my PPG Mini HOWTO, where I included some PHP code quite similar to the one I'm using on production: http://article.gmane.org/gmane.comp.mobile.kannel.user/11009/match=ppg+send+url Here's the PHP code part, hope it helps: ? $country_code = '12'; $phone = '1234567890'; $push_url = 'http://wap.google.com'; $text = 'This is a test'; $smsc_id = 'mySMSCid'; send_wap_push($smsc_id, $country_code, $phone, $url, $text); function send_wap_push($smsc_id, $country_code, $phone, $push_url, $text) { $host = 'xxx.xxx.xxx.xxx'; $port = '8080'; $url = http://$host:$port;; //$ppg_user = 'foo'; //$ppg_pass = 'bar'; $wap_push_id = function_that_generates_a_unique_id(); $body = --multipart-boundary\r\n. Content-type: application/xml\r\n\r\n. '?xml version=1.0?'.\r\n. '!DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP 1.0//EN'.\r\n. 'http://www.wapforum.org/DTD/pap_1.0.dtd; '.\r\n. 'pap'.\r\n. 'push-message push-id='.$wap_push_id.''.\r\n. 'address address-value=WAPPUSH=+'.$country_code.$phone.'/[EMAIL PROTECTED]/'.\r\n. 'quality-of-service delivery-method=unconfirmed network=GSM bearer=SMS/'. /push-message\r\n. /pap\r\n\r\n. --multipart-boundary\r\n. Content-type: text/vnd.wap.si\r\n\r\n. '?xml version=1.0?'.\r\n. '!DOCTYPE si PUBLIC -//WAPFORUM//DTD SI 1.0//EN'.\r\n. 'http://www.wapforum.org/DTD/si.dtd;'.\r\n. si\r\n. 'indication action=signal-high si-id='.$wap_push_id.' href='.$push_url.''.$text.'/indication'.\r\n. /si\r\n. --multipart-boundary--\r\n; $post = POST /wappush HTTP/1.1\r\n. Host: $host:$port\r\n. //Authorization: Basic .base64_encode($ppg_user:$ppg_pass).\r\n; X-Kannel-SMSC: $smsc_id\r\n. 'Content-Type: multipart/related; boundary=multipart-boundary; type=application/xml'.\r\n. Content-Length: .strlen($body).\r\n. \r\n. $body; $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); } ? On 10/19/07, nxs_02 [EMAIL PROTECTED] wrote: hi i want to ask about http request for wap push in kannel, here my source code. ?php echo ?xml version=\1.0\ encoding=\iso-8859-1\?; echo !DOCTYPE wml PUBLIC \-//WAPFORUM//DTD WML 1.2//EN\ \http://www.wapforum.org/DTD/wml_1.2.xml\;; $msisdn = +6281xxx; $txt = Anda Mandapat Pesan; $link = http://www.chat2konco.com;; $url = http://127.0.0.1:8080/wappush;; $msisdn_pap = rawurldecode($msisdn); $txt_pap = htmlspecialchars(rawurldecode($txt)); $smsc_id = l7; $body = \r\n\r\n. --asdlfkjiurwgasf\r\n. Content-type: application/xml\r\n\r\n. ?xml version=\1.0\?. !DOCTYPE pap PUBLIC \-//WAPFORUM//DTD PAP 2.0//EN\. \http://www.wapforum.org/DTD/pap_2.0.dtd\;;. pap product-name=\Aloww! Chat\. push-message push-id=\ABC032\ progress-notes-requested=\false\. address address-value=\WAPPUSH=.$msisdn_pap./[EMAIL PROTECTED]/. quality-of-service priority=\high\ delivery-method=\unconfirmed\ network-required=\true\ bearer-required=\true\ network=\GSM\ bearer=\SMS\. /quality-of-service. /push-message. /pap\r\n\r\n. --asdlfkjiurwgasf\r\n. Content-type: text/vnd.wap.si\r\n\r\n. ?xml version=\1.0\?. !DOCTYPE si PUBLIC \-//WAPFORUM//DTD SI 1.0//EN\. \http://www.wapforum.org/DTD/si.dtd\;;. si. indication action=\signal-medium\ href=.$link..$txt_pap./indication. /si\r\n\r\n. --asdlfkjiurwgasf\r\n\r\n; $header[] = MIME-Version: 1.0; $header[] = X-Kannel-SMSC: $smsc_id; $header[] = Content-type:
Re: Split messages charged more than once
It's normal :) Every 140 octet or 160 chars septet will be charged as 1 SMS if you send more than 140 octet then each part will be charge for 1 SMS On 10/20/07, Otandeka Simon Peter [EMAIL PROTECTED] wrote: Hello all, We use MT billing. However if a message is longer than 160 characters, the subscriber is charged more than once for the number of messages got. I tried to set concatenation=true so that it is reassembled into one long message by the recieving device but still it charges more. Is there a way I can change anything in my conf to ensure a subscriber is charged only once. Regards Peter -- Regards, Ady Wicaksono Email: ady.wicaksono at gmail.com http://adywicaksono.wordpress.com/
Split messages charged more than once
Hello all, We use MT billing. However if a message is longer than 160 characters, the subscriber is charged more than once for the number of messages got. I tried to set concatenation=true so that it is reassembled into one long message by the recieving device but still it charges more. Is there a way I can change anything in my conf to ensure a subscriber is charged only once. Regards Peter
DLR URL not returning all parameters
Hi All, (DISCLAIMER: This error might be due to very delayed DLRs coming back, that were requested before the relevant parameter was added, unfortunately, will not know for sure till tommorow.) I have a problem, where the DLR URL is not returning all parameters when the DLR code is: 006. More specifically, when is set the DLR url, I add an outgoing id value (outid=), this is passed back fine on ACKs, err:003, err:004, and so on, but on err:006 it is missing, while looking like all the Kannel %X parameters return OK. If you have an idea let me know. Kyriacos -- Kyriacos Sakkas Development Team Netsmart Tel: + 357 22 452565 Fax: + 357 22 452566 Email: [EMAIL PROTECTED] http://www.netsmart.com.cy Taking Business to a New Level! ** Confidentiality Notice: The information contained in this email message may be privileged, confidential and protected from disclosure. If you are not the intended recipient, any dissemination, distribution, or copying of this email message is strictly prohibited. If you think that you have received this email message in error, please email the sender at [EMAIL PROTECTED] **