Re: sms send problem
Hi, Try using DLRs; from them based on the status you will know exactly if the SMS reached the phone or not and if not, where it's at. Catalin Wen Jia, Gan wrote: Hi Rodrigo, Thanks for your reply. Sent. was what I got as a HTTP reply in the browser from http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobart o=90121494text=Hello+world Can I ask how do I differentiate between the different modes of Dispatched, Sent-to-smsc or Sent-to-modem? And after differentiating, how can I continue troubleshooting from there. Regards, Wen -Original Message- From: Rodrigo Cremaschi [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 27, 2005 10:59 PM To: Wen Jia, Gan Cc: users@kannel.org Subject: Re: sms send problem Hi Wen, Well, Sent in Kannel dictionary does not mean what we suppose at first, and may lead to some confusion. I think this should be changed to Dispatched, Sent-to-smsc or Sent-to-modem as this would be more appropriate. Rodrigo. On 9/27/05, Wen Jia, Gan [EMAIL PROTECTED] wrote: Hi there, I am new in setting up Kannel as SMS gateway, and am having problems sending SMS via HTTP interface. After sending the SMS using FireFox 1.0.4 running on Fedora Core 4: http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobar to=90121494text=Hello+world Kannel returns a page with Sent., but I do not see my GSM phone sending out the SMS, not the SMS being received. I am connected my SonyEricsson Z1010 GSM phone via infra-red(/dev/ircomm0) to use it as SMSC. I am able to communicate to the phone via infra-red using AT commands and using minicom. Would appreciate any help! Regards, Wen My smskannel.conf - group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar status-password = foo log-file = /tmp/kannel.log log-level = 1 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 access-log = /tmp/access.log # SMSC CONNECTIONS group = smsc smsc = at smsc-id = Z1010 device = /dev/ircomm0 speed = 9600 include = modems.conf #modems.conf is that obtained from the kannel distribution. # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 log-file = /tmp/smsbox.log log-level = 0 access-log = /tmp/access.log # SEND-SMS USERS group = sendsms-user username = tester password = foobar # SERVICES group = sms-service keyword = nop text = You asked nothing and I did it! # there should be default always group = sms-service keyword = default text = No service specified My Output Messages --- /usr/sbin/bearerbox -v 1 smskannel.conf 2005-09-27 17:52:41 [18622] [0] INFO: Debug_lvl = 1, log_file = none, log_lvl = 0 2005-09-27 17:52:41 [18622] [0] WARNING: DLR: using default 'internal' for storage type. 2005-09-27 17:52:41 [18622] [0] INFO: DLR using storage type: internal 2005-09-27 17:52:41 [18622] [0] INFO: Added logfile `/tmp/kannel.log' with level `1'. 2005-09-27 17:52:41 [18622] [0] INFO: Started access logfile `/tmp/access.log'. 2005-09-27 17:52:41 [18622] [0] INFO: HTTP: Opening server at port 13000. 2005-09-27 17:52:41 [18622] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2005-09-27 17:52:41 [18622] [0] INFO: DLR rerouting for smsc id Z1010 disabled. 2005-09-27 17:52:41 [18622] [0] INFO: AT2[Z1010]: configuration doesn't show modemtype. will autodetect 2005-09-27 17:52:41 [18622] [0] INFO: 2005-09-27 17:52:41 [18622] [0] INFO: Kannel bearerbox II version 1.4.0 starting2005-09-27 17:52:41 [18622] [6] INFO: AT2[Z1010]: opening device 2005-09-27 17:52:41 [18622] [0] INFO: MAIN: Start-up done, entering mainloop 2005-09-27 17:52:42 [18622] [6] INFO: AT2[Z1010]: speed set to 9600 2005-09-27 17:52:52 [18622] [6] INFO: AT2[Z1010]: opening device 2005-09-27 17:52:52 [18622] [6] WARNING: AT2[Z1010]: trying to open device with not closed device!!! Please report!!! 2005-09-27 17:52:52 [18622] [6] INFO: AT2[Z1010]: closing device 2005-09-27 17:53:37 [18622] [8] INFO: Client connected from 127.0.0.1 2005-09-27 17:54:22 [18622] [8] INFO: Connection closed by the box 127.0.0.1 2005-09-27 17:54:27 [18622] [0] WARNING: Killing signal or HTTP admin command received, shutting down... - /usr/sbin/smsbox -v 1 smskannel.conf 2005-09-27 17:53:37 [18638] [0] INFO: Debug_lvl = 1, log_file = none, log_lvl = 0 2005-09-27 17:53:37 [18638] [0] INFO: Starting to log to file /tmp/smsbox.log level 0 2005-09-27 17:53:37 [18638] [0] INFO: Added logfile `/tmp/smsbox.log' with level `0'. 2005-09-27 17:53:37 [18638] [0] INFO: Service global sender set as '13013' 2005-09-27 17:53:37 [18638] [0] INFO: Logging accesses to '/tmp/access.log'. 2005-09-27 17:53:37 [18638] [0] INFO: Started access logfile `/tmp/access.log'. 2005-09-27 17:53:37 [18638] [0] INFO: HTTP: Opening server at port 13013. 2005-09-27 17:53:37 [18638] [0] INFO: Set up send
RE: sms send problem
Title: RE: sms send problem Hi Catalin, Rodrigo, Thanks for both your advice! I have managed to solve my problem. It seems that the modemtype and the AT variables in the provided modem.conf are not compatible with my Sony Ericsson Z1010. I found this link which helped to solve my problem. Hope it benefits others facing similar problems too. http://henryjunior.com/blog/?p=12 Note: I was connecting my Z1010 to my USB port, so for device I was using /dev/ttyACM1 Thanks again to all who helped! Wen >From http://henryjunior.com/blog/?p=12 July 17th, 2005 I just got my Sony Ericsson T637 working with Kannel via Bluetooth (as a GSM modem). I looked around for the necessary init and config script for this phone and didnt find one so I am posting the configuration I created. Some aspects might not be necessary or could be overkill. The bottom line though is using these configurations I am able to send/receive/respond to SMS messages: # SMSC GSM group = smsc smsc = at modemtype = T630-T628 device = /dev/tty.T637-SerialPort1-1 speed = 9600 sim-buffering = true group = modems id = T630-T628 name = T630-T628 broken = true init-string = AT+CNMI=2,3,2,0,0;+CMGF=0 keepalive-cmd = AT+CBC;+CSQ;+CMGF=0 -Original Message- From: Rodrigo Cremaschi [mailto:[EMAIL PROTECTED]] Sent: Tue 9/27/2005 10:59 PM To: Wen Jia, Gan Cc: users@kannel.org Subject: Re: sms send problem Hi Wen, Well, Sent in Kannel dictionary does not mean what we suppose at first, and may lead to some confusion. I think this should be changed to Dispatched, Sent-to-smsc or Sent-to-modem as this would be more appropriate. Rodrigo. On 9/27/05, Wen Jia, Gan [EMAIL PROTECTED] wrote: Hi there, I am new in setting up Kannel as SMS gateway, and am having problems sending SMS via HTTP interface. After sending the SMS using FireFox 1.0.4 running on Fedora Core 4: http://localhost:13013/cgi-bin/sendsms?username=tester=foobar=90121494=Hello+world Kannel returns a page with Sent., but I do not see my GSM phone sending out the SMS, not the SMS being received. I am connected my SonyEricsson Z1010 GSM phone via infra-red(/dev/ircomm0) to use it as SMSC. I am able to communicate to the phone via infra-red using AT commands and using minicom. Would appreciate any help! Regards, Wen My smskannel.conf - group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar status-password = foo log-file = /tmp/kannel.log log-level = 1 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 access-log = /tmp/access.log # SMSC CONNECTIONS group = smsc smsc = at smsc-id = Z1010 device = /dev/ircomm0 speed = 9600 include = modems.conf #modems.conf is that obtained from the kannel distribution. # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 log-file = /tmp/smsbox.log log-level = 0 access-log = /tmp/access.log # SEND-SMS USERS group = sendsms-user username = tester password = foobar # SERVICES group = sms-service keyword = nop text = You asked nothing and I did it! # there should be default always group = sms-service keyword = default text = No service specified My Output Messages --- /usr/sbin/bearerbox -v 1 smskannel.conf 2005-09-27 17:52:41 [18622] [0] INFO: Debug_lvl = 1, log_file = none, log_lvl = 0 2005-09-27 17:52:41 [18622] [0] WARNING: DLR: using default 'internal' for storage type. 2005-09-27 17:52:41 [18622] [0] INFO: DLR using storage type: internal 2005-09-27 17:52:41 [18622] [0] INFO: Added logfile `/tmp/kannel.log' with level `1'. 2005-09-27 17:52:41 [18622] [0] INFO: Started access logfile `/tmp/access.log'. 2005-09-27 17:52:41 [18622] [0] INFO: HTTP: Opening server at port 13000. 2005-09-27 17:52:41 [18622] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2005-09-27 17:52:41 [18622] [0] INFO: DLR rerouting for smsc id Z1010 disabled. 2005-09-27 17:52:41 [18622] [0] INFO: AT2[Z1010]: configuration doesn't show modemtype. will autodetect 2005-09-27 17:52:41 [18622] [0] INFO: 2005-09-27 17:52:41 [18622] [0] INFO: Kannel bearerbox II version 1.4.0 starting2005-09-27 17:52:41 [18622] [6] INFO: AT2[Z1010]: opening device 2005-09-27 17:52:41 [18622] [0] INFO: MAIN: Start-up done, entering mainloop 2005-09-27 17:52:42 [18622] [6] INFO: AT2[Z1010]: speed set to 9600 2005-09-27 17:52:52 [18622] [6] INFO: AT2[Z1010]: opening device 2005-09-27 17:52:52 [18622] [6] WARNING: AT2[Z1010]: trying to open device with not closed device!!! Please report!!! 2005-09-27 17:52:52 [18622] [6] INFO: AT2[Z1010]: closing device 2005-09-27 17:53:37 [18622] [8] INFO: Client connected from 127.0.0.1 2005-09-27 17:54:22 [18622] [8] INFO: Connection closed by the box 127.0.0.1 2005-09-27 17:54:27 [18622] [0] WARNING: Killing signal or HTTP admin command received, shutting down... -
Kannel refuses to get-url
Hello, I have Kannel setup to receive messages from the SMSC using CIMD2. The problem is I setup a service where an incoming message should get an http url but it never does and I do not receive any errors in the logfile. Can someone pont me to any errors in my conf file? Thanks in advance, Boudewijn ### kannel.conf ## # General configuration group = core admin-port = 13000 admin-password = ## status-password = ## log-file = /var/log/kannel/core.log log-level = 0 smsbox-port = 13002 store-file = /var/spool/kannel/sms.store # SMSC Nokia CIMD2 group = smsc smsc = cimd2 smsc-id = Infospace host = 194.165.79.73 port = smsc-username = ### smsc-password = ### # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13001 log-file = /var/log/kannel/smsbox.log log-level = 0 # SEND-SMS USERS group = sendsms-user username = sms_user password = # SMS SERVICE GET-URL EXAMPLE group = sms-service keyword = default catch-all = true get-url = http://linux-01/9009/index.php; assume-plain-text = true max-messages = 0 ### The logfile states the normal startup lines and on an incoming sms: 2005-09-28 21:39:23 [8] DEBUG: smscconn (CIMD2:194.165.79.73:9972:Infospace): new message received After that it restarts and that's it...
RE: Kannel refuses to get-url
You may want to include one of the following parameters in the get-url: ## Parameters: # %k the keyword in the SMS request (i.e., the first word in the SMS message) # %s next word from the SMS message, starting with the second one (i.e., the first word, the keyword, is not included); problematic characters for URLs are encoded (e.g., '+' becomes '%2B') # %S same as %s, but '*' is converted to '~' (useful when user enters a URL) and URL encoding isn't done (all others do URL encode) # %r words not yet used by %s; e.g., if the message is FOO BAR FOOBAR BAZ, and the has been one %s, %r will mean FOOBAR BAZ # %a all words of the SMS message, including the first one, with spaces squeezed to one # %b the original SMS message, in a binary form # %t the time the message was sent, formatted as -MM-DD HH:MM, e.g., 1999-09-21 14:18 # %p the phone number of the sender of the SMS message # %P the phone number of the receiver of the SMS message # %q like %p, but a leading `00' is replaced with `+' # %Q like %P, but a leading `00' is replaced with `+' # %i the smsc-id of the connection that received the message # %d the delivery report value # %A the delivery report SMSC reply, if any # %n the sendsms-user or sms-service name # %c message coding: 0 (default, 7 bits), 1 (7 bits), 2 (8 bits) or 3 (unicode) # %C message charset: for a normal message, it will be gsm (coding=1), binary (coding=2) or UTF16-BE (coding=3). If the message was sucessfully recoded from unicode, it will be ISO-8859-1 # %u udh of incoming message I am not sure of how old this list is. Maybe -meanwhile- there are new parameters. For the rest: What happens if you lynx the same url from the same box. Is the host linux-01 defined in your /etc/hosts or otherwise accessible? Also: If the 9009 means a port number rather than a folder in your webspace, the first slash should be a colon. These options may not mean a solution. But it is what I am thinking of at the moment. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of B. van Breukelen Sent: woensdag 28 september 2005 21:54 To: users@kannel.org Subject: Kannel refuses to get-url Hello, I have Kannel setup to receive messages from the SMSC using CIMD2. The problem is I setup a service where an incoming message should get an http url but it never does and I do not receive any errors in the logfile. Can someone pont me to any errors in my conf file? Thanks in advance, Boudewijn ### kannel.conf ## # General configuration group = core admin-port = 13000 admin-password = ## status-password = ## log-file = /var/log/kannel/core.log log-level = 0 smsbox-port = 13002 store-file = /var/spool/kannel/sms.store # SMSC Nokia CIMD2 group = smsc smsc = cimd2 smsc-id = Infospace host = 194.165.79.73 port = smsc-username = ### smsc-password = ### # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13001 log-file = /var/log/kannel/smsbox.log log-level = 0 # SEND-SMS USERS group = sendsms-user username = sms_user password = # SMS SERVICE GET-URL EXAMPLE group = sms-service keyword = default catch-all = true get-url = http://linux-01/9009/index.php; assume-plain-text = true max-messages = 0 ### The logfile states the normal startup lines and on an incoming sms: 2005-09-28 21:39:23 [8] DEBUG: smscconn (CIMD2:194.165.79.73:9972:Infospace): new message received After that it restarts and that's it...
Re: Kannel refuses to get-url
Dear Rene, Thank you for the answer. I removed the options for testing purposes and will add them later. It is not the problem tough because no request pops up in the error- not the acceslog on linux-01. The linux-01 server is accessible from the Kannel server via DNS. I did a GET http://linux-01/9009/index.php; and it responded correctly. The 9009 is an actual directory on linux-01 /var/www/html/9009. I can see how that is confusing but it was meant this way. Thanks a lot for your suggestions. Regards, Boudewijn On 28-sep-2005, at 22:12, Rene Kluwen wrote: You may want to include one of the following parameters in the get- url: ## Parameters: # %k the keyword in the SMS request (i.e., the first word in the SMS message) # %s next word from the SMS message, starting with the second one (i.e., the first word, the keyword, is not included); problematic characters for URLs are encoded (e.g., '+' becomes '%2B') # %S same as %s, but '*' is converted to '~' (useful when user enters a URL) and URL encoding isn't done (all others do URL encode) # %r words not yet used by %s; e.g., if the message is FOO BAR FOOBAR BAZ, and the has been one %s, %r will mean FOOBAR BAZ # %a all words of the SMS message, including the first one, with spaces squeezed to one # %b the original SMS message, in a binary form # %t the time the message was sent, formatted as -MM-DD HH:MM, e.g., 1999-09-21 14:18 # %p the phone number of the sender of the SMS message # %P the phone number of the receiver of the SMS message # %q like %p, but a leading `00' is replaced with `+' # %Q like %P, but a leading `00' is replaced with `+' # %i the smsc-id of the connection that received the message # %d the delivery report value # %A the delivery report SMSC reply, if any # %n the sendsms-user or sms-service name # %c message coding: 0 (default, 7 bits), 1 (7 bits), 2 (8 bits) or 3 (unicode) # %C message charset: for a normal message, it will be gsm (coding=1), binary (coding=2) or UTF16-BE (coding=3). If the message was sucessfully recoded from unicode, it will be ISO-8859-1 # %u udh of incoming message I am not sure of how old this list is. Maybe -meanwhile- there are new parameters. For the rest: What happens if you lynx the same url from the same box. Is the host linux-01 defined in your /etc/hosts or otherwise accessible? Also: If the 9009 means a port number rather than a folder in your webspace, the first slash should be a colon. These options may not mean a solution. But it is what I am thinking of at the moment. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of B. van Breukelen Sent: woensdag 28 september 2005 21:54 To: users@kannel.org Subject: Kannel refuses to get-url Hello, I have Kannel setup to receive messages from the SMSC using CIMD2. The problem is I setup a service where an incoming message should get an http url but it never does and I do not receive any errors in the logfile. Can someone pont me to any errors in my conf file? Thanks in advance, Boudewijn ### kannel.conf ## # General configuration group = core admin-port = 13000 admin-password = ## status-password = ## log-file = /var/log/kannel/core.log log-level = 0 smsbox-port = 13002 store-file = /var/spool/kannel/sms.store # SMSC Nokia CIMD2 group = smsc smsc = cimd2 smsc-id = Infospace host = 194.165.79.73 port = smsc-username = ### smsc-password = ### # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13001 log-file = /var/log/kannel/smsbox.log log-level = 0 # SEND-SMS USERS group = sendsms-user username = sms_user password = # SMS SERVICE GET-URL EXAMPLE group = sms-service keyword = default catch-all = true get-url = http://linux-01/9009/index.php; assume-plain-text = true max-messages = 0 ### The logfile states the normal startup lines and on an incoming sms: 2005-09-28 21:39:23 [8] DEBUG: smscconn (CIMD2:194.165.79.73:9972:Infospace): new message received After that it restarts and that's it...
RE: Kannel refuses to get-url
Title: RE: Kannel refuses to get-url The logfile states the normal startup lines and on an incoming sms: 2005-09-28 21:39:23 [8] DEBUG: smscconn (CIMD2:194.165.79.73:9972:Infospace): new message received After that it restarts and that's it... It restarts ? restarts what ? the bearerbox ? If so, sounds like the incoming CIMD MO message is causing the bearerbox to core, which causes the smsbox to exit and explains why your URL is never invoked...