Hi All,
Any reply , plz help me



techbrainless wrote:
> 
> Hi All,
> 
> I am using Nokia 6680 as gsm modem to configure it with the kannel(1.4.3)
> via bluetooth , 
> 
> I am trying to send an sms (by executing the command curl
> 'http://localhost:13013/cgi-bin/sendsms?username=siat&password=siat&from=test&to=%2b919894101912&text=Hello')
> to kannel then kannel should forward it to the phone which is connected to
> my machine but i failed to do that.
> 
> by the way 
> 1. I am using Ubuntu 10.10.
> 2. The connected phone inbox is empty
> 
> Your help would be highly appreciated 
> 
> Logs before executing the command
> 
> testuser@test-pc:~$ sudo smsbox -v 0
> /home/testuser/kannel/gateway-1.4.3/debian/kannel.conf
> [sudo] password for testuser: 
> 2011-12-07 23:36:15 [3457] [0] INFO: Debug_lvl = 0, log_file = <none>,
> log_lvl = 0
> 2011-12-07 23:36:15 [3457] [0] DEBUG: Kannel smsbox version `1.4.3'.
> Build `Nov 27 2011 22:10:33', compiler `4.4.5'.
> System Linux, release 2.6.35-30-generic, version #61-Ubuntu SMP Tue Oct 11
> 15:29:15 UTC 2011, machine i686.
> Hostname test-pc, IP 192.168.1.65.
> Libxml version 2.7.7.
> Using OpenSSL 0.9.8o 01 Jun 2010.
> Using native malloc.
> 
> 2011-12-07 23:36:15 [3457] [0] INFO: Starting to log to file
> /home/testuser/kannel/smsbox.log level 0
> 2011-12-07 23:36:15 [3457] [0] INFO: Added logfile
> `/home/testuser/kannel/smsbox.log' with level `0'.
> 2011-12-07 23:36:15 [3457] [0] INFO: Service global sender set as
> '+8613430916358'
> 2011-12-07 23:36:15 [3457] [0] INFO: Logging accesses to
> '/home/testuser/kannel/smsbox-access.log'.
> 2011-12-07 23:36:15 [3457] [0] INFO: Started access logfile
> `/home/testuser/kannel/smsbox-access.log'.
> 2011-12-07 23:36:15 [3457] [0] INFO: HTTP: Opening server at port 13013.
> 2011-12-07 23:36:15 [3457] [0] DEBUG: Started thread 1
> (gwlib/fdset.c:poller)
> 2011-12-07 23:36:15 [3457] [0] DEBUG: Started thread 2
> (gwlib/http.c:server_thread)
> 2011-12-07 23:36:15 [3457] [0] INFO: Set up send sms service at port 13013
> 2011-12-07 23:36:15 [3457] [0] DEBUG: Started thread 3
> (gw/smsbox.c:sendsms_thread)
> 2011-12-07 23:36:15 [3457] [0] DEBUG:
> ----------------------------------------------
> 2011-12-07 23:36:15 [3457] [0] DEBUG: Kannel smsbox version 1.4.3 starting
> 2011-12-07 23:36:15 [3457] [0] DEBUG:   dumping group (sendsms-user):
> 2011-12-07 23:36:15 [3457] [0] DEBUG:     <user-allow-ip> = <127.0.0.1>
> 2011-12-07 23:36:15 [3457] [0] DEBUG:     <user-deny-ip> = <*.*.*.*>
> 2011-12-07 23:36:15 [3457] [0] DEBUG:     <group> = <sendsms-user>
> 2011-12-07 23:36:15 [3457] [0] DEBUG:     <username> = <siat>
> 2011-12-07 23:36:15 [3457] [0] DEBUG:     <password> = <siat>
> 2011-12-07 23:36:15 [3457] [0] DEBUG: Started thread 4
> (gw/smsbox.c:obey_request_thread)
> 2011-12-07 23:36:15 [3457] [0] DEBUG: Started thread 5
> (gw/smsbox.c:url_result_thread)
> 2011-12-07 23:36:15 [3457] [0] DEBUG: Started thread 6
> (gw/smsbox.c:http_queue_thread)
> 2011-12-07 23:36:15 [3457] [0] INFO: Connected to bearerbox at localhost
> port 13003.
> 2011-12-07 23:36:15 [3457] [0] DEBUG: Started thread 7
> (gw/heartbeat.c:heartbeat_thread)
> 2011-12-07 23:36:15 [3457] [2] DEBUG: Thread 2
> (gwlib/http.c:server_thread) maps to pid 3457.
> 2011-12-07 23:36:15 [3457] [3] DEBUG: Thread 3
> (gw/smsbox.c:sendsms_thread) maps to pid 3457.
> 2011-12-07 23:36:15 [3457] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
> to pid 3457.
> 2011-12-07 23:36:15 [3457] [4] DEBUG: Thread 4
> (gw/smsbox.c:obey_request_thread) maps to pid 3457.
> 2011-12-07 23:36:15 [3457] [5] DEBUG: Thread 5
> (gw/smsbox.c:url_result_thread) maps to pid 3457.
> 2011-12-07 23:36:15 [3457] [6] DEBUG: Thread 6
> (gw/smsbox.c:http_queue_thread) maps to pid 3457.
> 2011-12-07 23:36:15 [3457] [7] DEBUG: Thread 7
> (gw/heartbeat.c:heartbeat_thread) maps to pid 3457.
> 
> 
> 
> 
> testuser@test-pc:~$ sudo bearerbox -v 0
> /home/testuser/kannel/gateway-1.4.3/debian/kannel.conf 
> 2011-12-07 23:18:04 [3167] [0] INFO: Debug_lvl = 0, log_file = <none>,
> log_lvl = 0
> 2011-12-07 23:18:04 [3167] [0] WARNING: DLR: using default 'internal' for
> storage type.
> 2011-12-07 23:18:04 [3167] [0] INFO: DLR using storage type: internal
> 2011-12-07 23:18:04 [3167] [0] DEBUG: Kannel bearerbox version `1.4.3'.
> Build `Nov 27 2011 22:10:33', compiler `4.4.5'.
> System Linux, release 2.6.35-30-generic, version #61-Ubuntu SMP Tue Oct 11
> 15:29:15 UTC 2011, machine i686.
> Hostname test-pc, IP 192.168.1.65.
> Libxml version 2.7.7.
> Using OpenSSL 0.9.8o 01 Jun 2010.
> Using native malloc.
> 
> 2011-12-07 23:18:04 [3167] [0] INFO: Added logfile
> `/home/testuser/kannel/kannel.log' with level `1'.
> 2011-12-07 23:18:04 [3167] [0] INFO: Started access logfile
> `/home/testuser/kannel/kannel.access'.
> 2011-12-07 23:18:04 [3167] [0] INFO: HTTP: Opening server at port 13000.
> 2011-12-07 23:18:04 [3167] [0] DEBUG: Started thread 1
> (gwlib/fdset.c:poller)
> 2011-12-07 23:18:04 [3167] [0] DEBUG: Started thread 2
> (gwlib/http.c:server_thread)
> 2011-12-07 23:18:04 [3167] [0] DEBUG: Started thread 3
> (gw/bb_http.c:httpadmin_run)
> 2011-12-07 23:18:04 [3167] [0] DEBUG: starting smsbox connection module
> 2011-12-07 23:18:04 [3167] [0] INFO: BOXC: 'smsbox-max-pending' not set,
> using default (100).
> 2011-12-07 23:18:04 [3167] [0] DEBUG: Started thread 4
> (gw/bb_boxc.c:sms_to_smsboxes)
> 2011-12-07 23:18:04 [3167] [0] DEBUG: Started thread 5
> (gw/bb_boxc.c:smsboxc_run)
> 2011-12-07 23:18:04 [3167] [0] INFO: Set SMS resend frequency to 60
> seconds.
> 2011-12-07 23:18:04 [3167] [0] INFO: SMS resend retry set to unlimited.
> 2011-12-07 23:18:04 [3167] [0] DEBUG: smsbox MO concatenated message
> handling enabled
> 2011-12-07 23:18:04 [3167] [0] INFO: DLR rerouting for smsc id <(null)>
> disabled.
> 2011-12-07 23:18:04 [3167] [0] INFO: AT2[/dev/rfcomm0]: configuration
> shows modemtype <nokiaphone>
> 2011-12-07 23:18:04 [3167] [0] DEBUG: AT2[/dev/rfcomm0]: Reading modem
> definitions from </home/testuser/kannel/gateway-1.4.3/debian/kannel.conf>
> 2011-12-07 23:18:04 [3167] [0] DEBUG: AT2[/dev/rfcomm0]: Found <1> modems
> in config
> 2011-12-07 23:18:04 [3167] [0] INFO: AT2[/dev/rfcomm0]: read modem
> definition for <Nokia 6680>
> 2011-12-07 23:18:04 [3167] [0] DEBUG: Started thread 6
> (gw/smsc/smsc_at.c:at2_device_thread)
> 2011-12-07 23:18:04 [3167] [0] DEBUG: Started thread 7
> (gw/bb_smscconn.c:sms_router)
> 2011-12-07 23:18:04 [3167] [0] INFO:
> ----------------------------------------
> 2011-12-07 23:18:04 [3167] [0] INFO: Kannel bearerbox II version 1.4.3
> starting
> 2011-12-07 23:18:04 [3167] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
> to pid 3167.
> 2011-12-07 23:18:04 [3167] [2] DEBUG: Thread 2
> (gwlib/http.c:server_thread) maps to pid 3167.
> 2011-12-07 23:18:04 [3167] [3] DEBUG: Thread 3
> (gw/bb_http.c:httpadmin_run) maps to pid 3167.
> 2011-12-07 23:18:04 [3167] [4] DEBUG: Thread 4
> (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 3167.
> 2011-12-07 23:18:04 [3167] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run)
> maps to pid 3167.
> 2011-12-07 23:18:04 [3167] [0] INFO: MAIN: Start-up done, entering
> mainloop
> 2011-12-07 23:18:04 [3167] [0] DEBUG: AT2[/dev/rfcomm0]: start called
> 2011-12-07 23:18:04 [3167] [6] DEBUG: Thread 6
> (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 3167.
> 2011-12-07 23:18:04 [3167] [6] INFO: AT2[/dev/rfcomm0]: opening device
> 2011-12-07 23:18:04 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: device opened.
> Telnet mode = 0
> 2011-12-07 23:18:04 [3167] [7] DEBUG: Thread 7
> (gw/bb_smscconn.c:sms_router) maps to pid 3167.
> 2011-12-07 23:18:05 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: device opened
> 2011-12-07 23:18:05 [3167] [6] INFO: AT2[/dev/rfcomm0]: Logging in
> 2011-12-07 23:18:05 [3167] [6] INFO: AT2[/dev/rfcomm0]: init device
> 2011-12-07 23:18:05 [3167] [6] INFO: AT2[/dev/rfcomm0]: speed set to 19200
> 2011-12-07 23:18:05 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: --> ATZ^M
> 2011-12-07 23:18:05 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- ATZ
> 2011-12-07 23:18:05 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
> 2011-12-07 23:18:05 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: --> AT^M
> 2011-12-07 23:18:05 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- AT
> 2011-12-07 23:18:05 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
> 2011-12-07 23:18:05 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: --> AT&F^M
> 2011-12-07 23:18:05 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- AT&F
> 2011-12-07 23:18:05 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
> 2011-12-07 23:18:05 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: --> ATE0^M
> 2011-12-07 23:18:05 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- ATE0
> 2011-12-07 23:18:05 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
> 2011-12-07 23:18:05 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: --> AT+IFC=2,2^M
> 2011-12-07 23:18:05 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
> 2011-12-07 23:18:05 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: --> AT+CPIN?^M
> 2011-12-07 23:18:06 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- +CPIN: READY
> 2011-12-07 23:18:06 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
> 2011-12-07 23:18:06 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: --> AT+CMGF=0^M
> 2011-12-07 23:18:06 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
> 2011-12-07 23:18:06 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: --> AT+CSMS=?^M
> 2011-12-07 23:18:06 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- +CSMS: (0)
> 2011-12-07 23:18:06 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
> 2011-12-07 23:18:06 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: -->
> ATZ+CNMI=1,2,0,1,0;+CMEE=1^M
> 2011-12-07 23:18:06 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
> 2011-12-07 23:18:06 [3167] [6] INFO: AT2[/dev/rfcomm0]: AT SMSC
> successfully opened.
> 2011-12-07 23:36:15 [3167] [5] INFO: Client connected from <127.0.0.1> 
> 2011-12-07 23:36:15 [3167] [5] DEBUG: Started thread 8
> (gw/bb_boxc.c:function)
> 2011-12-07 23:36:15 [3167] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function)
> maps to pid 3167.
> 2011-12-07 23:36:15 [3167] [8] DEBUG: Started thread 9
> (gw/bb_boxc.c:boxc_sender)
> 2011-12-07 23:36:15 [3167] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender)
> maps to pid 3167.
> 
> 
> 
> after executing the command 
> $curl
> 'http://localhost:13013/cgi-bin/sendsms?username=siat&password=siat&from=test&to=%2b919894101912&text=Hello'
> 0: Accepted for delivery
> 
> 
> Logs after exeuting the above command 
> 
> 
> kannel logs
> 2011-12-07 23:37:49 [3167] [8] DEBUG: boxc_receiver: sms received
> 2011-12-07 23:37:49 [3167] [8] DEBUG: send_msg: sending msg to box:
> <127.0.0.1>
> 2011-12-07 23:37:50 [3167] [6] DEBUG: AT2[/dev/rfcomm0]:
> TP-Validity-Period: 24.0 hours
> 2011-12-07 23:37:50 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: --> AT+CMGS=19^M
> 2011-12-07 23:37:50 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- AT+CMGS=19
> 2011-12-07 23:37:50 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- >
> 2011-12-07 23:37:50 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: send command
> status: 1
> 2011-12-07 23:37:50 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: -->
> 0011000C9169773363
> 2011-12-07 23:37:50 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: -->
> 68280000A705C8329B
> 2011-12-07 23:37:50 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: --> FD06
> 2011-12-07 23:38:00 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- >
> 0011000C916977336368280000A705C8329BFD06
> 2011-12-07 23:38:00 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: <-- +CMS ERROR:
> 500
> 2011-12-07 23:38:00 [3167] [6] ERROR: AT2[/dev/rfcomm0]: CMS ERROR: +CMS
> ERROR: 500
> 2011-12-07 23:38:00 [3167] [6] ERROR: AT2[/dev/rfcomm0]: CMS ERROR:
> Unknown error. -> maybe Sim storage is full? I'll have a look at it. (500)
> 2011-12-07 23:38:00 [3167] [6] DEBUG: AT2[/dev/rfcomm0]: send command
> status: 1
> 2011-12-07 23:38:00 [3167] [7] DEBUG: sms_router: handling message
> (0x9f794f0 vs 0x9f794f0)
> 2011-12-07 23:38:00 [3167] [7] DEBUG: re-queing SMS not-yet-to-be resent
> 2011-12-07 23:38:00 [3167] [7] DEBUG: sms_router: handling message
> (0x9f794f0 vs 0x9f794f0)
> 2011-12-07 23:38:00 [3167] [7] DEBUG: re-queing SMS not-yet-to-be resent
> 2011-12-07 23:38:00 [3167] [7] DEBUG: sms_router: time to sleep 30.00
> secs.
> 2011-12-07 23:38:00 [3167] [7] DEBUG: sms_router: gwlist_len = 1
> 2011-12-07 23:38:00 [3167] [7] DEBUG: sms_router: handling message
> (0x9f794f0 vs 0x9f794f0)
> 2011-12-07 23:38:00 [3167] [7] DEBUG: re-queing SMS not-yet-to-be resent
> 2011-12-07 23:38:00 [3167] [7] DEBUG: sms_router: handling message
> (0x9f794f0 vs 0x9f794f0)
> 2011-12-07 23:38:00 [3167] [7] DEBUG: re-queing SMS not-yet-to-be resent
> 2011-12-07 23:38:00 [3167] [7] DEBUG: sms_router: time to sleep 30.00
> secs.
> 
> 
> 
> smsbox logs
> 2011-12-07 23:37:49 [3457] [2] DEBUG: HTTP: Creating HTTPClient for
> `127.0.0.1'.
> 2011-12-07 23:37:49 [3457] [2] DEBUG: HTTP: Created HTTPClient area
> 0x96a3e98.
> 2011-12-07 23:37:49 [3457] [3] INFO: smsbox: Got HTTP request
> </cgi-bin/sendsms> from <127.0.0.1>
> 2011-12-07 23:37:49 [3457] [3] INFO: sendsms used by <siat>
> 2011-12-07 23:37:49 [3457] [3] INFO: sendsms sender:<siat:test>
> (127.0.0.1) to:<+919894101912> msg:<Hello>
> 2011-12-07 23:37:49 [3457] [3] DEBUG: Stored UUID
> 5311f38a-f3dd-4455-8631-088ffe177bfa
> 2011-12-07 23:37:49 [3457] [3] DEBUG: message length 5, sending 1 messages
> 2011-12-07 23:37:49 [3457] [3] DEBUG: Status: 202 Answer: <Sent.>
> 2011-12-07 23:37:49 [3457] [3] DEBUG: Delayed reply - wait for bearerbox
> 2011-12-07 23:37:49 [3457] [0] DEBUG: Got ACK (0) of
> 5311f38a-f3dd-4455-8631-088ffe177bfa
> 2011-12-07 23:37:49 [3457] [0] DEBUG: HTTP: Resetting HTTPClient for
> `127.0.0.1'.
> 
> 
> 
> 
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Kannel-can-not-send-sms-tp32930548p33012244.html
Sent from the Kannel - User mailing list archive at Nabble.com.


Reply via email to