Re: USB Mobile phone + Kannel -- Help
There is a modem included in your mobile phone, in any mobile phone If your phone is connected to your computer then your computer is connected to the modem. Indunil Jayasooriya wrote: Hi, Thanks for your reply. I am still a newbie to Kannel as this is my first time. Why are you talking about a Modem. I have not attached any modem to my Kannel box. I only have attached a mobile phone by using its usb cable. I do not understand a lot in regarding to Kannel. I have set log-vel to 0. here are my logs. [EMAIL PROTECTED] ~]# /etc/init.d/kannel restart Shutting down kannel sms box:                             [ OK ] Shutting down kannel bearer box:                          [ OK ] Starting kannel bearer box:                               [ OK ] Starting kannel sms box:                                  [ OK ] [EMAIL PROTECTED] ~]# tail -f /var/log/kannel/bearerbox.log 2007-06-04 10:57:36 [2962] [7] DEBUG: sms_router: gwlist_len = 0 2007-06-04 10:57:36 [2962] [6] DEBUG: AT2[/dev/ttyUSB0]: device opened 2007-06-04 10:57:36 [2962] [5] INFO: Client connected from 127.0.0.1 2007-06-04 10:57:36 [2962] [5] DEBUG: Started thread 8 (gw/bb_boxc.c:function) 2007-06-04 10:57:36 [2962] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps to pid 2962. 2007-06-04 10:57:36 [2962] [8] DEBUG: Started thread 9 (gw/bb_boxc.c:boxc_sender) 2007-06-04 10:57:36 [2962] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) maps to pid 2962. 2007-06-04 10:57:37 [2962] [6] DEBUG: AT2[/dev/ttyUSB0]: device opened 2007-06-04 10:57:37 [2962] [6] INFO: AT2[/dev/ttyUSB0]: speed set to 115200 2007-06-04 10:57:37 [2962] [6] DEBUG: AT2[/dev/ttyUSB0]: -- ^M 2007-06-04 10:57:39 [2962] [6] DEBUG: AT2[/dev/ttyUSB0]: -- AT^M [EMAIL PROTECTED] ~]# tail -f /var/log/kannel/smsbox.log 2007-06-04 10:57:36 [2967] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2007-06-04 10:57:36 [2967] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 2967. 2007-06-04 10:57:36 [2967] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 2967. 2007-06-04 10:57:36 [2967] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 2967. 2007-06-04 10:57:36 [2967] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 2967. 2007-06-04 10:57:36 [2967] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 2967. 2007-06-04 10:57:36 [2967] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 2967. 2007-06-04 10:57:36 [2967] [0] INFO: Connected to bearerbox at localhost port 13001. 2007-06-04 10:57:36 [2967] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) 2007-06-04 10:57:36 [2967] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 2967. [EMAIL PROTECTED] ~]# tail -f /var/log/kannel/access.log 2007-06-03 04:02:27 Log begins 2007-06-04 10:28:49 Log begins 2007-06-04 10:32:42 Log begins 2007-06-04 10:34:21 Log begins 2007-06-04 10:34:31 Log begins 2007-06-04 10:50:52 Log begins 2007-06-04 10:54:05 Log begins 2007-06-04 10:57:25 Log begins 2007-06-04 10:57:31 Log begins 2007-06-04 10:57:36 Log begins Pls help me to solve this issue. On 6/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Can you capture your log results? Especially the bearerbox, and please set it to debug level (0). As my experience maybe your USB doesn't speak to your modem well.  Regards   Willy - Original Message - From: Indunil Jayasooriya To: users@kannel.org Sent: Saturday, June 02, 2007 12:16 PM Subject: USB Mobile phone + Kannel -- Help Hi, I attached a mobile phone (its name I-MATE SMART PHONE) to a box running CentOS 5 by using a usb cable which came with that phone. I installed Kannel RPM. Pls see below for installed RPMs. [EMAIL PROTECTED] ~]# rpm -qa |grep kannel kannel-1.4.1-2.rf kannel-debuginfo-1.4.1-2.rf kannel-devel-1.4.1-2.rf Now, it shows /dev/ttyUSB0 Here is my /etc/kannel.conf file [EMAIL PROTECTED] ~]# cat /etc/kannel.conf # # THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL # # It is run like this: # # 1% gw/bearerbox gw/smskannel.conf # 2% gw/smsbox gw/smskannel.conf # 3% test/fakesmsc -p 1 -H localhost -i 1 -m 100 "123 345 text nop" # # ..all 3 commands in separate shells (or screen sessions) # # For any modifications to this file, see Kannel User Guide # If that does not help, send email to users@kannel.org # #  Kalle Marjola May 2000 #  Changed for new fakesmsc version by Uoti Urpala Jan 2001 #  Added service and sendsms for HTTP SMSC by Kalle Marjola Mar 2001 # group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar status-password =
Re: USB Mobile phone + Kannel -- Help
Hi, Thanks for your reply. I am still a newbie to Kannel as this is my first time. Why are you talking about a Modem. I have not attached any modem to my Kannel box. I only have attached a mobile phone by using its usb cable. I do not understand a lot in regarding to Kannel. I have set log-vel to 0. here are my logs. [EMAIL PROTECTED] ~]# /etc/init.d/kannel restart Shutting down kannel sms box: [ OK ] Shutting down kannel bearer box: [ OK ] Starting kannel bearer box:[ OK ] Starting kannel sms box: [ OK ] [EMAIL PROTECTED] ~]# tail -f /var/log/kannel/bearerbox.log 2007-06-04 10:57:36 [2962] [7] DEBUG: sms_router: gwlist_len = 0 2007-06-04 10:57:36 [2962] [6] DEBUG: AT2[/dev/ttyUSB0]: device opened 2007-06-04 10:57:36 [2962] [5] INFO: Client connected from 127.0.0.1 2007-06-04 10:57:36 [2962] [5] DEBUG: Started thread 8 (gw/bb_boxc.c:function) 2007-06-04 10:57:36 [2962] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps to pid 2962. 2007-06-04 10:57:36 [2962] [8] DEBUG: Started thread 9 (gw/bb_boxc.c:boxc_sender) 2007-06-04 10:57:36 [2962] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) maps to pid 2962. 2007-06-04 10:57:37 [2962] [6] DEBUG: AT2[/dev/ttyUSB0]: device opened 2007-06-04 10:57:37 [2962] [6] INFO: AT2[/dev/ttyUSB0]: speed set to 115200 2007-06-04 10:57:37 [2962] [6] DEBUG: AT2[/dev/ttyUSB0]: -- ^M 2007-06-04 10:57:39 [2962] [6] DEBUG: AT2[/dev/ttyUSB0]: -- AT^M [EMAIL PROTECTED] ~]# tail -f /var/log/kannel/smsbox.log 2007-06-04 10:57:36 [2967] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2007-06-04 10:57:36 [2967] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 2967. 2007-06-04 10:57:36 [2967] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 2967. 2007-06-04 10:57:36 [2967] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 2967. 2007-06-04 10:57:36 [2967] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 2967. 2007-06-04 10:57:36 [2967] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 2967. 2007-06-04 10:57:36 [2967] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 2967. 2007-06-04 10:57:36 [2967] [0] INFO: Connected to bearerbox at localhost port 13001. 2007-06-04 10:57:36 [2967] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) 2007-06-04 10:57:36 [2967] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 2967. [EMAIL PROTECTED] ~]# tail -f /var/log/kannel/access.log 2007-06-03 04:02:27 Log begins 2007-06-04 10:28:49 Log begins 2007-06-04 10:32:42 Log begins 2007-06-04 10:34:21 Log begins 2007-06-04 10:34:31 Log begins 2007-06-04 10:50:52 Log begins 2007-06-04 10:54:05 Log begins 2007-06-04 10:57:25 Log begins 2007-06-04 10:57:31 Log begins 2007-06-04 10:57:36 Log begins Pls help me to solve this issue. On 6/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Can you capture your log results? Especially the bearerbox, and please set it to debug level (0). As my experience maybe your USB doesn't speak to your modem well. Regards Willy - Original Message - *From:* Indunil Jayasooriya [EMAIL PROTECTED] *To:* users@kannel.org *Sent:* Saturday, June 02, 2007 12:16 PM *Subject:* USB Mobile phone + Kannel -- Help Hi, I attached a mobile phone (its name I-MATE SMART PHONE) to a box running CentOS 5 by using a usb cable which came with that phone. I installed Kannel RPM. Pls see below for installed RPMs. [EMAIL PROTECTED] ~]# rpm -qa |grep kannel kannel-1.4.1-2.rf kannel-debuginfo-1.4.1-2.rf kannel-devel-1.4.1-2.rf Now, it shows /dev/ttyUSB0 Here is my /etc/kannel.conf file [EMAIL PROTECTED] ~]# cat /etc/kannel.conf # # THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL # # It is run like this: # # 1% gw/bearerbox gw/smskannel.conf # 2% gw/smsbox gw/smskannel.conf # 3% test/fakesmsc -p 1 -H localhost -i 1 -m 100 123 345 text nop # # ..all 3 commands in separate shells (or screen sessions) # # For any modifications to this file, see Kannel User Guide # If that does not help, send email to users@kannel.org # # Kalle Marjola May 2000 # Changed for new fakesmsc version by Uoti Urpala Jan 2001 # Added service and sendsms for HTTP SMSC by Kalle Marjola Mar 2001 # group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar status-password = foo #admin-deny-ip = #admin-allow-ip = #log-file = /var/log/kannel.log #log-level = 0 log-file = /var/log/kannel/bearerbox.log log-level = 0 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 unified-prefix = 00358,0 #access-log = access.log #store-file = kannel.store #ssl-certkey-file = mycertandprivkeyfile.pem # SMSC CONNECTIONS # #group = smsc #smsc = fake #smsc-id = FAKE #port = 1 #connect-allow-ip = 127.0.0.1 #NOKIA 7110 #group = smsc ###smsc = at2 #smsc = at #smsc-id = 7110 #modemtype=nokiaphone #device=/dev/ttyS0 #speed = 19200 #pin=1234 #include=/usr/local
RE: USB Mobile phone + Kannel -- Help
Are you sure to get modem answer if you are using minicom? Usb are not like common serial connection and usually are managed through hotplug process. Regards -Original Message- From: Indunil Jayasooriya[EMAIL PROTECTED] Sent: 02/06/07 07:16:09 To: users@kannel.orgusers@kannel.org Subject: USB Mobile phone + Kannel -- Help Hi, I attached a mobile phone (its name I-MATE SMART PHONE) to a box running CentOS 5 by using a usb cable which came with that phone. I installed Kannel RPM. Pls see below for installed RPMs. [EMAIL PROTECTED] ~]# rpm -qa |grep kannel kannel-1.4.1-2.rf kannel-debuginfo-1.4.1-2.rf kannel-devel-1.4.1-2.rf Now, it shows /dev/ttyUSB0 Here is my /etc/kannel.conf file [EMAIL PROTECTED] ~]# cat /etc/kannel.conf # # THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL # # It is run like this: # # 1% gw/bearerbox gw/smskannel.conf # 2% gw/smsbox gw/smskannel.conf # 3% test/fakesmsc -p 1 -H localhost -i 1 -m 100 123 345 text nop # # ..all 3 commands in separate shells (or screen sessions) # # For any modifications to this file, see Kannel User Guide # If that does not help, send email to users@kannel.org # # Kalle Marjola May 2000 # Changed for new fakesmsc version by Uoti Urpala Jan 2001 # Added service and sendsms for HTTP SMSC by Kalle Marjola Mar 2001 # group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar status-password = foo #admin-deny-ip = #admin-allow-ip = #log-file = /var/log/kannel.log #log-level = 0 log-file = /var/log/kannel/bearerbox.log log-level = 0 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 unified-prefix = 00358,0 #access-log = access.log #store-file = kannel.store #ssl-certkey-file = mycertandprivkeyfile.pem # SMSC CONNECTIONS # #group = smsc #smsc = fake #smsc-id = FAKE #port = 1 #connect-allow-ip = 127.0.0.1 #NOKIA 7110 #group = smsc ###smsc = at2 #smsc = at #smsc-id = 7110 #modemtype=nokiaphone #device=/dev/ttyS0 #speed = 19200 #pin=1234 #include=/usr/local/etc/modems.conf #GSM modem #This driver allows a GSM Modem or Phone to be connected to Kannel and work as a virtual SMSC group = smsc smsc = at modemtype = auto #device = /dev/ttyS0 device = /dev/ttyUSB0 speed = 115200 #speed = 9600 #pin = 2345 connect-allow-ip = 127.0.0.1 # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 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 = tester password = foobar #user-deny-ip = #user-allow-ip = # this sender is for Kannel relay testing (http_smsc) group = sendsms-user username = kannel password = rL4y user-deny-ip = *.*.*.* user-allow-ip = 127.0.0.1 # SERVICES group = sms-service keyword = nop text = You asked nothing and I did it! # this service is for Kannel relay testing, when this Kannel # works as relay gateway group = sms-service keyword = relay get-url = http://localhost:15130/sms?user=kannelpass=rL4yfrom=%pto=%Ptext=% r max-messages = 0 # there should be default always group = sms-service keyword = default text = No service specified Now, I want to send a sms to my friends. How can I do that? It has a web interface called sendsms.php. I copied it to /var/www/cgi-bin. Then I accessed as below. http://localhost/cgi-bin/sendsms.php I got the interface. So I entered my mobile number and a text message. Then , I clicked submit button. But, It went black. No responce. How can I solve this issue? -- Thank you Indunil Jayasooriya
Re: USB Mobile phone + Kannel -- Help
Can you capture your log results? Especially the bearerbox, and please set it to debug level (0). As my experience maybe your USB doesn't speak to your modem well. Regards Willy - Original Message - From: Indunil Jayasooriya To: users@kannel.org Sent: Saturday, June 02, 2007 12:16 PM Subject: USB Mobile phone + Kannel -- Help Hi, I attached a mobile phone (its name I-MATE SMART PHONE) to a box running CentOS 5 by using a usb cable which came with that phone. I installed Kannel RPM. Pls see below for installed RPMs. [EMAIL PROTECTED] ~]# rpm -qa |grep kannel kannel-1.4.1-2.rf kannel-debuginfo-1.4.1-2.rf kannel-devel-1.4.1-2.rf Now, it shows /dev/ttyUSB0 Here is my /etc/kannel.conf file [EMAIL PROTECTED] ~]# cat /etc/kannel.conf # # THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL # # It is run like this: # # 1% gw/bearerbox gw/smskannel.conf # 2% gw/smsbox gw/smskannel.conf # 3% test/fakesmsc -p 1 -H localhost -i 1 -m 100 123 345 text nop # # ..all 3 commands in separate shells (or screen sessions) # # For any modifications to this file, see Kannel User Guide # If that does not help, send email to users@kannel.org # # Kalle Marjola May 2000 # Changed for new fakesmsc version by Uoti Urpala Jan 2001 # Added service and sendsms for HTTP SMSC by Kalle Marjola Mar 2001 # group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar status-password = foo #admin-deny-ip = #admin-allow-ip = #log-file = /var/log/kannel.log #log-level = 0 log-file = /var/log/kannel/bearerbox.log log-level = 0 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 unified-prefix = 00358,0 #access-log = access.log #store-file = kannel.store #ssl-certkey-file = mycertandprivkeyfile.pem # SMSC CONNECTIONS # #group = smsc #smsc = fake #smsc-id = FAKE #port = 1 #connect-allow-ip = 127.0.0.1 #NOKIA 7110 #group = smsc ###smsc = at2 #smsc = at #smsc-id = 7110 #modemtype=nokiaphone #device=/dev/ttyS0 #speed = 19200 #pin=1234 #include=/usr/local/etc/modems.conf #GSM modem #This driver allows a GSM Modem or Phone to be connected to Kannel and work as a virtual SMSC group = smsc smsc = at modemtype = auto #device = /dev/ttyS0 device = /dev/ttyUSB0 speed = 115200 #speed = 9600 #pin = 2345 connect-allow-ip = 127.0.0.1 # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 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 = tester password = foobar #user-deny-ip = #user-allow-ip = # this sender is for Kannel relay testing (http_smsc) group = sendsms-user username = kannel password = rL4y user-deny-ip = *.*.*.* user-allow-ip = 127.0.0.1 # SERVICES group = sms-service keyword = nop text = You asked nothing and I did it! # this service is for Kannel relay testing, when this Kannel # works as relay gateway group = sms-service keyword = relay get-url = http://localhost:15130/sms?user=kannelpass=rL4yfrom=%pto=%Ptext=% r max-messages = 0 # there should be default always group = sms-service keyword = default text = No service specified Now, I want to send a sms to my friends. How can I do that? It has a web interface called sendsms.php. I copied it to /var/www/cgi-bin. Then I accessed as below. http://localhost/cgi-bin/sendsms.php I got the interface. So I entered my mobile number and a text message. Then , I clicked submit button. But, It went black. No responce. How can I solve this issue? -- Thank you Indunil Jayasooriya
USB Mobile phone + Kannel -- Help
Hi, I attached a mobile phone (its name I-MATE SMART PHONE) to a box running CentOS 5 by using a usb cable which came with that phone. I installed Kannel RPM. Pls see below for installed RPMs. [EMAIL PROTECTED] ~]# rpm -qa |grep kannel kannel-1.4.1-2.rf kannel-debuginfo-1.4.1-2.rf kannel-devel-1.4.1-2.rf Now, it shows /dev/ttyUSB0 Here is my /etc/kannel.conf file [EMAIL PROTECTED] ~]# cat /etc/kannel.conf # # THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL # # It is run like this: # # 1% gw/bearerbox gw/smskannel.conf # 2% gw/smsbox gw/smskannel.conf # 3% test/fakesmsc -p 1 -H localhost -i 1 -m 100 123 345 text nop # # ..all 3 commands in separate shells (or screen sessions) # # For any modifications to this file, see Kannel User Guide # If that does not help, send email to users@kannel.org # # Kalle Marjola May 2000 # Changed for new fakesmsc version by Uoti Urpala Jan 2001 # Added service and sendsms for HTTP SMSC by Kalle Marjola Mar 2001 # group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar status-password = foo #admin-deny-ip = #admin-allow-ip = #log-file = /var/log/kannel.log #log-level = 0 log-file = /var/log/kannel/bearerbox.log log-level = 0 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 unified-prefix = 00358,0 #access-log = access.log #store-file = kannel.store #ssl-certkey-file = mycertandprivkeyfile.pem # SMSC CONNECTIONS # #group = smsc #smsc = fake #smsc-id = FAKE #port = 1 #connect-allow-ip = 127.0.0.1 #NOKIA 7110 #group = smsc ###smsc = at2 #smsc = at #smsc-id = 7110 #modemtype=nokiaphone #device=/dev/ttyS0 #speed = 19200 #pin=1234 #include=/usr/local/etc/modems.conf #GSM modem #This driver allows a GSM Modem or Phone to be connected to Kannel and work as a virtual SMSC group = smsc smsc = at modemtype = auto #device = /dev/ttyS0 device = /dev/ttyUSB0 speed = 115200 #speed = 9600 #pin = 2345 connect-allow-ip = 127.0.0.1 # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 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 = tester password = foobar #user-deny-ip = #user-allow-ip = # this sender is for Kannel relay testing (http_smsc) group = sendsms-user username = kannel password = rL4y user-deny-ip = *.*.*.* user-allow-ip = 127.0.0.1 # SERVICES group = sms-service keyword = nop text = You asked nothing and I did it! # this service is for Kannel relay testing, when this Kannel # works as relay gateway group = sms-service keyword = relay get-url = http://localhost:15130/sms?user=kannelpass=rL4yfrom=%pto=%Ptext=% r max-messages = 0 # there should be default always group = sms-service keyword = default text = No service specified Now, I want to send a sms to my friends. How can I do that? It has a web interface called sendsms.php. I copied it to /var/www/cgi-bin. Then I accessed as below. http://localhost/cgi-bin/sendsms.php I got the interface. So I entered my mobile number and a text message. Then , I clicked submit button. But, It went black. No responce. How can I solve this issue? -- Thank you Indunil Jayasooriya