Re: Parsing access.log
On Mar 13, 2008, at 4:56 PM, Illimar Reinbusch - Telejazz.com wrote: Hi Has anyone done parsing access.log to somekind database, for example MySQL? I would need allmost realtime access to logs, to see if everything is working perfcetly, mainly needed by my supervisors for statistics and billing purposes. Why should use the hard-way? I add extra script to store any MT messages submitted before sending an MT-message, in get-url/exec for incoming MO messages, and finally updating their status with DLR hope this could help ... --tjatur Thanks, Illimar
Re: how do I prevent my SIM card from filling up with incoming messages?
On Jan 24, 2008, at 7:00 AM, Iain Dooley wrote: Change the memory location from SM to ME i think this may solve the problem i've been having with this PDU extract error... if the message isn't ever being stored in SIM memory then kannel won't ever be trying to read a non-existing message right? when you say change the memory location from SM to ME is that a setting in the kannel config file or the modem initialisation string? message-storage string : Message storage memory type to enable for SIM buffering. Possible values are: SM - SIM card memory or ME - Mobile equipment memory (may not be supported by your modem). check your modem's manual for more types. By default, if the option is not set, no message storage command will be sent to the modem and the modem's default message storage will be used (usually SM). http://www.kannel.org/download/1.4.1/userguide-1.4.1/userguide.html#AEN1961 hope this help... --tjatur cheers iain Hope it helps -Original Message- From: Matthew Wilson [mailto:[EMAIL PROTECTED] Sent: mercredi 23 janvier 2008 13:12 To: users@kannel.org Subject: how do I prevent my SIM card from filling up with incoming messages? I'm using kannel after making a bluetooth rfcomm connection to my Samsung A707 handset. It works fine, except that I eventually fill up my phone's memory. I want to configure kannel so that every time it processes an incoming SMS message, it deletes that message. Is this possible? TIA Matt _ Antivirus avast! http://www.avast.com : message Sortant sain. Base de donnees virale (VPS) : 080123-2, 23/01/2008 Analyse le : 23/01/2008 15:52:55 avast! - copyright (c) 1988-2008 ALWIL Software.
Re: Need Help Configuring Kannel for SMS Pull
Hi, Peter,... If I'm not mistaken, you try to fetch SMS coming to your accessnumber/ accesscode and then base on keyword (sms message) to send the reply to the sender. So, first of all, try to make sure that get-url set in sms-service is a working http services. Try to test it command line or whatever tools available to you. All your incomming message (MO) will arrive through this get-url. If this URL did not answer, you won't be able to fetch MO's. In order to reply back, create a script that invoke sendsms-cgi to send reply (MT message) to sender. snippet http://smsbox.host.name:13013/cgi-bin/sendsms?username=foopassword=barto=0123456text=Hello+world /snippet Put the script somewhere in your get-url http service (if you need to reply synchronously) or triggered on other event (batch) if you want to reply asynchronously. Hope this could give a light to start digging. --tjatur On Jan 22, 2008, at 6:41 PM, Engel L wrote: Hi Peter, Yes I defined get-url in sms-service group = sms-service keyword = nmc get-url = http://10.10.6.42/nmc/test.txt #get-url = http://10.10.6.42/nmc/app.php?sa=%pmsg=%a; max-messages = 3 catch-all = true I am not sure why I need the 'to' parameter in my URL since all I need from the SMSC is the message content and the sender of the Message (So I can process the content and respond with the result to the sender). What do you mean the URL is of the client or mine? The person in charge of the SMSC (Provider's) told me they can route the sms to me via HTTP (as a HTTP request). So that is the format of the URL I expect them to use. The only information I need from them is the sender of the message (a pull message) and the text (content), I will respond straight to the sender with a response. Hope that helps. Kind Regards, Engel Linus On Jan 22, 2008 12:27 PM, Otandeka Peter [EMAIL PROTECTED] wrote: Hi Engel, Did you define anything in sms-service(get-url)? Also look at http relay in kannel userguide, it can help you alot Is that URL for the client or yours? I think your URL should be like 'http://localhost:13003/nmc/app.php?from= shortcodeto=phone_nomsg=Test+message' . We need more information from you so that we can be able to diagnose your problem. Cheers Peter - Original Message - From: Engel L To: users@kannel.org Sent: Tuesday, January 22, 2008 11:57 AM Subject: Re: Fwd: Need Help Configuring Kannel for SMS Pull Hi, I think the problem is that Kannel is looking for the wed document in the wrong place. Is there a way to tell it where to start looking? The document is currently in the Apache root (/var/www/), I thought that is where Kannel would start looking but obviously I was wrong. Regards, Engel Linus On Jan 22, 2008 9:39 AM, Engel L [EMAIL PROTECTED] wrote: Hi Guys, I am still struggling with with Kannel pull messages. My provider's SMSC guys are still working on routing sms's to my box. They seem to be taking time with that so I am simulating that part by doing a HTTP request via a web browser from another client as follows: http://x.x.x.x:13003/nmc/app.php?sender=1234567msg=Test+message where x.x.x.x is my Kannel box IP address. The Kannel smsbox logs show the following: 2008-01-22 09:22:38 [10403] [3] INFO: smsbox: Got HTTP request /nmc/ app.php fr om 10.10.32.34 2008-01-22 09:22:38 [10403] [3] DEBUG: Status: 404 Answer: Unknown request. 2008-01-22 09:22:38 [10403] [3] DEBUG: HTTP: Resetting HTTPClient for `10.10.32. 34'. Please explain why I am getting a 404 (unknown request) while the file exists. Regards, Engel Linus On Jan 18, 2008 12:49 PM, Mike Nwaogu [EMAIL PROTECTED] wrote: Hello Engel/Peter, Below is a sample configuration. this configuration will accept messages from the connectors and route the message to the php script also stated in the configuration. Now, to respond the php script will have to originate the message using perhaps the http sending method. group = smsc smsc = smpp smsc-id=sms2 host = 192.168.0.11 port = 9900 transceiver-mode = true smsc-username = u53r smsc-password = p455w07d system-type = address-range = source-addr-ton = 2 source-addr-npi = 1 group = sendsms-user username = usr password = pwd default-sender=WORD default-smsc concatenation = true group = sms-service keyword = default get-url = http://localhost/path/to/app.php?SOURCEADDR=%pDESTADDR= %PKEYWORD=%kID=%IORIGIN=%iMESSAGE=%a max-messages = 1 catch-all=true Regards, Mike Nwaogu Tel: 234_802_325_6437 Eml: [EMAIL PROTECTED] - Original Message From: Engel L [EMAIL PROTECTED] To: users@kannel.org Sent: Friday, January 18, 2008 8:33:50 AM Subject: Fwd: Need Help Configuring Kannel for SMS Pull -- Forwarded message -- From: Engel L [EMAIL PROTECTED] Date: Jan 18, 2008 8:41 AM Subject: Re: Need Help Configuring Kannel for SMS Pull To: Otandeka Simon Peter [EMAIL PROTECTED] Hi Peter, Your config file is almost similar to
Re: kannel, store messages
On Jun 11, 2007, at 7:20 PM, Anand Gupta wrote: Dear Tjatur, Thanks for the response. Heru Tjatur wrote: 2 3. Absoultely yes, you could do that. You just have to write down script to store messages in or out of kannel. Kannel won't do that for you. Your script could store message out before or after invoking sendsms url. Fordelivery receipt, you could use url-dlr parameter to trigger the script that will handle the incomming DR. You could find url-dlr info on Kannel User Guide http://www.kannel.org/download/1.4.1/userguide-1.4.1/ userguide.html#DELIVERY-REPORTS Hope this could help you... Can you please give me some example or something on how to store the messages ? In your post exec = /usr/local/bin/kannel_incoming %t %q %a in your conf. You could add one or two lines of command that insert incoming messages to a database or file in your kannel_incoming script or executable. --tjatur --tjatur On Thu, 2007-06-07 at 01:15 +0530, Anand Gupta wrote: Hi Everyone! I am trying to setup kannel on debian using standard deb packages. My smsc is basically providing me an smpp connectivity. Here is what i have in kannel.conf right now # CORE group = core admin-port = 13000 admin-password = pwd status-password = pwd log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access.log smsbox-port = 13001 store-file = /var/log/kannel/kannel.store # SMSC group = smsc smsc = smpp host = x.x.x.x port = 1234 smsc-username = user smsc-password = pass system-type = SMS keepalive = 50 # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13131 sendsms-chars = 0123456789+ log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/access.log # SEND-SMS USERS group = sendsms-user username = sms password = pwd # SMS SERVICE 'Default' # there should be default always group = sms-service keyword = default exec = /usr/local/bin/kannel_incoming %t %q %a With the above, my kannel starts up properly and log files show that the connection to the smsc has been made. I have tested that kannel is sending the message also to the smsc and the message is getting delivered to my handset also. lynx --dump http://127.0.0.1:13013/cgi-bin/sendsms? username=smspassword=pwdto=NUMBERtext=hellofrom=anandmclass=1 Now what i wanted to know is 1. Is it ok to use the deb packages, or should i compile kannel ? 2. Can i store all messages being send out by kannel inside a database ? mysql / postgresql (will prefer later) 3. Can kannel store the delivery receipts of all messages ? If yes then can it be stored in the same mysql/ postgresql database ? I tried to look up in the mailing list and googled and the only thing i can find is kannel stores the message only temporarily in mysql and not permanent. Any help on this will be appreciated. -- regards, Anand Gupta -- regards, Anand Gupta
Re: kannel, store messages
Hi Anand, You are on the right track 1. CIIMW, It depends on your requirement actually. If you don't need special setting and the default setting work find for you, why have you made things difficult. 2 3. Absoultely yes, you could do that. You just have to write down script to store messages in or out of kannel. Kannel won't do that for you. Your script could store message out before or after invoking sendsms url. Fordelivery receipt, you could use url-dlr parameter to trigger the script that will handle the incomming DR. You could find url-dlr info on Kannel User Guide http://www.kannel.org/download/1.4.1/userguide-1.4.1/userguide.html#DELIVERY-REPORTS Hope this could help you... --tjatur On Thu, 2007-06-07 at 01:15 +0530, Anand Gupta wrote: Hi Everyone! I am trying to setup kannel on debian using standard deb packages. My smsc is basically providing me an smpp connectivity. Here is what i have in kannel.conf right now # CORE group = core admin-port = 13000 admin-password = pwd status-password = pwd log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access.log smsbox-port = 13001 store-file = /var/log/kannel/kannel.store # SMSC group = smsc smsc = smpp host = x.x.x.x port = 1234 smsc-username = user smsc-password = pass system-type = SMS keepalive = 50 # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13131 sendsms-chars = 0123456789+ log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/access.log # SEND-SMS USERS group = sendsms-user username = sms password = pwd # SMS SERVICE 'Default' # there should be default always group = sms-service keyword = default exec = /usr/local/bin/kannel_incoming %t %q %a With the above, my kannel starts up properly and log files show that the connection to the smsc has been made. I have tested that kannel is sending the message also to the smsc and the message is getting delivered to my handset also. lynx --dump http://127.0.0.1:13013/cgi-bin/sendsms?username=smspassword=pwdto=NUMBERtext=hellofrom=anandmclass=1; Now what i wanted to know is 1. Is it ok to use the deb packages, or should i compile kannel ? 2. Can i store all messages being send out by kannel inside a database ? mysql / postgresql (will prefer later) 3. Can kannel store the delivery receipts of all messages ? If yes then can it be stored in the same mysql/ postgresql database ? I tried to look up in the mailing list and googled and the only thing i can find is kannel stores the message only temporarily in mysql and not permanent. Any help on this will be appreciated. -- regards, Anand Gupta
Re: Kannel sms-service help
Dear Tharanga, Set your kannel configuration to not reply incomming message directly. So, the reply message should be sent by your application. To avoid direct response or reply, add max-messages = 0 in your sms-service config. Hope this would help you.. --tjatur On Tue, 2007-04-10 at 09:26 +0600, Tharanga wrote: Hello friends, Iam using kannel to give some keyword based services. but my poblem is anyone can send a text message with the keyword and anyone can receive it it will cost some amount. ( iam using a program to check the customer number and if its in my database i'll send the request). but i dont want to use a white list in my configurauiton. (because of dynamic nature of my users MSISDN's). (but i can use prefix matches to stop webbase sms sending) if a user which is not in my database can send a message to kannel and he will receive one sms saying...couldnot fetch content..or invalid..entry..etc). is there any way to stop that behaviour ?? i need to send mesages to my registered users. others should discard from the gateway. i know white list can be used to do this..but i dont want to use that white list filtering..my numbers are not static.. but my program can filter valid numbers and send the content to the user. but invlaid users also get a message...(programatically i cant control it..kannel sends a message i have remove the defualt keywords also..but no luck) any ideas suggestions are really appriciated Thanks in advance, Tharanga
Re: interal dlr storage
On Fri, 2007-03-09 at 12:18 +1100, Iain Dooley wrote: You can acces the internal store via the HTTP administration. See the user guide for store-status wow! this is great, just what i needed. the http admin interface will be great for system monitoring too. just one problem: lynx -dump http://localhost:13000/store-status.txt?password=MYPASS; returns an empty dlr file. this is a great format for me because i can just write scripts to process my dlr's, and i also saw the flush-dlr parameter to the admin so that's great. but i had the impression from this: http://www.kannel.org/download/1.4.1/userguide-1.4.1/userguide.html#AEN2817 where it says Delivery reports are supported by default internally that i would be receiving delivery reports by default. do i have to do something to enable them? i already have the dlr-storage=internal directive in my core group configuration. You have to add dlr-mask and urlencoded dlr-url parameter when You send the sms. http://www.kannel.org/download/1.4.1/userguide-1.4.1/userguide.html#DELIVERY-REPORTS Hope this help you.. cheers --tjatur cheers iain
RE: DLR help
Dear Tushar, Hope this help you... First, please stay on the List. So, if I pointed to the wrong way, other fellow member could direct to the right way. Example $dlrURL = urlencode(http://host:port/script?$Param;); http://host:port/cgi-bin/sendsms?user=userNamepassword=userPassto=from=text=Messagedlr-mask=xxdlr-url=$dlrURL It means, when you send SMS (by the above cgi-bin), in your mysql will be inserted an dlr entry. The entry will be deleted when matching message's DLR come. The dlr-url will be trigered, prior matching DLR deletion process. For further info please refer to this URL: http://www.kannel.org/download/1.4.1/userguide-1.4.1/userguide.html#AEN4201 Regards, --tjatur On Wed, 2007-02-07 at 18:09 +0530, Tushar wrote: Hi, Thanx for replying. Can u plz help me with a sample of dlr-url configuration, I kinda got stuck with this DLR. Thanx and Regards, Tushar -Original Message- From: Heru Tjatur [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 07, 2007 5:55 PM To: users@kannel.org Subject: Re: DLR help Hi, AFAIK, MySQL storage in dlr storage means/work when DLR for specified message arrive, it will trigger dlr-url in dlr storage, and then delete the entry. If you plan to record the dlr status, you have to do some scripting and put it in your dlr-url (the action will be done if DLR arrived). Your error means the incomming DLR cannot find a matching dlr-url entry in your dlr table. Hope this help start digging.. --tjatur On Wed, 2007-02-07 at 17:44 +0530, Tushar wrote: Hi all, I m configuring kannel message reception. The DLRs received by kannel is not getting saved MYSQL.. The log of bearerbox is as follows:- Please help me with the configuration of DLRs... 2007-02-07 17:15:51 [15840] [7] DEBUG:Octet string at 0x81cc2f0: 2007-02-07 17:15:51 [15840] [7] DEBUG: len: 113 2007-02-07 17:15:51 [15840] [7] DEBUG: size: 114 2007-02-07 17:15:51 [15840] [7] DEBUG: immutable: 0 2007-02-07 17:15:51 [15840] [7] DEBUG: data: 69 64 3a 34 35 43 42 38 44 35 39 20 73 75 62 3a id:45CB8D59 sub: 2007-02-07 17:15:51 [15840] [7] DEBUG: data: 20 20 30 20 64 6c 76 72 64 3a 20 20 30 20 73 75 0 dlvrd: 0 su 2007-02-07 17:15:51 [15840] [7] DEBUG: data: 62 6d 69 74 20 64 61 74 65 3a 30 37 30 32 30 37 bmit date:070207 2007-02-07 17:15:51 [15840] [7] DEBUG: data: 31 36 35 38 20 64 6f 6e 65 20 64 61 74 65 3a 30 1658 done date:0 2007-02-07 17:15:51 [15840] [7] DEBUG: data: 37 30 32 30 37 31 36 35 39 20 73 74 61 74 3a 44 702071659 stat:D 2007-02-07 17:15:51 [15840] [7] DEBUG: data: 45 4c 49 56 52 44 20 65 72 72 3a 30 30 30 20 54 ELIVRD err:000 T 2007-02-07 17:15:51 [15840] [7] DEBUG: data: 65 78 74 3a 74 65 73 74 20 6d 65 73 73 61 67 65 ext:test message 2007-02-07 17:15:51 [15840] [7] DEBUG: data: 34 4 2007-02-07 17:15:51 [15840] [7] DEBUG:Octet string dump ends. 2007-02-07 17:15:51 [15840] [7] DEBUG: message_state: 2 = 0x0002 2007-02-07 17:15:51 [15840] [7] DEBUG: receipted_message_id: 45CB8D59 2007-02-07 17:15:51 [15840] [7] DEBUG: SMPP PDU dump ends. 2007-02-07 17:15:51 [15840] [7] DEBUG: SMPP[mysmpp] handle_pdu, got DLR 2007-02-07 17:15:51 [15840] [7] DEBUG: DLR[mysql]: Looking for DLR smsc=mysmpp, ts=45CB8D59, dst=919820245371, type=1 2007-02-07 17:15:51 [15840] [7] DEBUG: sql: SELECT mask, service, url, source, destination, boxc FROM dlr WHERE smsc='mysmpp' AND ts='45CB8D59'; 2007-02-07 17:15:51 [15840] [7] DEBUG: no rows found 2007-02-07 17:15:51 [15840] [7] WARNING: DLR[mysql]: DLR for DST919820245371 not found. 2007-02-07 17:15:51 [15840] [7] ERROR: SMPP[mysmpp]: got DLR but could not find message or was not interested in it id45CB8D59 dst919820245371, type1
Re: Unable to receive messages....
Do you have any log... --tjatur On Thu, 2007-02-08 at 15:10 +0530, Tushar wrote: Hi, Still I m unable to receive messages…..plz have a look at my configuration file: group = core admin-port=13000 smsbox-port = 13001 wapbox-port = 13002 admin-password =pass wdp-interface-name = * log-file = /tmp/bearerbox.log log-level = 0 dlr-storage = mysql store-file = /tmp/storefile group = wapbox bearerbox-host = localhost log-file = /tmp/wapbox.log log-level = 0 syslog-level = none access-log = /tmp/wapaccess.log group = smsbox smsbox-id = dlrbox #admin-password = pass bearerbox-host = localhost sendsms-port = 13131 log-file = /tmp/smsbox.log log-level = 0 access-log = /tmp/smsbox-access.log #SMSC SMPP group = smsc smsc = smpp smsc-id = mysmpp host = 60.36.229.70 port = 5345 receive-port = 5345 smsc-username = uname smsc-password = pass system-type = VMA #tranceiver-mode = 1 address-range = msg-id-type = 0x03 #SMSC NOKIA CIMD2 #group = smsc #smsc = cimd2 #smsc-id = hungama #host = 203.150.37.170 #port = 9971 #smsc-username = uname #smsc-password = pass #throughput = 10 #keepalive = 10 #no-dlr = false #smsbox routing group = smsbox-route smsbox-id = dlrbox smsc-ids = mysmpp shortcuts = #SMS service GROUP group = sms-service keyword = default catch-all = true get-url = http://www.google.com max-messages = 1 #SENDsms GROUP group = sendsms-user username = uname password = pass default-sender= concatenation = true #dlr-mask=7 dlr-url=* #MYSQL-CONNECTION group group = mysql-connection id = mydlr host = localhost username = password = database = dlr max-connections = 1 #DLR_DB Group group = dlr-db id = mydlr table = dlr field-smsc = smsc field-timestamp = ts field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc group = ppg #ppg-url = /push/miep_normal ppg-port = 7080 #ppg-allow-ip = 172.17.60.28 concurrent-pushes = 100 trusted-pi = true service-name = ppg ppg-smsbox-id = dlrbox default-dlr-url = * group = test-ppg retries = 2 pi-ssl = no #ssl-client-certkey-file = /etc/kannel/certkey.pem #SMS-SERVICE group group = sms-service keyword = www catch-all = true get-url = http://www.google.com; max-messages = 1
Re: SMS
It might help to add: smsbox-id = some_id to smsbox group in your conf --tjatur On Wed, 2007-02-07 at 14:23 +0500, Kanat Zaiitov wrote: it is third day I am trying to work with Kannel, started with fakesmsc. why it always says that I have - WARNING: smsbox_list empty! ? I can't find any more info in manual. in forum archive found several threads saying that it may be of sqlbox-id - did not help. and another thread about WARNING: smsbox_list empty! were regarding to PostgreSql. How my messages are stored in database, how to put there? what fields should it have at least? sudo bearerbox -v 1 /etc/kannel/kannel1.conf 2007-02-07 15:15:40 [5831] [0] INFO: Debug_lvl = 1, log_file = none, log_lvl = 0 2007-02-07 15:15:40 [5831] [0] INFO: MYSQL: Connected to server at localhost. 2007-02-07 15:15:40 [5831] [0] INFO: MYSQL: server version 5.0.24a-Debian_9-log, client version 5.0.24a. 2007-02-07 15:15:40 [5831] [0] INFO: DLR using storage type: mysql 2007-02-07 15:15:40 [5831] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `0'. 2007-02-07 15:15:40 [5831] [0] INFO: SSL not supported, no SSL initialization done. 2007-02-07 15:15:40 [5831] [0] INFO: HTTP: Opening server at port 13000. 2007-02-07 15:15:40 [5831] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2007-02-07 15:15:40 [5831] [0] INFO: Set SMS resend frequency to 60 seconds. 2007-02-07 15:15:40 [5831] [0] INFO: SMS resend retry set to unlimited. 2007-02-07 15:15:40 [5831] [0] INFO: DLR rerouting for smsc id (null) disabled. 2007-02-07 15:15:40 [5831] [0] INFO: Added logfile `/var/log/kannel/fakebox.log' with level `0'. 2007-02-07 15:15:40 [5831] [0] INFO: 2007-02-07 15:15:40 [5831] [0] INFO: Kannel bearerbox II version 1.4.1 starting 2007-02-07 15:15:40 [5831] [0] INFO: MAIN: Start-up done, entering mainloop 2007-02-07 15:15:40 [5831] [6] INFO: Logging thread `6' to logfile `/var/log/kannel/fakebox.log' with level `0'. running fakesmsc: Desktop/Kannel/Source/kannel-1.4.1/test/fakesmsc -i 0.1 -m 5 100 200 text nop 100 300 text echo this bash: Desktop/Kannel/Source/kannel- 1.4.1/test/fakesmsc: No such file or directory [EMAIL PROTECTED]:~/Desktop$ Kannel/Source/kannel-1.4.1/test/fakesmsc -i 0.1 -m 5 100 200 text nop 100 300 text echo this 2007-02-07 15:20:40 [5965] [0] INFO: Debug_lvl = -1, log_file = none, log_lvl = 0 2007-02-07 15:20:40 [5965] [0] INFO: Host localhost Port 1 interval 0.100 max-messages 5 2007-02-07 15:20:40 [5965] [0] INFO: fakesmsc starting 2007-02-07 15:20:40 [5965] [0] DEBUG: fakesmsc: sent message 1 2007-02-07 15:20:40 [5965] [0] DEBUG: fakesmsc: sent message 2 2007-02-07 15:20:40 [5965] [0] DEBUG: fakesmsc: sent message 3 2007-02-07 15:20:40 [5965] [0] DEBUG: fakesmsc: sent message 4 2007-02-07 15:20:40 [5965] [0] INFO: fakesmsc: sent message 5 after that I have these in bearebox.log: 2007-02-07 15:20:40 [5831] [4] WARNING: smsbox_list empty! 2007-02-07 15:20:40 [5831] [4] WARNING: smsbox_list empty! 2007-02-07 15:21:40 [5831] [4] WARNING: smsbox_list empty! 2007-02-07 15:21:40 [5831] [4] WARNING: smsbox_list empty! in table kannel I have only one table dlr, should be there other tables too? my kannel.conf: group = core admin-port = 13000 admin-password = bar admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1 log-file = /var/log/kannel/bearerbox.log box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 smsbox-port = 13001 dlr-storage = mysql group = smsc smsc = fake log-file = /var/log/kannel/fakebox.log port = 1 group = smsbox bearerbox-host = localhost group = sms-service keyword = default text = No action specified group = mysql-connection id = mydlr host = localhost username = kannel password = kannel database = kannel max-connections = 1 group = dlr-db id = mydlr table = dlr field-smsc = smsc field-timestamp = ts field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc -- Sincerely Yours, Kanat Zaiitov
Re: dlr-url + mysql + reception
It seems you haven't set you dlr storage destination in your conf. And if you plan to use mysql as your dlr storage, you have to add/define dlr-db group and connection to the db. It might help to take a look at this URL: http://kannel.org/download/1.4.1/userguide-1.4.1/userguide.html#AEN452 http://kannel.org/download/1.4.1/userguide-1.4.1/userguide.html#AEN2826 Hope these links give you a hint... --tjatur On Wed, 2007-02-07 at 16:47 +0530, Tushar wrote: Hi, This is my configuration file: group = core admin-port=13000 smsbox-port = 13001 wapbox-port = 13002 admin-password = hungama wdp-interface-name = * log-file = /tmp/bearerbox.log log-level = 0 group = wapbox bearerbox-host = localhost log-file = /tmp/wapbox.log log-level = 0 syslog-level = none access-log = /tmp/wapaccess.log group = smsbox smsbox-id = dlrbox #admin-password = hungama bearerbox-host = localhost sendsms-port = 13131 log-file = /tmp/smsbox.log log-level = 0 access-log = /tmp/smsbox-access.log # Fake SMSC configuration #group = smsc #smsc = fake #smsc-id = FAKE #port = 1 #connect-allow-ip = 127.0.0.1 #SMSC SMPP group = smsc smsc = smpp host = 66.36.229.70 port = 7771 smsc-username =get smsc-password = set system-type = VMA address-range = #smsbox routing #group = smsbox-route #smsbox-id = dlrbox #shortcuts = 9870145145 #SMS service GROUP group = sms-service keyword = default get-url = http://www.google.com #SENDsms GROUP group = sendsms-user username = hungama password = hungama default-sender=PHPsms concatenation = true # SMSC Nokia CIMD2 #group = smsc #smsc = cimd2 #host = 172.25.48.20 #port = 9971 #smsc-username = my_user_wap #smsc-password = my_pass_wap #throughput = 10 #keepalive = 60 #no-dlr = false #group = ppg #ppg-url = /push/miep_normal #ppg-port = 7080 #ppg-allow-ip = 172.17.60.28 #concurrent-pushes = 100 #trusted-pi = true #service-name = ppg #ppg-smsbox-id = dlrbox #default-dlr-url = http://172.16.15.30/dls_notifications/notify.php; [^] #group = wap-push-user #wap-push-user = dimitris #ppg-username = my_user #ppg-password = my_pass Why don't u start shared your kannel configuration to others? On 2/7/07, Tushar [EMAIL PROTECTED] wrote: Hi all, I am unable to get DLRs in mysql database and even not not able to set dlr-url…….and also unable to receive any messages in kanel. Plz somebody help me. Thanx and Regards, tushar
Re: DLR help
Hi, AFAIK, MySQL storage in dlr storage means/work when DLR for specified message arrive, it will trigger dlr-url in dlr storage, and then delete the entry. If you plan to record the dlr status, you have to do some scripting and put it in your dlr-url (the action will be done if DLR arrived). Your error means the incomming DLR cannot find a matching dlr-url entry in your dlr table. Hope this help start digging.. --tjatur On Wed, 2007-02-07 at 17:44 +0530, Tushar wrote: Hi all, I m configuring kannel message reception. The DLRs received by kannel is not getting saved MYSQL.. The log of bearerbox is as follows:- Please help me with the configuration of DLRs….. 2007-02-07 17:15:51 [15840] [7] DEBUG:Octet string at 0x81cc2f0: 2007-02-07 17:15:51 [15840] [7] DEBUG: len: 113 2007-02-07 17:15:51 [15840] [7] DEBUG: size: 114 2007-02-07 17:15:51 [15840] [7] DEBUG: immutable: 0 2007-02-07 17:15:51 [15840] [7] DEBUG: data: 69 64 3a 34 35 43 42 38 44 35 39 20 73 75 62 3a id:45CB8D59 sub: 2007-02-07 17:15:51 [15840] [7] DEBUG: data: 20 20 30 20 64 6c 76 72 64 3a 20 20 30 20 73 75 0 dlvrd: 0 su 2007-02-07 17:15:51 [15840] [7] DEBUG: data: 62 6d 69 74 20 64 61 74 65 3a 30 37 30 32 30 37 bmit date:070207 2007-02-07 17:15:51 [15840] [7] DEBUG: data: 31 36 35 38 20 64 6f 6e 65 20 64 61 74 65 3a 30 1658 done date:0 2007-02-07 17:15:51 [15840] [7] DEBUG: data: 37 30 32 30 37 31 36 35 39 20 73 74 61 74 3a 44 702071659 stat:D 2007-02-07 17:15:51 [15840] [7] DEBUG: data: 45 4c 49 56 52 44 20 65 72 72 3a 30 30 30 20 54 ELIVRD err:000 T 2007-02-07 17:15:51 [15840] [7] DEBUG: data: 65 78 74 3a 74 65 73 74 20 6d 65 73 73 61 67 65 ext:test message 2007-02-07 17:15:51 [15840] [7] DEBUG: data: 34 4 2007-02-07 17:15:51 [15840] [7] DEBUG:Octet string dump ends. 2007-02-07 17:15:51 [15840] [7] DEBUG: message_state: 2 = 0x0002 2007-02-07 17:15:51 [15840] [7] DEBUG: receipted_message_id: 45CB8D59 2007-02-07 17:15:51 [15840] [7] DEBUG: SMPP PDU dump ends. 2007-02-07 17:15:51 [15840] [7] DEBUG: SMPP[mysmpp] handle_pdu, got DLR 2007-02-07 17:15:51 [15840] [7] DEBUG: DLR[mysql]: Looking for DLR smsc=mysmpp, ts=45CB8D59, dst=919820245371, type=1 2007-02-07 17:15:51 [15840] [7] DEBUG: sql: SELECT mask, service, url, source, destination, boxc FROM dlr WHERE smsc='mysmpp' AND ts='45CB8D59'; 2007-02-07 17:15:51 [15840] [7] DEBUG: no rows found 2007-02-07 17:15:51 [15840] [7] WARNING: DLR[mysql]: DLR for DST919820245371 not found. 2007-02-07 17:15:51 [15840] [7] ERROR: SMPP[mysmpp]: got DLR but could not find message or was not interested in it id45CB8D59 dst919820245371, type1
Re: No Subject
It might be worth to start from the definition of modem, smsc declaration, sms-services, and send-sms-user configuration. From these declaration you could know which modem received the message, and then decide which modem should reply bearing requested message. hope this could give you a light to start. br, --tjatur On Wed, 2006-10-11 at 13:21 +0100, manju parvathi wrote: Hai, I am having more than one GSM modem for sending and receiving sms. I have to know about from which modem the message is receiving and from which the message is sending. Where I can get this details. Can any one please help me . Thanks in Advance... __ Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
Re: DLR error
Dear Shehan, On Mon, 2006-08-07 at 11:34 +0530, shehan wrote: Hi all, I got below error, when enabling DLR. 2006-08-07 11:27:40 [26348] [73] DEBUG: SMPP[smpp1] handle_pdu, got DLR 2006-08-07 11:27:40 [26348] [73] DEBUG: DLR[internal]: Looking for DLR smsc=smpp1, ts=78e32c61-cd95-4364-b19c-11a308453c9a, dst=123456, type=1 2006-08-07 11:27:40 [26348] [73] WARNING: DLR[internal]: DLR for DST123456 not found. 2006-08-07 11:27:40 [26348] [73] ERROR: SMPP[smpp1]: got DLR but could not find message or was not interested in it id78e32c61-cd95-4364-b19c-11a308453c9a dst94602373013, type1 So here dleivery report is not going to sender. It's means your DLR could not find matching DLR record. So, the dlr-url that is set in the dlr record could not be fetch. Because you are using internal DLR storage, the error could happen if DLR is comming after you restart the application. Or it might be caused by different msg-id type set in your conf file. Hope this could help you... --tjatur how to resolve that?? Regrds, Shehan
Re: DLR error
Dear Shehan, CMIIW, SMPP use ts as mag-id [ts=78e32c61-cd95-4364-b19c-11a308453c9a], it's possible that SMSC give back DLR with msg-id-type different with what we have stored. Check your log file, did your gateway installation store ts in the form of [ts=78e32c61-cd95-4364-b19c-11a308453c9a]? You could change the msg-id-type [http://kannel.org/download/1.4.0/userguide-1.4.0/userguide.html#AEN1533] parameter that suit your SMSC connection. --tjatur On Mon, 2006-08-07 at 15:02 +0530, shehan wrote: Hi tjatur, what did u mean msg-id type Tx in Advanced, Shehan - Original Message - From: Heru Tjatur [EMAIL PROTECTED] To: users@kannel.org Sent: Monday, August 07, 2006 2:09 PM Subject: Re: DLR error Dear Shehan, On Mon, 2006-08-07 at 11:34 +0530, shehan wrote: Hi all, I got below error, when enabling DLR. 2006-08-07 11:27:40 [26348] [73] DEBUG: SMPP[smpp1] handle_pdu, got DLR 2006-08-07 11:27:40 [26348] [73] DEBUG: DLR[internal]: Looking for DLR smsc=smpp1, ts=78e32c61-cd95-4364-b19c-11a308453c9a, dst=123456, type=1 2006-08-07 11:27:40 [26348] [73] WARNING: DLR[internal]: DLR for DST123456 not found. 2006-08-07 11:27:40 [26348] [73] ERROR: SMPP[smpp1]: got DLR but could not find message or was not interested in it id78e32c61-cd95-4364-b19c-11a308453c9a dst94602373013, type1 So here dleivery report is not going to sender. It's means your DLR could not find matching DLR record. So, the dlr-url that is set in the dlr record could not be fetch. Because you are using internal DLR storage, the error could happen if DLR is comming after you restart the application. Or it might be caused by different msg-id type set in your conf file. Hope this could help you... --tjatur how to resolve that?? Regrds, Shehan
Re: DLR URL Problem
Dear Norbert, Form my experience, dlr could not find the match dlr-url-entry. Look at ts=00EABC7C (creating dlr entry) and ts=0015383676 (from incomming dlr). BTW, what is protocol used in your case? In SMPP, adding msg-id-type = 0x00 will do the trick. --tjatur On Fri, 2006-07-14 at 20:58 +0530, Norbert Naveen wrote: Hello All , I am facing this problem , for sendsms i am calling dlr-mask- 31 and url encoded for dlr-url and in the bearbox log i can see .. I get the DLR when Type is 8 that is Submit SM ACK But not fro DELIVER SM Can anybody help ??? 2006-07-14 21:24:21 [11848] [6] DEBUG: DLR[internal]: Adding DLR smsc=ABC, ts=00EABC7C, src=12300, dst=123456, mask=31, boxc= 2006-07-14 21:24:21 [11848] [6] DEBUG: SMSC[ABC]: creating DLR message 2006-07-14 21:24:21 [11848] [6] DEBUG: SMSC[ABC]: DLR = http://192.1628.10.1:8080/cgi-bin/DSRSuccess?p=12300m=1628794d=% d 2006-07-14 21:24:21 [11848] [9] DEBUG: send_msg: sending msg to box: 127.0.0.1 2006-07-14 21:24:21 [11848] [9] DEBUG: boxc_sender: sent message to 127.0.0.1 2006-07-14 21:24:21 [11848] [8] DEBUG: boxc_receiver: got ack 2006-07-14 21:24:31 [11848] [6] DEBUG: DLR[internal]: Looking for DLR smsc=ABC, ts=0015383676, dst=123456, type=1 2006-07-14 21:24:31 [11848] [6] WARNING: DLR[internal]: DLR for DST123456 not found. 2006-07-14 21:24:31 [11848] [6] ERROR: SMPP[ABC]: got DLR but could not find message or was not interested in it id0015383676 dst12300, type1 Thanks and regards Norbert
Re: dlr
Hi Wayne, On Mon, 2006-05-15 at 10:39 +0800, Wayne Khan wrote: Hi Tjatur, Okay, say I am sending out two messages in quick succession, perhaps a second intervals. Each has a unique msgID=1, msgID=2. There's probably no guarantee that the reports will be received in order, correct? i.e. the report for msgID=2 could come first instead of second. Yup that's possible... If doing inserts into some dlr table, this means that the foreign key reference is incorrect!!! At the moment I am using the recipient number to determine which foreign key to insert into the dlr table. This is rather tedious and the code is not too decipherable. Furthermore it is not guaranteed to be correct so I am looking for a better solution. That's the problem if you use recipient number (msisdn, i presume). So, I suggest to use a unique identification for each message sent out. I could be some combination msisdn or other unique id. Use that unique id as the msgID, by which you could identify which message from the id. I was thinking more along the lines of inserting msgID into the sms itself -- hidden from a regular handset -- and then getting the smsc to return that value so if any reference is made it is guaranteed to be correct. CMIIW, this number will be hold in kannel system. So, SMSC will not know about it. How Kannel identify which dlr message comming is handled by protocol guide (SMPP, EMI etc..) Hope it give a light... --tjatur Heru Tjatur wrote: Hi Wayne, I set it in dlr-url when sending messages vi cgi-bin/sendsms. So, each time I send message, I put dlr-url containing my custom ID. Something like this: dlr-url=http://127.0.0.1/smspapp/dlr.php?msgID=[mycustomID]dlrstatus=% d[other parameter] Don't forget to url-encode your dlr-url when sending the mesaage via cgi-bin/sendsms? Hope it give you a hint ... --tjatur On Fri, 2006-05-12 at 13:40 +0800, Wayne Khan wrote: Hi Heru, How do you send the custom id to the smsc and get it back? I've tried the various kannel escape codes (%a, %b) but they don't seem to work. I'm doing some auditing function so there's a need to tie in the report with the sms... please help! Thanks! Heru Tjatur wrote: dear Issam, Here what I do to get the dlr in Kannel. Hope it could give you a light how to implement it for your needs. (1) I set up a url that will capture delivery status of the messages sent by kannel, base on a custom ID for the message (I defined that ID for each message sent). (2) When sending the message to the user, through cgi-bin/sendsms?, a drl-url containing custom ID is added with proper dlr-mask value. (3) That way, each incomming dlr will bring custom ID that will used to update my table regarding the delivery status of the message. (http://www.kannel.org/download/1.4.0/userguide-1.4.0/userguide.html#AEN3749) Hope this could help you... --tjatur On Thu, 2006-05-11 at 12:15 issam wrote: hello I use dlr-url parameter. when I send a message with kannel I attribute a unique ID to this message and Kannel give it another ID when he send it for delivery (----). I want to correspond in my base this ID and my ID to resend the message if he fail after validity period expiration. How can I do this big thanks for help - Original Message - From: Heru Tjatur [EMAIL PROTECTED] To: users@kannel.org Sent: Thursday, May 11, 2006 4:22 AM Subject: Re: dlr Dear issam, On Wed, 2006-05-10 at 13:47 +0100, issam wrote: Hello when I send a message with Kannel, he return a message like accepted for delivery but not the id used in dlr message. if I send 2 messages and I receive one dlr how can I know if this dlr is for first message or 2nd message. You could use set dlr-url parameter when sending the message. Each dlr message coming, it will its trigger dlr-url. So, you will know which message's dlr is comming. Hope it could help you.. --tjatur
Re: dlr
Hi Wayne, I set it in dlr-url when sending messages vi cgi-bin/sendsms. So, each time I send message, I put dlr-url containing my custom ID. Something like this: dlr-url=http://127.0.0.1/smspapp/dlr.php?msgID=[mycustomID]dlrstatus=% d[other parameter] Don't forget to url-encode your dlr-url when sending the mesaage via cgi-bin/sendsms? Hope it give you a hint ... --tjatur On Fri, 2006-05-12 at 13:40 +0800, Wayne Khan wrote: Hi Heru, How do you send the custom id to the smsc and get it back? I've tried the various kannel escape codes (%a, %b) but they don't seem to work. I'm doing some auditing function so there's a need to tie in the report with the sms... please help! Thanks! Heru Tjatur wrote: dear Issam, Here what I do to get the dlr in Kannel. Hope it could give you a light how to implement it for your needs. (1) I set up a url that will capture delivery status of the messages sent by kannel, base on a custom ID for the message (I defined that ID for each message sent). (2) When sending the message to the user, through cgi-bin/sendsms?, a drl-url containing custom ID is added with proper dlr-mask value. (3) That way, each incomming dlr will bring custom ID that will used to update my table regarding the delivery status of the message. (http://www.kannel.org/download/1.4.0/userguide-1.4.0/userguide.html#AEN3749) Hope this could help you... --tjatur On Thu, 2006-05-11 at 12:15 issam wrote: hello I use dlr-url parameter. when I send a message with kannel I attribute a unique ID to this message and Kannel give it another ID when he send it for delivery (----). I want to correspond in my base this ID and my ID to resend the message if he fail after validity period expiration. How can I do this big thanks for help - Original Message - From: Heru Tjatur [EMAIL PROTECTED] To: users@kannel.org Sent: Thursday, May 11, 2006 4:22 AM Subject: Re: dlr Dear issam, On Wed, 2006-05-10 at 13:47 +0100, issam wrote: Hello when I send a message with Kannel, he return a message like accepted for delivery but not the id used in dlr message. if I send 2 messages and I receive one dlr how can I know if this dlr is for first message or 2nd message. You could use set dlr-url parameter when sending the message. Each dlr message coming, it will its trigger dlr-url. So, you will know which message's dlr is comming. Hope it could help you.. --tjatur MozillaFirefox.desktop Description: application/desktop
Re: dlr
dear Issam, Here what I do to get the dlr in Kannel. Hope it could give you a light how to implement it for your needs. (1) I set up a url that will capture delivery status of the messages sent by kannel, base on a custom ID for the message (I defined that ID for each message sent). (2) When sending the message to the user, through cgi-bin/sendsms?, a drl-url containing custom ID is added with proper dlr-mask value. (3) That way, each incomming dlr will bring custom ID that will used to update my table regarding the delivery status of the message. (http://www.kannel.org/download/1.4.0/userguide-1.4.0/userguide.html#AEN3749) Hope this could help you... --tjatur On Thu, 2006-05-11 at 12:15 issam wrote: hello I use dlr-url parameter. when I send a message with kannel I attribute a unique ID to this message and Kannel give it another ID when he send it for delivery (----). I want to correspond in my base this ID and my ID to resend the message if he fail after validity period expiration. How can I do this big thanks for help - Original Message - From: Heru Tjatur [EMAIL PROTECTED] To: users@kannel.org Sent: Thursday, May 11, 2006 4:22 AM Subject: Re: dlr Dear issam, On Wed, 2006-05-10 at 13:47 +0100, issam wrote: Hello when I send a message with Kannel, he return a message like accepted for delivery but not the id used in dlr message. if I send 2 messages and I receive one dlr how can I know if this dlr is for first message or 2nd message. You could use set dlr-url parameter when sending the message. Each dlr message coming, it will its trigger dlr-url. So, you will know which message's dlr is comming. Hope it could help you.. --tjatur
Re: dlr
Dear issam, On Wed, 2006-05-10 at 13:47 +0100, issam wrote: Hello when I send a message with Kannel, he return a message like accepted for delivery but not the id used in dlr message. if I send 2 messages and I receive one dlr how can I know if this dlr is for first message or 2nd message. You could use set dlr-url parameter when sending the message. Each dlr message coming, it will its trigger dlr-url. So, you will know which message's dlr is comming. Hope it could help you.. --tjatur
Re: linux compatible usb driver software?
Hi Rashmi, I think it's a little bit OOT... From my experience, USB Modem will be recognized as PL 2303 device... Try to give [dmesg | grep usb] command to see if your linux recognize the device. My old Itegno (wavecom) and Erricsson Handset R520 are recognized as PL2303 by Suse 9.3. Hope this information could help you.. --tjatur On Thu, 2006-03-16 at 06:33 -0800, rash_s13 wrote: Hi all, I have got a data cable and a cell with usb driver software cd.but it is compatible for only windows platform.so how will do it in linux?any drivers available? regards, Rashmi. -- View this message in context: http://www.nabble.com/linux-compatible-usb-driver-software--t1291698.html#a3436940 Sent from the Kannel - User forum at Nabble.com.
Re: Running Kannel as Service
On Fri, 2006-03-03 at 12:47 +0700, Ngurah Bagus wrote: Hi, all, I'm not sure whether this has been asked before, but how do you make a startup script for bearerbox and smsbox, if it's possible? For info, I'm using Fedora Core 3 with Kannel 1.4.0. I'm not overly proficient in Linux so please use small words :D Never try it myself, but you could take a look at this link: http://www.kannel.org/download/1.4.0/userguide-1.4.0/userguide.html#AEN316 Hope this could help... --tjatur Cheers, -- A. A. Ngurah Bagus W. Systems Administrator PT. Pintar Media Indonesia
Re: Unique ID+SQL storage
On Thu, 2006-02-23 at 10:41 +0100, Chronis N. wrote: Hello community, I have somes questions I didn't found in the users list. Like some provider (Netsize), they give an 'TickedID' when a SMS is sent. Is for all the provider the same? How to get this unique ID with SMPP? AFAIK, It's been a long discussion about this. In delivery report mechanism, kannel use timestamp and smsc-id to identify particular message to execute coresponding dlr-url. Another thing, I use mysql for delivery report, but 1. The system doesn't add a message in 'dlv' table when sending a message (so, i didn't get status for message sent after -i got error-) When kannel send a message, it inserts a record in dlr table. The record will be deleted when DLR for that message arrived. Set log level to 0 (debug) to monitor what happened with the dlr table in your mysql. 2. Why the system check about the timestamp ? It means we can only send 1 message per second ? (for having correct delivery report) I read about SQL-BOX, but never ever found it (exept a patch named sqlbox_patch-20041012 -very old-) You could find it in CVS repository cvs -d:pserver:[EMAIL PROTECTED]:/home/cvs co sqlbox Hope this would help you.. --tjatur What I need at final is simple: 1. Store the SMS to send in SQL table (like SQL-BOX do) 2. Grep the (unique)ID of each send message and inserting into my SQL table with the rest (destination, text,...) 3. Having the full delivery report for my messageID sent. (1. sent to gateway, 2. Pending, 3. Sent and delivered,...) With kind regards, Nikos
Re: SMS not sent from running Kannel
On Sun, 2006-02-12 at 09:13 +1000, [EMAIL PROTECTED] wrote: Sent SMS using cmd: http://speakymunky:13013/sendsms-user?username=**passwordd=$$$to=0409xx=Hello+World response First, I think you'll have to give info on your system configuration, kannle version, your conf file, or any info that you possible have. So, the list could help you, from experiences they have. AFFAIK, standart installation put send-sms in the URL form like this (http://www.kannel.org/download/1.4.0/userguide-1.4.0/userguide.html#AEN4064): http://smsbox.host.name:13013/cgi-bin/sendsms?username=foopassword=barto=0123456text=Hello+world So, check your http interface URL, to send your sms message. --tjatur /response error output: [1] 5707 -bash: http://speakymunky:13013/sendsms-user?username=**: No such file or directory From my system: lynx -dump http://localhost:13000/status?password=$$; Kannel bearerbox version - blah blah Status: running, uptime 0d 0h 16m 32s WDP: received 0 (0 queued), sent 0 (0 queued) SMS: received 0 (0 queued), sent 0 (0 queued), store size 0 SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec DLR: 0 queued, using internal storage Box connections: smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 14m 50s) SMSC connections: gsmtc35AT2[gsmtc35] (online 984s, rcvd 0, sent 0, failed 0, queued 0 msgs) Any ideas what is faulting? Thanks, nui_2_gui -- [EMAIL PROTECTED]
Re: Basic SMS Sending Know-How
On Thu, 2006-02-09 at 23:02 -0800, Julius David Bacolod wrote: Hello, I'm trying to build a system that sends text messages using kannel. But I cannot figure out how I would use kannel or its libraries since I'm a new user. Basically what I have here is a Nokia GSM Modem as my SMSC. I'm quite through with gateway installation. Please I would like to know general instructions how to send SMS using kannel. I was considering before to use SMS Client but it says it runs on UNIX. By the way I'm using Fedora Linux 3. Help will be very much appreciated. Thank you. Julius Bacolod Hi Julius, Sending SMS trough Kannel is simple. Once you've installed Kannel you could send SMS through cgi-bin/sendsms (http://smsbox.host.name:13013/cgi-bin/sendsms?username=foopassword=barto=0123456text=Hello+world). It's written in User Guide. You have had set username, password is parameter in send-sms user conf. From previous post, CMIIW, your conf does not set your modem configuration. Modem Configuration part is commented. Try to set your modem modem first. Some time ago, I have send and receive SMS with Kannel, via ITegno Modem. I used sample conf provided in Kannel 1.4.0 distribution. Hope this could help you start diging ... --tjatur __ Yahoo! Mail Use Photomail to share photos without annoying attachments.
Re: Discard incoming sms messages
On Wed, 2006-01-18 at 13:17 +0100, Lars-Hendrik Schneider wrote: Hi Jelle, hi Tjatur, Heru Tjatur schrieb: On Tue, 2006-01-17 at 22:21 +0100, js wrote: Hi all, It's not really clear to me how to define a sms-service that discards all messages which don't match other sms-service. I don't want to send a response back to the sender in this case. In case someone: sends an empty message sends a message containing whatever that doesn't match hihi and foo #response1 group = sms-service keyword = hihi text = haha #response2 group = sms-service keyword = foo text = bar #handle all the rest group = sms-service ? ? quid? Thanks for pointing me out Jelle Smet Try to add max-messages = 0 parameter in your default sms-services that handled unmatched keyword. this is sometimes quite important. A short story: I had a default answer for sms without a matching keyword like Sorry, but we cannot find a service for your keyword. Once I looked into the logfiles and I was very surprised, that kannel was sending a lot of messages to one number. What had happened? Our mobile phone provider had has sent us an SMS containing an advertisment - so kannel didn't understand it and sent back the default answer. But - you guess it, on the other side at the provider the system answered this SMS with a Sorry ..., too. So the servers played pingpong via SMS with each other. Because I realised it very early it did not lead do a lot of money for stupid SMS. Since then I always set max-messages for default to zero: If you don't understand anything, please keep your f*** mouth shut! Greetz from Bonn, Lars-Hendrik Hope this could help ... --tjatur Hi, Hendrik ... Regard of what happened to you, for me, I prefer not to reply directly with the default sms-services, with text parameter [text=Sorry, bla.. bla... bla..]. So, I process SMSes prior of answering the SMSes. To do this, I put max-messages=0, to prevent kannel's sms-service reply directly on incomming SMS. All SMS's response is sent to the sender by send-sms, after some processing step. You could discard or give Sorry ... response based on SMS processing result. In my opinion it would prevent the pingpong SMS that you described. Hope this could help... --tjatur
Re: SMSC Routing
Dear Essien, On Thu, 2005-11-10 at 19:51 +0100, Essien Ita Essien wrote: I’m trying to setup an SMSC router, to route services from a phone network to a content provider somewhere else. The setup looks like this. [GSM Provider] →[modem]-→ [my_kannel_box(tm)](internet)---[content_provider] I have an smsc defining the at modem, which correctly delivers MO's to my_kannel_box(tm) :). The problem is that, I want to forward the MO's to [content_provider], not process it locally. I have the following. Note that these are not complete snippets, just (I think) important parts. group = core smsbox-port = 5 group=smsc smsc = at smsc-id = mdm reroute = yes reroute-smsc-id = cntprv group = smsc smsc = smpp smsc-id = cntprv host = foo.bar port = 5 Is this *picture complete* ? am I missing any piece of the puzzle? I actually still don't understand how all the pieces fit together, so any explanation accompanying will be highly appreciated. Thnx, Essien What is the protocol used to communicate to Content Provider from Kannel Box? Is it SMPP, as defined in the smsc gropu declaration? In this part, it would we easier to communicate through HTPP. You could do that by setting your Content-Provider URL in get-url parameter. Or, you could define http smsc, as describe in http://kannel.org/download/1.4.0/userguide-1.4.0/userguide.html#AEN2103 hope this help --tjatur
Re: sendsms-user and smsc routing
On Wed, 2005-11-09 at 18:39 +0200, Dziugas Baltrunas wrote: Hi list, I have the following situation: 2 sendsms-users and 3 connections to SMSCs, say c1, c2, c3. I want to achieve the following: 1. sendsms-user #1 is forced to use only a c3 smsc-id. This one I easily did by adding forced-smsc= c3 directive. 2. sendsms-user #2 must use both c1 and c2 (they have different prefixes accepted, hence prefix-based routing), but might not use c3. IMHO, It would be easier to define sendsms-user-#2a and sendsms-user-#2b. When incomming SMS with prefix #2a handled by sendsms-user-#2a and forced to use c1. On the other hand handled by sendsms-user-#2b and forced to use SMSC c2. hope this helps you. --tjatur I came up only with the solution giving the same smsc-id for c1 and c2 (say c1c2) and adding forced-smsc =c1c2 in the #2 sendsms-user. However, this is not very elegant as I can't see in logs whether SMS from #2 sendsms=user went through c1 or c2. Is there any other (better) way to achieve this? -- Dziugas
Re: Question about DLR
On Wed, 2005-11-09 at 02:40 -0800, Andi Taslim wrote: Dear Mr. Tjatur, I'm still struggling to have the DLR working on my Kannel gateway. Basically I could see the DLR entry on the database that I've specified. I set the dlr-mask=31 but the url that I've specified only got called once, that is when the sms got submitted to the SMSC (status=8). Other than that, the dlr-url never gets called again, even after the SMS is delivered successfully to the recipient. The DLR entry on the database still has status=0 and I've verified that the dlr-url never gets called again. Dear Andi, Personally I use internal memory instead of mysql for kannel internal dlr storage. Here what I do to handle dlr, each incomming SMS is processed and the reply is sent by sendsms http interface. When sending reply I define dlr-url that will handle the DLR SMS. We can insert it to database, update or whatever actions defined to process DLR SMS. As Beckman explains, if your configuration OK, you woul see DLR SMS. Here a sample SMS DLR with status = 1 2005-11-10 09:07:58 DLR SMS [SMSC:] [SVC:xxx] [ACT:] [from:x] [to:] [flags:0:0:0:0:1] [msg:122:id:0556700296 sub:001 dlvrd:001 submit date:0511100912 done date:0511100913 stat:DELIVRD err:000 text:Terima kasih, Anda b] [udh:0:] If it's true that Kannel uses the timestamp as one of its variable to identify a unique SMS to be updated, then I suspect that it might have something to do with the timestamp field. I've followed your suggestion to change the ts to be DATETIME. However, now I don't see the timestamp at all. It becomes: -00-00 00:00:00 while when I used VARCHAR(40) as per the example from Kannel, I had numbers such as 39, 1347, 1432, etc. I might be wrong though, timestamp might not have anything to do with my problem. In your case, CMIIW, mysql has timestamp field. Try to use timestamp instead of DATETIME. Could it also be that the SMSC on the operator side doesn't work correctly? If I want to debug this from Kannel output, where should I start backtracking this issue? It would worth to start with analyze the bearbox log. Hope this can help you start. --tjatur Any suggestion and help from anyone here will be greatly appreciated. Thanks much, -Andi
Re: Question about DLR
Dear Andi, On Mon, 2005-11-07 at 22:37 -0800, Andi Taslim wrote: Dear all, My name is Andi and this is my first post here. I hope I'm doing this correctly. I have a question about Kannel that I hope one of you can help me with. Basically, I'm not quite sure yet on the common practices on handling the delivery report (DLR) on Kannel. I believe I've configured the mysql DLR external storage correctly by inserting the appropriate entries on the config file. When I push an SMS by using the http command (http://xxx.xxx.xxx.xxx:y/cgi-bin/sendsms?username=xxxpassword=xxxfrom=xxxto=xxxtext=xxxdlr-mask=31dlr-url=xxx), I could see that a DLR entry is inserted into the database along with the timestamp, status, etc. Based on what I've read on the documentation and discussion on the internet, I assume that when the SMSC has delivered the SMS successfully, Kannel will do an http request to the dlr-url that I supplied (for example: http://xx.xx.xx.xx/cgi/dlrHandling.php?smsc-id=%istatus=%danswer=%Ato=%Pfrom=%pts=%t). Then on the script, I would have to write my own code to manually process the DLR individually and do other required tasks such as deleting the DLR entry and others. My questions: 1. Is this the common practice on handling the DLR and confirming that the recipients have received the SMS? Am I doing this correctly by processing the DLR entry manually? Is there any other way (more efficient way) of doing this? AFAIK, you are on the right track. Your code on dlr-url is responsible to process information about the incomming dlr. MySQL DLR will be used internally by kannel. So, if you want to record dlr information, you have to create separate database or table for your goal. 2. Why does the timestamp only consist of 2 digit number? Is my database definition wrong? (I used VARCHAR(40) as stated on the example) Why don't you define it as timestamp field in mysql? 3. Is using the timestamp and the to number is enough to uniquely identify which DLR that I want to process? Because what happens when there is a same phone number having the same timestamp? Is there a unique ID for each DLR that I should use instead of relying on the ts and the phone number? Yes, that's the common practice. But if you need your own unique ID, you may add your unique ID, by appsing the unique ID in your dlr-url. So, every time you send a message your unique ID is passed in that dlr-url. I would appreciate any help or hints that any of you can give me. Many thanks and best regards, -Andi Hope this helps you.. --tjatur
Re: Kannel could not find the Config file.
Dear Zeko, From the error message, it seems that your config file is incomplete, i.e. can't find group of some service entry. Each group entry should begin with group definition, group=core #other definition ... group=smsbox #other definition ... group=smsc #other definition ... group=sms-service #other definition ... group=sendsms-user #other definition ... and so on As Navjot said from earlier post, start with bare minimum config. For sms sending purposes, just an example, you could start with group=core, group=smsbox, group=fakesms, and group=sendsms-user. And sample config file is a good thing to start. hope this helps you to start diging userguide... --tjatur On Mon, 2005-09-19 at 09:54 +0100, zeko mbumwae wrote: I am wondering what causes Kannel not to fin the config file.What should i do to make kannel read the config file.I need help urgently pliz. Thanking yu for your help. My config file and the errors I am getting when i start the bearerbox are below. [EMAIL PROTECTED] ~]# /usr/local/src/gateway-1.4.0/gw/bearerbox /usr/local/src/gateway-1.4.0/gw/project.conf 2005-09-19 10:53:25 [4013] [0] INFO: Debug_lvl = -1, log_file = none, log_lvl = 0 2005-09-19 10:53:25 [4013] [0] ERROR: Group does not contain variable 'group'. 2005-09-19 10:53:25 [4013] [0] ERROR: Error found on line 35 of file `/usr/local/src/gateway-1.4.0/gw/project.conf'. 2005-09-19 10:53:25 [4013] [0] PANIC: Couldn't read configuration from `/usr/local/src/gateway-1.4.0/gw/project.conf'. 2005-09-19 10:53:25 [4013] [0] PANIC: /usr/local/src/gateway-1.4.0/gw/bearerbox(gw_panic+0x174) [0x80c70b8] 2005-09-19 10:53:25 [4013] [0] PANIC: /usr/local/src/gateway-1.4.0/gw/bearerbox(main+0x17d) [0x80526aa] 2005-09-19 10:53:25 [4013] [0] PANIC: /lib/tls/libc.so.6(__libc_start_main+0xe3) [0x2c9e33] 2005-09-19 10:53:25 [4013] [0] PANIC: /usr/local/src/gateway-1.4.0/gw/bearerbox [0x8051739] #Config file # # THIS IS A SAMPLE CONFIGURATION FOR KANNEL # # For any modifications to this file, see Kannel User Guide # If that does not help, send email to users@kannel.org # group=core admin-port = 13004 #smbox-port=13002 admin-password = blessed status-password =blessed #admin-deny-ip = admin-allow-ip =*.*.*.* log-file = /var/log/bearerbox.log log-level = 0 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 access-log = /var/log/bearerbox.access.log http-proxy-host = 127.0.0.1 #http-proxy-port = 8080 #http-proxy-exceptions = 127.0.0.1 #http-proxy-username = user #http-proxy-password = password #ssl-certkey-file = In this entry, GW expected smsbox group definition that should look like this (more or less): # Smsbox related group = smsbox bearerbox-host = 127.0.0.1 smsbox-port = 13001 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 #unified-prefix = 00358,0 #white-list = http://127.0.0.1/white-list.txt; #black-list = http://127.0.0.1/black-list.txt; #store-file = kannel.store # Wapbox related #wapbox-port = 13002 #udp-deny-ip = *.*.*.* #udp-allow-ip = 127.0.0.1 #wdp-interface-name = * # SMSC CONNECTIONS - GLOBAL FIELDS #group =smsc #smsc=at #smsc-id =+260971911200 #denied-smsc-id = X;Y #allowed-smsc-id = Z #preferred-smsc-id = W #allowed-prefix = 040;050 #denied-prefix = 060;070 #alt-charset = # SMSC Nokia CIMD2 group = smsc smsc = cimd2 #host = #port = #smsc-username = #smsc-password = #keepalive = #sender-prefix = # SMSC EMI group = smsc smsc = emi2 smsc = emi_ip to use the old implementation #host = #port = #smsc-username = #smsc-password = #device = /dev/ #phone = #our-port = #receive-port = #connect-allow-ip = #keepalive = #flow-control = # SMSC SMPP #group = smsc #smsc = smpp #host = #port = #receive-port = #smsc-username = #smsc-password = #system-type = #address-range = # SMSC SEMA group = smsc smsc = sema device = /dev/ttySO smsc_nua = (X121 smsc address) home_nua = (x121 radio pad address) wait_report = 0/1 (0 means false, 1 means true) # SMSC OIS group = smsc smsc = ois host = 103.102.101.100 port = 1 receive-port = 1 #ois-debug-level =-1 # SMSC GSM group = modems id=motorola name=wavecom detect -string=taichi series keepalive-cmd=AT+CBC;+CSQ init-string=ATEO+CNMI=2,1,0,1,1 message-storage=SM enable-hwhs=AT+IFC=2,2 smsc = wavecom modemtype = motorola device =/dev/ttyS0 speed=9600 #pin = 2345 validityperiod = 169 #another modem group = modems id=motorola name=taichi detect -string=taichi series keepalive-cmd=AT+CBC;+CSQ init-string=AT+CNMI=1,2,0,1,1 enable-hwhs=AT\\Q3 modemtype = auto device =/dev/ttya01 speed=9600 #pin = 2345 validityperiod = 169 # SMSC Fake #group = smsc #smsc = fake #host = #port = #connect-allow-ip = # VIRTUAL SMSC FOR CELTEL group = smsc smsc = at smsc-id=celtel my-number=SMS PROJECT modemtype=auto device=/dev/ttySO speed=9600 sms-center=+260971911200 validityperiod=169
Re: How can i turn OFF delivery reports?
On Thu, 2005-07-28 at 09:48 +1000, Ammar Alammar wrote: Hello all, I am using an Ericsson R520m as an SMSC via setial cable. I have the following problem: - Delivery reports are being received by the phone each time a message is sent and these delivery reports are being forwarded by the phone to Kannel which treats it as a new incoming message. == How can i turn OFF delivery reports? In the modem.conf file I have tried the following in the initilisation string: --- * When I use CNMI=3,0 it turns off the forwarding of ALL received SMS's. * I simply want to be able to have bearerbox receive NEW SMS' but not the delivery report SMS. * I think it is all in the CNMI option of the AT commands but I tried all combinations ! * I am using a Ericsson R520m. Here is a good link that I have been using as a reference to AT commands: http://www.activexperts.com/activsms/atcommands/atc/ I have attached the config file. Have try to set max-messages = 0 in your sms-service group of the conf file? Hope this will help you. --tjatur Many thanks in advance Ammar _ Free yourself, Open new doors ... OpenSource www.OpenSource.com
Re: Kannel Dlr url
On Mon, 2005-07-25 at 08:25 +0100, Ismail Adebayo wrote: Hi its dlr-mask = 31 i.e. (1+2+4+8+16). Also set the msg-id-type. Ismail Yup... Ismail is correct. In fact, I set dlr-mask=7 in my Project. Thx Ismail tjatur - Original Message - From: Tan Ai Leen To: [EMAIL PROTECTED] Cc: users@kannel.org Sent: Sunday, July 24, 2005 8:48 AM Subject: Re: Kannel Dlr url Hi Heru, I got this error from kannel when receiving the DLR. 2005-07-24 15:36:49 [6188] [9] DEBUG: DLR[internal]: Looking for DLR smsc=SMPP:203.116.221.228:2775/2775:x:VMA, ts=6425010, dst=x18737, type=1 2005-07-24 15:36:49 [6188] [9] WARNING: DLR[internal]: DLR for DSTx18737 not found. 2005-07-24 15:36:49 [6188] [9] ERROR: SMPP[SMPP:203.116.221.228:2775/2775:x:VMA]: got DLR but could not find message or was not interested in it id6425010 dst80077800, type1 Is there anything else I should set in the conf files? It looks like Kannel can't find the message that the DN is for. I tried to use 37 for dlr-mask but I got dlr-mask malformed error when sending. Regards, Ai Leen Heru Tjatur wrote: On Fri, 2005-07-22 at 18:48 +0800, Tan Ai Leen wrote: Hi everyone, I know that this question must have been ask a lot of times. But I can't get the solutions to work for me. This is the string that I am sending to Kannel. GET /cgi-bin/sendsms?dlr-mask=1dlr-url=http%3A%2F%2F192.168.51.42%3A82%2Fconnectors%2Fstarhub%2Fdn.php%3Fid%3D123456789%26type%3D%25dusername=testerpassword=foobarto=6590018737from= The dlr-url is this http://192.168.51.42:82/connectors/starhub/dn.php?id='.$dmg_id.'type=%d I have set dlr-storage = internal under group=core as well as comment it out. But I am still not getting the DN response. Is there anything I am using out? Try to set dlr-mask=37 to catch all posible dlr's. If your conf file is ok, kannel should send dlr, at least with status 8 or ACK (CMIIW). -tjatur Regards, Ai Leen
Re: Kannel Dlr url
On Fri, 2005-07-22 at 18:48 +0800, Tan Ai Leen wrote: Hi everyone, I know that this question must have been ask a lot of times. But I can't get the solutions to work for me. This is the string that I am sending to Kannel. GET /cgi-bin/sendsms?dlr-mask=1dlr-url=http%3A%2F%2F192.168.51.42%3A82%2Fconnectors%2Fstarhub%2Fdn.php%3Fid%3D123456789%26type%3D%25dusername=testerpassword=foobarto=6590018737from= The dlr-url is this http://192.168.51.42:82/connectors/starhub/dn.php?id='.$dmg_id.'type=%d I have set dlr-storage = internal under group=core as well as comment it out. But I am still not getting the DN response. Is there anything I am using out? Try to set dlr-mask=37 to catch all posible dlr's. If your conf file is ok, kannel should send dlr, at least with status 8 or ACK (CMIIW). -tjatur Regards, Ai Leen
Re: Processing SMS (beginers question)
On Fri, 2005-06-24 at 09:35 +0700, Ricky Wibowo wrote: Sorry I forgot to send you example log : conf : group = smsbox bearerbox-host = localhost smsbox-id = mysms sendsms-port = 13131 global-sender = 3345 sendsms-chars = 0123456789 +- log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/access.log smsbox.log : 2005-06-24 09:12:00 [15950] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2005-06-24 09:12:00 [15950] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2005-06-24 09:12:00 [15950] [0] INFO: Connected to bearerbox at localhost port 13001. 2005-06-24 09:12:00 [15950] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) 2005-06-24 09:12:00 [15950] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 15950. 2005-06-24 09:12:00 [15950] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 15950. 2005-06-24 09:12:00 [15950] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 15950. 2005-06-24 09:12:00 [15950] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 15950. 2005-06-24 09:12:00 [15950] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 15950. 2005-06-24 09:12:00 [15950] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 15950. access.log 2005-06-24 09:13:30 2005-06-24 02:13:30 Receive SMS [SMSC:smsc_fake] [SMS ID:e19051d4-95d5-4a6f-ba16-b1efb069964d] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:31 2005-06-24 02:13:31 Receive SMS [SMSC:smsc_fake] [SMS ID:5960e6ac-428b-4cbb-a364-9f2c141c1b2e] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:32 2005-06-24 02:13:32 Receive SMS [SMSC:smsc_fake] [SMS ID:b77b3bea-b104-4594-bc08-d69e5281325a] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:33 2005-06-24 02:13:33 Receive SMS [SMSC:smsc_fake] [SMS ID:227f605c-e124-4cc2-942e-f6feb48722b1] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:34 2005-06-24 02:13:34 Receive SMS [SMSC:smsc_fake] [SMS ID:73197faf-2504-4e7d-b663-e278df6768a8] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:35 2005-06-24 02:13:35 Receive SMS [SMSC:smsc_fake] [SMS ID:46371b2c-e6fa-450d-a4d5-b656d4d5433f] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:36 2005-06-24 02:13:36 Receive SMS [SMSC:smsc_fake] [SMS ID:33775bee-306d-439d-af9a-6de263df88c9] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:37 2005-06-24 02:13:37 Receive SMS [SMSC:smsc_fake] [SMS ID:bbe0ecd7-a9c3-4cf4-98a5-2998be05ffc4] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:38 2005-06-24 02:13:38 Receive SMS [SMSC:smsc_fake] [SMS ID:0234854c-4d8b-402f-84de-4470a5e01011] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:39 2005-06-24 02:13:39 Receive SMS [SMSC:smsc_fake] [SMS ID:2c6aedd2-0434-4d07-9f9e-3744e46032f5] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] is this my configuration is working correctly?? thanx for your patient answering my question :-) Ricky answer It seem there is nothing with your smsbox dekcaration. I couldn't get information from the access.log. I used bearbox log to see what's wrong with my conf. BTW, from this part of log [SMS User:] told me that you don't have sendsms-user declaration. Here, I attached conf file that works for me. I change AT-SMSC (for GSM modem) to FAKESMS. I suggest you test your config and sms processing script with GSM modem to have real experience with real sms. Hope this can help you. --tjatur PS: FAKE-SMS only for testing purposes only. It couldn't emulate real SMSC from your Telco Operator /answer Heru Tjatur wrote: On Thu, 2005-06-23 at 17:54 +0700, Ricky Wibowo wrote: in my simple coding called myCoding.php ? $a = $_GET['a']; $fp = fopen(/tmp/textfile_name.txt, w); fwrite($fp, $a); fclose($fp); ? and my sms-service config : group = sms
Re: Processing SMS (beginers question)
On Fri, 2005-06-24 at 15:06 +0700, Heru Tjatur wrote: On Fri, 2005-06-24 at 09:35 +0700, Ricky Wibowo wrote: Sorry I forgot to send you example log : conf : group = smsbox bearerbox-host = localhost smsbox-id = mysms sendsms-port = 13131 global-sender = 3345 sendsms-chars = 0123456789 +- log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/access.log smsbox.log : 2005-06-24 09:12:00 [15950] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2005-06-24 09:12:00 [15950] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2005-06-24 09:12:00 [15950] [0] INFO: Connected to bearerbox at localhost port 13001. 2005-06-24 09:12:00 [15950] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) 2005-06-24 09:12:00 [15950] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 15950. 2005-06-24 09:12:00 [15950] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 15950. 2005-06-24 09:12:00 [15950] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 15950. 2005-06-24 09:12:00 [15950] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 15950. 2005-06-24 09:12:00 [15950] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 15950. 2005-06-24 09:12:00 [15950] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 15950. access.log 2005-06-24 09:13:30 2005-06-24 02:13:30 Receive SMS [SMSC:smsc_fake] [SMS ID:e19051d4-95d5-4a6f-ba16-b1efb069964d] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:31 2005-06-24 02:13:31 Receive SMS [SMSC:smsc_fake] [SMS ID:5960e6ac-428b-4cbb-a364-9f2c141c1b2e] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:32 2005-06-24 02:13:32 Receive SMS [SMSC:smsc_fake] [SMS ID:b77b3bea-b104-4594-bc08-d69e5281325a] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:33 2005-06-24 02:13:33 Receive SMS [SMSC:smsc_fake] [SMS ID:227f605c-e124-4cc2-942e-f6feb48722b1] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:34 2005-06-24 02:13:34 Receive SMS [SMSC:smsc_fake] [SMS ID:73197faf-2504-4e7d-b663-e278df6768a8] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:35 2005-06-24 02:13:35 Receive SMS [SMSC:smsc_fake] [SMS ID:46371b2c-e6fa-450d-a4d5-b656d4d5433f] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:36 2005-06-24 02:13:36 Receive SMS [SMSC:smsc_fake] [SMS ID:33775bee-306d-439d-af9a-6de263df88c9] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:37 2005-06-24 02:13:37 Receive SMS [SMSC:smsc_fake] [SMS ID:bbe0ecd7-a9c3-4cf4-98a5-2998be05ffc4] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:38 2005-06-24 02:13:38 Receive SMS [SMSC:smsc_fake] [SMS ID:0234854c-4d8b-402f-84de-4470a5e01011] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] 2005-06-24 09:13:39 2005-06-24 02:13:39 Receive SMS [SMSC:smsc_fake] [SMS ID:2c6aedd2-0434-4d07-9f9e-3744e46032f5] [SVC:] [ACT:] [BINF:] [from:100] [to:3345] [flags:-1:-1:-1:-1:-1] [msg:4:test] [udh:0:] [Delivery Report Value:-1] [SMSC Reply:] [SMS User:] is this my configuration is working correctly?? thanx for your patient answering my question :-) Ricky fix It seem there is nothing WRONG with your smsbox dekcaration. I couldn't get information from the access.log. I used bearbox log to see what's wrong with YOUR conf. /fix answer It seem there is nothing with your smsbox dekcaration. I couldn't get information from the access.log. I used bearbox log to see what's wrong with my conf. BTW, from this part of log [SMS User:] told me that you don't have sendsms-user declaration. Here, I attached conf file that works for me. I change AT-SMSC (for GSM modem) to FAKESMS. I suggest you test your config and sms processing script with GSM modem to have real experience with real sms. Hope this can help you. --tjatur PS: FAKE-SMS only for testing purposes only. It couldn't
Re: Processing SMS (beginers question)
Dear Jonas, You may try to use get-url instead of post-url. You should confirm that your url is capable of processing the incooming request (sms) and, of course, send reply to sms's sender. Hope this could help you --tjatur On Thu, 2005-06-23 at 10:13 +0300, Jonas Zaveckas wrote: Hello I need to create SMS based service - receive SMSes sent by users to particular SMS number and reply them with response SMS. Kannel seems to fit such simple requirement. After reading user documentation I've found that sending SMS to some terminal is quite simple. However, the way to get SMS'es sent by terminals remains unclear. I've create entry in configuration smskannel.conf like this: ... group = sms-service keyword = default post-url = http://localhost:8084/sender=%preceiver=%Psmscid=%iname=% ncoding=%ccharset=%C catch-all = true .. , have started socket server listening on 8084, but SMS'es do not arrive. If I start fakesmsc like this: 'fakesmsc -i 0.1 -m 100 100 200 text nop 100 300 text echo this' then SMS arrive to my server. But if I generate SMS, say from SMSC simulator (got from 'http://opensmpp.logica.com/introhtml/menu.htm') then from bearerbox log I can see that SMS reaches bearerbox, but it is not seen in smsbox log and it is not received by my server. My complete smskannel.conf is attached. Jonas
Re: Processing SMS (beginers question)
On Thu, 2005-06-23 at 11:55 +0300, Jonas Zaveckas wrote: On Thu, 2005-06-23 at 15:39 +0700, Heru Tjatur wrote: Dear Jonas, You may try to use get-url instead of post-url. You should confirm that your url is capable of processing the incooming request (sms) and, of course, send reply to sms's sender. How (and when?) I can confirm that my URL is capable to process SMS? What do you have in mind? answer I used apache and PHP to process all incomming sms. On successfull fetching sms'es from telco operator (SMPP 3.4), all smses goes get-url set in sms-service declaration. I can confirm that the get-url does its job by investigating the httpd log. All get-url invocation, the apache should write httpd request log. If you can't confirm that, it might be your sms never reached smsbox. You have to trace it back from smsbox and bearbox log. Hope that information help you --tjatur /answer Hope this could help you --tjatur On Thu, 2005-06-23 at 10:13 +0300, Jonas Zaveckas wrote: Hello I need to create SMS based service - receive SMSes sent by users to particular SMS number and reply them with response SMS. Kannel seems to fit such simple requirement. After reading user documentation I've found that sending SMS to some terminal is quite simple. However, the way to get SMS'es sent by terminals remains unclear. I've create entry in configuration smskannel.conf like this: ... group = sms-service keyword = default post-url = http://localhost:8084/sender=%preceiver=%Psmscid=%iname=% ncoding=%ccharset=%C catch-all = true .. , have started socket server listening on 8084, but SMS'es do not arrive. If I start fakesmsc like this: 'fakesmsc -i 0.1 -m 100 100 200 text nop 100 300 text echo this' then SMS arrive to my server. But if I generate SMS, say from SMSC simulator (got from 'http://opensmpp.logica.com/introhtml/menu.htm') then from bearerbox log I can see that SMS reaches bearerbox, but it is not seen in smsbox log and it is not received by my server. My complete smskannel.conf is attached. Jonas
Re: Processing SMS (beginers question)
On Thu, 2005-06-23 at 17:54 +0700, Ricky Wibowo wrote: in my simple coding called myCoding.php ? $a = $_GET['a']; $fp = fopen(/tmp/textfile_name.txt, w); fwrite($fp, $a); fclose($fp); ? and my sms-service config : group = sms-service keyword = default get-url = http://localhost/myCoding.php?a=%a catch-all = true send-sender = true omit-empty = true max-messages = 0 do you think, it would be work fine, just for write file /tmp/textfile_name.txt and the file's content is the message which sent by SMSc Operator?? answer Dear Ricky, First of all, if your conf file works (it means your sms reached the smsbox and deploy your default sms-service declaration), your script will overwrite the textfile every time sms comming. So the file have last $a value from last sms processed. I suggest a+ at fopen() argument. If your declaration of other part configuration file works (bearbox/core, smsbox, smsc, and sendsms-user when necessary), yes your myCoding.php script will be invoked for each incomming sms. If your get-url never been called, something goes wrong. You have to trace back you configuration. Hope this can help you --tjatur /answer thank you for your explaination Heru Tjatur wrote: On Thu, 2005-06-23 at 11:55 +0300, Jonas Zaveckas wrote: On Thu, 2005-06-23 at 15:39 +0700, Heru Tjatur wrote: Dear Jonas, You may try to use get-url instead of post-url. You should confirm that your url is capable of processing the incooming request (sms) and, of course, send reply to sms's sender. How (and when?) I can confirm that my URL is capable to process SMS? What do you have in mind? answer I used apache and PHP to process all incomming sms. On successfull fetching sms'es from telco operator (SMPP 3.4), all smses goes get-url set in sms-service declaration. I can confirm that the get-url does its job by investigating the httpd log. All get-url invocation, the apache should write httpd request log. If you can't confirm that, it might be your sms never reached smsbox. You have to trace it back from smsbox and bearbox log. Hope that information help you --tjatur /answer Hope this could help you --tjatur On Thu, 2005-06-23 at 10:13 +0300, Jonas Zaveckas wrote: Hello I need to create SMS based service - receive SMSes sent by users to particular SMS number and reply them with response SMS. Kannel seems to fit such simple requirement. After reading user documentation I've found that sending SMS to some terminal is quite simple. However, the way to get SMS'es sent by terminals remains unclear. I've create entry in configuration smskannel.conf like this: ... group = sms-service keyword = default post-url = http://localhost:8084/sender=%preceiver=%Psmscid=%iname=% ncoding=%ccharset=%C catch-all = true .. , have started socket server listening on 8084, but SMS'es do not arrive. If I start fakesmsc like this: 'fakesmsc -i 0.1 -m 100 100 200 text nop 100 300 text echo this' then SMS arrive to my server. But if I generate SMS, say from SMSC simulator (got from 'http://opensmpp.logica.com/introhtml/menu.htm') then from bearerbox log I can see that SMS reaches bearerbox, but it is not seen in smsbox log and it is not received by my server. My complete smskannel.conf is attached. Jonas
Re: Receiving SMPP connections.
On Mon, 2005-06-20 at 15:56 +0300, Matias K. wrote: I can try to clarify my previous post.. The problem is, that I don't have any commercial SMSC in Finland who would accept SMPP connections, so if I try to accept SMPP connections I don't have any working settings for the configfile. Let's say my SMPP smsc-group file would look something like this: group = smsc smsc = smpp host = localhost (this is a mandatory setting, so I tried it with localhost) port = 13015 etc.. and of course I get error messages when trying to put up the bearerbox. Your configuration mean that you are trying to connect SMSC via SMPP protocol that reside in the machine. The error log said you don't have SMSC running SMPP protocol. I got the picture what you are trying to do, but as far as my knowledge, kannel is not SMPP server, so it can't provide SMPP connection where your configuration supposed to do. May be others have a clue how to test SMPP connection via SMPP server emulation. Hope this helpS you. regrads, --tjatur 2005-06-20 15:52:22 [11165] [8] ERROR: connect failed 2005-06-20 15:52:22 [11165] [8] ERROR: System error 111: Connection refused 2005-06-20 15:52:22 [11165] [8] ERROR: error connecting to server `localhost' at port `13015' 2005-06-20 15:52:22 [11165] [8] ERROR: SMPP[SMPP:localhost:13015/13015:tester:VMA]: Couldn't connect to server. 2005-06-20 15:52:22 [11165] [8] ERROR: SMPP[SMPP:localhost:13015/13015:tester:VMA]: Couldn't connect to SMS center (retrying in 10 seconds). I have my http/cimd2 routing thing working with no problems, but I don't know how to relay smpp messages with the same system. On 6/20/05, Matias K. [EMAIL PROTECTED] wrote: Thanks for all the answers, I still have some questions though.. How can i setup the receiving SMPP usernames and passwords.. The options host and port are supposed to be the receiving end (as in commercial smsc)? As are smsc-username and smsc-passwords? I've tested setting up smpp instance with settings host as the same ip as the machine running kannel, but to no avail. On 6/17/05, Heru Tjatur [EMAIL PROTECTED] wrote: On Fri, 2005-06-17 at 14:27 +0700, Ricky Wibowo wrote: Here my config : group = sms-service keyword = default get-url = http://127.0.0.1/~playsms/myCoding.php?sender=%pto=%Ptext=%r; accept-x-kannel-headers = true accepted-smsc = 3345 Verify your smsc declaration, make sure the setting include smsc-id = 3345 as you set in your sms-service configuration. Hope, this will make any help.. --tjatur why I still can't receive sms (SMPP connection), is there any syntax missing?? NB : my SMSc id is 3345 Willy Mularto wrote: hi, keyword=default(means you redirect all sms request to some url) max-messages=0(means you don't want kannel reply sms automatically, here you need the /sendsms?... script to do manual reply) all the explanations are explicitely written on the document, please read it :) Regards Willy Mularto Cell: +62 811 923 464 Y!: sangprabv http://www.transmedia.co.id http://www.duniamobile.com http://www.sangprabv.net http://www.mobile-trax.com - Original Message - From: Ricky Wibowo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: users@kannel.org Sent: Friday, June 17, 2005 11:05 AM Subject: Re: Receiving SMPP connections. the kannel.conf : keyword=default (what for?) max-messages=0 (isn't unlimited?) thanx Sakellariou Spyros ([EMAIL PROTECTED]) wrote: The first lines of this java servlet (including the 3 println statements) are examples of handling an HTTP request for an incoming SMS and the rest is for sending an HTTP request. You just need to configure Kannel to send an http request to the URL where the java servlet is running. In order to run Java servlets you need a Servlet Container such as Apache Tomcat (http://jakarta.apache.org/tomcat/index.html). So in your kannel.conf file you need to add a paragraph that looks something like this group = sms-service keyword = default get-url = http://my.apache.machine:8080/Servlet/MyServlet?sender=%ptext=%rto=%P; max-messages = 0 Notice that the names I put as parameters in the http request are the same as I use in the code in order to retrieve them. (The 8080 port is the default port for the Tomcat Servlet Container) With this configuration incoming SMS messages are not stored anywhere they are just send to the Java Servlet as an http request. So it is up to the java servlet to store them somewhere if needed. In my code a second http request is made to another Kannel in order to forward the SMS to the CIMD2 SMSC, but the code can
Re: Simple Question on 'Delivery Report'
On Fri, 2005-06-17 at 10:15 +0400, Gulshan Babajee wrote: Hi everyone, Am new to Kannel and I would like to know some more information regarding kannel dlr. From what I've read, it seems that when you send an sms to a specific mobile phone, you can configure kannel to deliver reports to you. But I would like to know that if I receive an MO (sms) from an smsc and immediately do a reply (i.e send an MT) for this MO, can I configure Kannel to send me delivery report for this reply? If yes how to implement this. thanks in advance It depends on how you send an MT. If you send an MT through a sms-service you can set dlr in dlr-url directive in sms-service declaration (in configuration file). Please read the User Guide on how to set sms-service configuration. You can add dlr status in URL query string. If you send an MT through cgi-bin/sendsms script, you can add url encoded dlr-url parameter in the script. As in sms-service declaration you can add dlr status as part of the query string. Detail information can be found at User Guide on sendsms script. Don't forget to set dlr storage to internal, if you decide not to use database as dlr storage. Otherwise, set the dlr storage to database of your choice. Hope this will help. --tjatur -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.7.5/18 - Release Date: 15-06-2005
Re: Receiving SMPP connections.
On Fri, 2005-06-17 at 14:27 +0700, Ricky Wibowo wrote: Here my config : group = sms-service keyword = default get-url = http://127.0.0.1/~playsms/myCoding.php?sender=%pto=%Ptext=%r; accept-x-kannel-headers = true accepted-smsc = 3345 Verify your smsc declaration, make sure the setting include smsc-id = 3345 as you set in your sms-service configuration. Hope, this will make any help.. --tjatur why I still can't receive sms (SMPP connection), is there any syntax missing?? NB : my SMSc id is 3345 Willy Mularto wrote: hi, keyword=default(means you redirect all sms request to some url) max-messages=0(means you don't want kannel reply sms automatically, here you need the /sendsms?... script to do manual reply) all the explanations are explicitely written on the document, please read it :) Regards Willy Mularto Cell: +62 811 923 464 Y!: sangprabv http://www.transmedia.co.id http://www.duniamobile.com http://www.sangprabv.net http://www.mobile-trax.com - Original Message - From: Ricky Wibowo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: users@kannel.org Sent: Friday, June 17, 2005 11:05 AM Subject: Re: Receiving SMPP connections. the kannel.conf : keyword=default (what for?) max-messages=0 (isn't unlimited?) thanx Sakellariou Spyros ([EMAIL PROTECTED]) wrote: The first lines of this java servlet (including the 3 println statements) are examples of handling an HTTP request for an incoming SMS and the rest is for sending an HTTP request. You just need to configure Kannel to send an http request to the URL where the java servlet is running. In order to run Java servlets you need a Servlet Container such as Apache Tomcat (http://jakarta.apache.org/tomcat/index.html). So in your kannel.conf file you need to add a paragraph that looks something like this group = sms-service keyword = default get-url = http://my.apache.machine:8080/Servlet/MyServlet?sender=%ptext=%rto=%P; max-messages = 0 Notice that the names I put as parameters in the http request are the same as I use in the code in order to retrieve them. (The 8080 port is the default port for the Tomcat Servlet Container) With this configuration incoming SMS messages are not stored anywhere they are just send to the Java Servlet as an http request. So it is up to the java servlet to store them somewhere if needed. In my code a second http request is made to another Kannel in order to forward the SMS to the CIMD2 SMSC, but the code can be changed to make a database insert for example. I am sorry but I am not familiar with PlaySMS so I can't help there. Spyros -Original Message- From: Ricky Wibowo [mailto:[EMAIL PROTECTED] Sent: Thursday, June 16, 2005 2:49 PM To: Sakellariou Spyros ([EMAIL PROTECTED]) Cc: users@kannel.org Subject: Re: Receiving SMPP connections. Thank you for answering my question Send SMS, I'm using HTTP GET/POST, and I've successed for sending, no problem at all But, If there is incoming SMS to my SMS Gateway, where is the message gone?? In which directory the message come?? (where's the spool directory??) I'm using SMPP protocol for this and using kannel + playsms for the web interface thank you Sakellariou Spyros ([EMAIL PROTECTED]) wrote: I don't have a script for doing that. I am a Java Developer and I only know how to do it as a Java Servlet so in Java it would be something like this: public class HttpSMSHandler extends HttpServlet { public void init() throws ServletException { } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String sms-message-text = request.getParameter(text); String sms-message-originator = request.getParameter(sender); String sms-message-destination = request.getParameter(to); System.out.println(The incoming message said: + sms-message-text); System.out.println(The incoming message originator is: + sms-message-originator); System.out.println(The incoming message destination is: + sms-message-destination); String getRequest=http://www.theCIMDKannel.com:13013/cgi-bin/sendsms?username=foo password=bar + from= + sms-message-originator + to= + sms-message-destination + text= + sms-message-text; getRequest = getRequest.replace(' ', '+'); URL requestUrl = new URL( getRequest); HttpURLConnection conn = ( HttpURLConnection )requestUrl.openConnection(); conn.disconnect(); } } I just wrote this as an example I don't even know if it compiles or works but this is the general idea for a Java Servlet. Although it looks like it should work 8-) Spyros -Original Message- From: Ricky Wibowo
Re: [Fwd: Re: java based push sdk for kannle ppg]
On Wed, 2005-06-15 at 14:47 +0200, Christian Vandrei wrote: Hi everone, maybe someone can help with this one? Ciao, Christian Original Message Subject: Re: java based push sdk for kannle ppg Date: Wed, 15 Jun 2005 19:40:54 +0800 From: wen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Hi, I want to know if anybody knows how to use the Kannel to download ringtones or java apps to the phones, the question is, is it possible with Kannel?, anybody has a configuration that works for that? i think i need 2 make kannel and apache co-worked as following: apache http server -- kannel gateway -- mobile but i don't know how to make kannel gateway cowork with apache? any tip would be greatly aprreciated I've never done it yet. Hope this give you a tip how to do it. Kannel work fine with apache (or other web server, i think, as long as they talk via http). In my experience, I do communication to kannel with via http (just for plain text sms). The communication, more or less, look like this: Incomming Request CellPhone -- TELCO OPERATOR -- KANNEL Reply Request REQUESTED LOAD -- KANNEL -- TELCO OPERATOR --CellPhone I use PHP script to receive the request and send the requested load from and to Kannel. How to set up this request is well documented in User Guide. Please dig further from there. To send binary load to CellPhone you have to define binary UDH. I've never done this, but the guide said so. You could dig the maillist archive to find out how to set this UDH. There are some discussion about this sometimes ago. If the payload (ringtone or java app) is to big to be sent as sms chunk, you can try sending WAP-pushed URL to Cellphone. So, your customer could use URL pushed to download the payload via WAP Services. Hope this will help you to set where to start --tjatur
Re: Nokia 8250 and kannel
On Fri, 2005-06-17 at 17:53 +0700, Ricky Wibowo wrote: is Nokia 8250 compatible with kannel?? Or, any handphone that compatible with it? thanx I never try Nokia 8250, but I have success experience Ericsson R520, Siemens M45, M60, S60, T610, ITegno wavecom. --tjatur
Re: Is it possible to start 2 kannel on one machine ?
Dear Simon, Try to use different port setting for each instant. I've run two instant and I use different conf file for each. It work just fine, so far.. -tj- On Thu, 2005-01-06 at 10:53, Simon Yip wrote: Dear all, I got the following error when I try to start another kannel using different config file. 2005-01-06 11:55:51 [23124] [0] ERROR: Couldn't bind a UDP socket to port 9200 2005-01-06 11:55:51 [23124] [0] ERROR: System error 98: Address already in use Is there anything I have to add to my .conf ? Thank you very much. Regards, Simon http://www.i-cable.com -- Heru Tjatur [EMAIL PROTECTED]
Re: Responsing MO
Hi Marko, As far as I know (from my short time experience), MO is related with the user(cellphone) messages, so any sms originated from cellphone that go to SMSC is MO. And therefore, any message that we send to SMSC that finally delivered to the users is MT message. So any prcessing messages as the reply from your application will be considered as MT messages. Regarding time limit, I think it will set by SMSC (or kannel) when you push the MT message, Validity Period (if I'm not mistaken). There is a default value for Validity Period. Hope this helps you... Regards, Tjatur On Thu, 2004-11-11 at 17:13, Marko Helle wrote: Hello Users, I have been familiarizing my self with kannel last days and mostly understanding how things work, but this thing with MOs I just dont get. When user wants to use my service, 1) he/she sends sms message which goes to smsc 2) smsc then contacts my sms gw (kannel) 3) kannel then makes request to my web app 4) now in my web app I know what to do and after doing that I have response. So my questions: - when smsc contacts kannel/MyWebApp, does it wait for response? If I'm not mistaken, Kannel that does the contact or fetch the message from SMSC - If not, should I send response by MT message? - Is there some time limit for response, i.e. if completing response takes time can I keep smsc waiting or should response be always quick and continue with MT if necessary? Perhaps explaining example would help me. - When I send sms to some voting machine and it replyes saying thanks for voting, was there only my MO and response to it or was there my MO and MT from voting machine? Your SMS is considered as MO message The reply thanks for voting is considered as MT messages. - When I send sms to query name by phone number, and - resolving phone number is fast, is it - my MO to service provider - their response to MO? - their response as MT - resolving phone number takes alot of time, - then smsc cannot be waiting for response, but is respose still in context of MO? :)Marko
RE: Authorization Failed
Dear Jane, Try not to URLEncode for username and password. It works in my app. From the docs, as far as my understanding, we only have to urlencode the text and dlr-url parameter. Pls, correct me if I'm wrong. ;) Tjatur On Wed, 2004-09-08 at 14:38, Jane P. Ifurung wrote: Hello Jeetendra, thanks for the immediate response. Anyway, below are the configuration for the sendsms-user and my function to send the message. Heres my testing scenario: 1. MO (from phone to Kannel) When the user sends an SMS, the message will get to my Kannel (thru the Telcos UCP/EMI SMSC) and will be forwarded to my content server where my app resides and process the request. The web app will then respond with appropriate message using HTTP GET request (my function below) and said response will pass through Kannel and sends it to my phone. Although the response was sent to my phone, I see the Authorization failed for sendsms answer of Kannel in my smsbox log. 1. MT (from my web app to phone) My web app sends a message to the phone via Kannel using a HTTP GET request (using the same function below) to sendsms of Kannel. I could not see the message sent by my web app in my phoneAgain, I could see the Authorization failed for sendsms answer of Kannel in my smsbox log. Thanks, and I hope to get response at the soonest # SEND-SMS USERS group = sendsms-user username = myusername password = myusername max-messages = 3 concatenation = true And heres my function for the http get request, where the recipient and message variables are the cell phone number of the recipient and message to be sent to the recipient, respectively. script language=JScript runat=server function HTTPRequest(recipient,message) { // HTTP Client POST test. // // Instantiate the HTTP Client object var objHTTP = Server.CreateObject(Coalesys.CSHttpClient.1); // Set Request URL objHTTP.RequestURL = http://XXX.XXX.XX.X:13013/cgi-bin/sendsms;; // Set the Form Data in the Request Body. objHTTP.RequestBody = username= + Server.URLEncode(myusername); objHTTP.RequestBody = password= + Server.URLEncode(myusername); objHTTP.RequestBody = from= + Server.URLEncode(my-cell-number); objHTTP.RequestBody = to= + Server.URLEncode(recipient); objHTTP.RequestBody = text= + Server.URLEncode(message); objHTTP.RequestBody = mclass= + Server.URLEncode(1); // Set the Request Headers. Content-Length and Content-Type are required. objHTTP.RequestHeaders = User-Agent: + Request.ServerVariables(HTTP_USER_AGENT) + \r\n; objHTTP.RequestHeaders += Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword, application/vnd.ms-excel, */*\r\n; objHTTP.RequestHeaders += Accept-Language: en-us\r\n; objHTTP.RequestHeaders += Content-Length: + objHTTP.RequestBody.length + \r\n; objHTTP.RequestHeaders += Content-Type: application/x-www-form-urlencoded\r\n; objHTTP.RequestHeaders += Cache-Control: no-cache\r\n; // Execute the Request using GET method objHTTP.Execute(GET); } /script -Original Message- From: Jeetendra Singh [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 20043:09 PM To: Jane P. Ifurung Subject: Re: Authorization Failed Please send across your sendsms user group parameters and HTTP URL sample. They will help in diagnosis. Jane P. Ifurung wrote: Hello! When doing a GET HTTP request from my application to sendsms of Kannel, I receive an Authorization Failed for sendsms reply from Kannel. Where should I set the authentication/authorization details? Ive already placed the username and password variables in my sendsms-user group as well as in the parameters of my HTTP request Thanks, and Im hoping for your reply. -- It works - don't touch it.
Re: The sms_service config.
On Thu, 2004-08-19 at 16:51, Aidan Kehoe wrote: Hi! As I understand the docs and the example files, with the following in kannel.conf, group = sms-service keyword = first catch-all = true get-url = http://127.0.0.1/sms_inbox.php?message=%amessage_date=%tphone=%Pfrom=%p; max-messages = 0 group = sms-service keyword = default catch-all = true text = No service specified if I send in a message with first at the start, its details should be passed to sms_inbox.php. If I send a message without the word first at the start, a response should be sent, with No service specified as the text. I'm not seeing this. What I'm seeing in the bearerbox logs is messages received but nothing being acted on, whether or not the word first is involved. What I want to have happen is, when we receive an SMS over SMPP, an external URL is called with the contents of that SMS as its arguments, and no response is sent. (There's an external program that has most of the intelligence of our setup, and we want that to send any responses.) I would think that group = sms-service keyword = default catch-all = true get-url = http://127.0.0.1/sms_inbox.php?message=%amessage_date=%tphone=%Pfrom=%p; max-messages = 0 would be an appropriate config for that, but evidently not. Any pointers as to what I'm doing wrong? Best regards, - Aidan Dear Aidan, Just try to switch the keyword value in your kannel conf. group = sms-service keyword = message aliases = first catch-all = true get-url = http://127.0.0.1/sms_inbox.php?message=%amessage_date=%tphone=%Pfrom=%p; max-messages = 0 group = sms-service keyword = default catch-all = true text = No service specified I use message (variable name use in get-url), instead of first, and add aliases to filter the first word in sms message to perform the service. I use similar conf and works fine in 1.3.1 (I haven't got a chance to switch to 1.3.2. If you have more than one command (first word) add in aliases and separate them with semicolon. Hope this help you. Heru
Re: A question on MO/MT
On Thu, 2004-08-26 at 10:04, Jane P. Ifurung wrote: Hello! Im a bit confused with this MO and MT configuration. I understand the process for MO is from the subscriber to my Kannel, while the MT is from my Kannel to the subscriber. For MO configuration, I understand this is defined in the sms-service group, wherein we specify the keyword (the first word of the message sent by the subscriber) and the get-url that points to the HTTP URL of my application which will process the message received by Kannel and responds back to the user. My question is, when my application responds back with the appropriate data to the subscriber, how does it know which SMSC to send through/connect to? Is this through redirecting to the url of the sendssms with the appropriate parameters? For an MT configuration, I understand this is defined in the sendsms-user group, wherein we specify the IPs that are allowed to initiate the SMS push. The sendsms can be accessed by doing an HTPT GET or POST to my smsbox with the appropriate parameters. Example of sms push is http://host-of-my-kannel-smsbox:the-sendsms-port-in-my-smsbox-group/cgi-bin/sendsms?username=usenamepassword=passfrom=access-code-provided-by-Telcoto=number-of-recipienttext=my-rulencoded-textdlr-mask=31dlr-url=url-to-store-the-delivery-report-generationmclass=1. My question for the above is, where should I type those? Always in a web-browser? Could I make an application in my HTTP server that would redirect to the above url and append those parameters? Thank you in advance! Regards, Jane You can use fopen() function in PHP snipet or other HTTP API for scripting language used (PERL, PHYTON etc.) Tjatur