Hello Alvaro, I am using bites of configs found on kannel's mailing list, without knowing exactly what I am doing. In the modem, I am using a personnal SIM card connected to a standard phone plan (voice, MMS, SMS, wap) I am merely trying to learn and hopefully get it working :-) How do you see I send sms using GPRS command ? Is there another way for me to do that with kannel ?
Bests, Eric Alvaro Cornejo a écrit : > Why are you using GPRS command to send sms? > > Did your gateway support sms over gprs??? > > Regards > > Alvaro > > On Tue, 2009-04-14 at 20:30 -0400, Monchanin Eric wrote: > >> Hello guys, >> >> I am struggling on a little project which goals is to use kannel with a >> USB Sierra Wireless modem MC 8775 (it's a 3 bands modem) >> >> Once plugged in, the modem appears in the lsusb as : >> Bus 001 Device 008: ID 1199:6812 Sierra Wireless, Inc. MC8775 Device >> >> >> My configuration file allows me to launch bearerbox and smsbox >> apparently correctly check config file included >> The log file looks like the file kannel.log >> >> >> So far so good I would say, my problem now is the following, >> >> >> When I want to send an SMS, using the cgi interface, >> >> http://localhost13013/cgi-bin/sendsms?smsc=sierra&username=tester&password=foobar&from=16xx7x4xx33&to=17yy4y2yy36&text=hello+from+3g+modem >> >> I get what looks like a successfull message >> 0: Accepted for delivery >> >> and in the smsbox.log file >> 2009-04-14 17:41:46 [12913] [2] DEBUG: HTTP: Creating HTTPClient for >> `192.168.1.4'. >> 2009-04-14 17:41:46 [12913] [2] DEBUG: HTTP: Created HTTPClient area >> 0x963c468. >> 2009-04-14 17:41:46 [12913] [3] INFO: smsbox: Got HTTP request >> </cgi-bin/sendsms> from <192.168.1.4> >> 2009-04-14 17:41:46 [12913] [3] INFO: sendsms used by <tester> >> 2009-04-14 17:41:46 [12913] [3] INFO: sendsms >> sender:<tester:16317046633> (192.168.1.4) to:<17yy4y2yy36> msg:<hello >> from 3g modem> >> 2009-04-14 17:41:46 [12913] [3] DEBUG: Stored UUID >> 1885da2f-0c90-4bb4-961c-66b8f49be6ca >> 2009-04-14 17:41:46 [12913] [3] DEBUG: message length 19, sending 1 messages >> 2009-04-14 17:41:46 [12913] [3] DEBUG: Status: 202 Answer: <Sent.> >> 2009-04-14 17:41:46 [12913] [3] DEBUG: Delayed reply - wait for bearerbox >> 2009-04-14 17:41:46 [12913] [0] DEBUG: Got ACK (0) of >> 1885da2f-0c90-4bb4-961c-66b8f49be6ca >> 2009-04-14 17:41:46 [12913] [0] DEBUG: HTTP: Resetting HTTPClient for >> `192.168.1.4'. >> >> >> >> Now, the message is never received on the phone, and in the "status" >> page, I see that 0 sms were sent, 0 sms were received, 0 sms are queued >> >> So, my question is the following, am I doing something wrong, is my >> config file correct, and what needs to be fixed in order to have an >> actual SMS sending. >> >> Thank you for your time reading my post, >> Hoping the config example, or whatever is right in it, might help >> someone in the future ;-) >> >> Eric >> plain text document attachment (kannel_gprs.conf) >> group = core >> admin-port = 13000 >> smsbox-port = 13001 >> admin-password = foobar >> status-password = foobar >> log-file = "/tmp/kannel.log" >> log-level = 0 >> box-deny-ip = "*.*.*.*" >> box-allow-ip = "*.*.*.*" >> access-log = "/tmp/access.log" >> >> >> group = smsc >> smsc = at >> smsc-id = sierra >> device = /dev/ttyUSB0 >> speed = 9600 >> modemtype = auto >> >> >> group = modems >> id = sierra >> name = "Sierra Wireless, Inc. MC8775 Device" >> detect-string = "Sierra Wireless, Inc." >> init-string = AT+CGDCONT=1,"IP","proxy" >> >> >> group = smsbox >> bearerbox-host = localhost >> sendsms-port = 13013 >> global-sender = 16xx7x4xx33 >> sendsms-chars = "0123456789 +-" >> log-file = "/tmp/smsbox.log" >> log-level = 0 >> access-log = "/tmp/access.log" >> >> >> group = sendsms-user >> username = tester >> password = foobar >> >> >> group = sms-service >> keyword = default >> get-url = http://localhost:13014/recv?from=%p&text=%b >> max-messages = 0 >> >> plain text document attachment (kannel.log) >> 2009-04-14 17:39:14 [12901] [0] INFO: Added logfile `/tmp/kannel.log' with >> level `0'. >> 2009-04-14 17:39:14 [12901] [0] INFO: Started access logfile >> `/tmp/access.log'. >> 2009-04-14 17:39:14 [12901] [0] INFO: HTTP: Opening server at port 13000. >> 2009-04-14 17:39:14 [12901] [0] DEBUG: Started thread 1 >> (gwlib/fdset.c:poller) >> 2009-04-14 17:39:14 [12901] [0] DEBUG: Started thread 2 >> (gwlib/http.c:server_thread) >> 2009-04-14 17:39:14 [12901] [0] DEBUG: Started thread 3 >> (gw/bb_http.c:httpadmin_run) >> 2009-04-14 17:39:14 [12901] [0] DEBUG: starting smsbox connection module >> 2009-04-14 17:39:14 [12901] [0] INFO: BOXC: 'smsbox-max-pending' not set, >> using default (100). >> 2009-04-14 17:39:14 [12901] [0] DEBUG: Started thread 4 >> (gw/bb_boxc.c:sms_to_smsboxes) >> 2009-04-14 17:39:14 [12901] [0] DEBUG: Started thread 5 >> (gw/bb_boxc.c:smsboxc_run) >> 2009-04-14 17:39:14 [12901] [0] INFO: Set SMS resend frequency to 60 seconds. >> 2009-04-14 17:39:14 [12901] [0] INFO: SMS resend retry set to unlimited. >> 2009-04-14 17:39:14 [12901] [0] DEBUG: smsbox MO concatenated message >> handling enabled >> 2009-04-14 17:39:14 [12901] [0] INFO: DLR rerouting for smsc id <sierra> >> disabled. >> 2009-04-14 17:39:14 [12901] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) >> maps to pid 12901. >> 2009-04-14 17:39:14 [12901] [4] DEBUG: Thread 4 >> (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 12901. >> 2009-04-14 17:39:14 [12901] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) >> maps to pid 12901. >> 2009-04-14 17:39:14 [12901] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) >> maps to pid 12901. >> 2009-04-14 17:39:14 [12901] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps >> to pid 12901. >> 2009-04-14 17:39:14 [12901] [0] INFO: AT2[sierra]: configuration doesn't >> show modemtype. will autodetect >> 2009-04-14 17:39:14 [12901] [0] DEBUG: Started thread 6 >> (gw/smsc/smsc_at.c:at2_device_thread) >> 2009-04-14 17:39:14 [12901] [6] DEBUG: Thread 6 >> (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 12901. >> 2009-04-14 17:39:14 [12901] [6] DEBUG: AT2[sierra]: detecting modem type >> 2009-04-14 17:39:14 [12901] [0] DEBUG: Started thread 7 >> (gw/bb_smscconn.c:sms_router) >> 2009-04-14 17:39:14 [12901] [6] INFO: AT2[sierra]: opening device >> 2009-04-14 17:39:14 [12901] [0] INFO: >> ---------------------------------------- >> 2009-04-14 17:39:14 [12901] [0] INFO: Kannel bearerbox II version >> cvs-20090407 starting >> 2009-04-14 17:39:14 [12901] [0] INFO: MAIN: Start-up done, entering mainloop >> 2009-04-14 17:39:14 [12901] [0] DEBUG: AT2[sierra]: start called >> 2009-04-14 17:39:14 [12901] [7] DEBUG: Thread 7 >> (gw/bb_smscconn.c:sms_router) maps to pid 12901. >> 2009-04-14 17:39:14 [12901] [6] DEBUG: AT2[sierra]: device opened. Telnet >> mode = 0 >> 2009-04-14 17:39:15 [12901] [6] DEBUG: AT2[sierra]: device opened >> 2009-04-14 17:39:15 [12901] [6] INFO: AT2[sierra]: speed set to 9600 >> 2009-04-14 17:39:15 [12901] [6] DEBUG: AT2[sierra]: --> ^M >> 2009-04-14 17:39:15 [12901] [5] INFO: Client connected from <127.0.0.1> >> 2009-04-14 17:39:15 [12901] [5] DEBUG: Started thread 8 >> (gw/bb_boxc.c:function) >> 2009-04-14 17:39:15 [12901] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps >> to pid 12901. >> 2009-04-14 17:39:15 [12901] [8] DEBUG: Started thread 9 >> (gw/bb_boxc.c:boxc_sender) >> 2009-04-14 17:39:15 [12901] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) >> maps to pid 12901. >> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: --> AT^M >> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: <-- OK >> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: --> AT&F^M >> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: <-- OK >> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: --> ATE0^M >> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: <-- OK >> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: --> ATI^M >> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: <-- Sierra Wireless, Inc. >> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: <-- MC8775 >> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: <-- APP1 >> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: <-- OK >> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: found string <Sierra >> Wireless, Inc.>, using modem definition <Sierra Wireless, Inc. MC8775 Device> >> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: --> AT+CSMS=?^M >> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: <-- OK >> 2009-04-14 17:39:17 [12901] [6] INFO: AT2[sierra]: Closing device >> 2009-04-14 17:39:17 [12901] [6] INFO: AT2[sierra]: opening device >> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: device opened. Telnet >> mode = 0 >> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: device opened >> 2009-04-14 17:39:17 [12901] [6] INFO: AT2[sierra]: Logging in >> 2009-04-14 17:39:18 [12901] [6] INFO: AT2[sierra]: init device >> 2009-04-14 17:39:18 [12901] [6] INFO: AT2[sierra]: speed set to 9600 >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> ATZ^M >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- OK >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> AT^M >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- OK >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> AT&F^M >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- OK >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> ATE0^M >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- OK >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> AT+IFC=2,2^M >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- OK >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> AT+CPIN?^M >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- +CPIN: READY >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- OK >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> AT+CMGF=0^M >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- OK >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> AT+CSMS=?^M >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- OK >> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> >> AT+CGDCONT=1,"IP","proxy"^M >> 2009-04-14 17:39:19 [12901] [6] DEBUG: AT2[sierra]: <-- OK >> 2009-04-14 17:39:19 [12901] [6] INFO: AT2[sierra]: AT SMSC successfully >> opened. >> > > >
