greetz to all folks out there ;), I'm starting with kannel but I experienced some problems. I try to compress the information to the main aspects.
WANT TO: - run kannel as sms-gateway, so that an SMS is answered by the local webserver and send back to the sender. I HAVE: - PII 233 running Linux-Mandrake 8.1 (secure level "medium", ssh, apache, mysql, php) - libXML2 in Version 2.4.3 - Siemens TC35 modem @ /dev/ttyS0 (found as "generic modem" by linuxconf) I DID: - install kannel as rpm for RedHat 7.0 (mandrake is redhat based..) - edited /etc/kannel/kannel.conf - then started in /usr/local/bin: bearerbox -v 1 /etc/kannel/kannel.conf AND smsbox -v 1 /etc/kannel/kannel.conf FILES: kannel.conf ######################################## group = core admin-port = 13000 admin-password = foobar smsbox-port = 13001 wdp-interface-name = "*" #log-file = "/var/www/kannel/kannel.log" #log-level = 0 box-deny-ip = "*.*.*.*" ## next line contains the ip of my computer, too box-allow-ip = "127.0.0.1;192.168.111.11" #admin-deny-ip = "" #admin-allow-ip = "" #access-log = "access.log" group = smsc smsc = at modemtype = siemens-tc35 device = /dev/ttyS0 pin = 1xxx #my-number = 0162177xxx sms-center = +491722270xxx group = smsbox bearerbox-host = localhost sendsms-port = 13002 global-sender = +491621774xxx #sendsms-chars = "0123456789 +-" log-file = "/var/www/html/kannel/smsbox.log" log-level = 0 #access-log = "access.log" group = sms-service keyword = nop text = "You asked nothing and I did it!" group = sms-service keyword = default text = "No service spesified" ## this is the function i want to establish :( #group = sms-service #keyword = price #get-url = http://localhost/kannel_html/price/%s.htm #max-messages = 2 #concatenation = true group = sendsms-user username = tester password = foobar #user-deny-ip = "" #user-allow-ip = "" ############################################# OUTPUTS: after starting bearerbox it says (and only if the modem is on!) 2002-05-02 04:12:58 [0] INFO: Kannel bearerbox II version 1.0.3 starting Command: ATE0 Command: AT+CPIN? Command: AT+CMGF=0 Command: AT+CNMI=1,2,0,0,0 2002-05-02 04:12:58 [0] INFO: AT SMSC successfully opened. 2002-05-02 04:12:58 [0] ERROR: Missing wapbox-port variable, cannot start WAP 2002-05-02 04:12:58 [0] INFO: MAIN: Start-up done, entering mainloop this seems to be correct to me. smsbox says 2002-05-02 04:34:02 [0] INFO: Service global sender set as '+491621774xxx' 2002-05-02 04:34:02 [0] INFO: Set up send sms service at port 13002 2002-05-02 04:34:02 [0] INFO: Connected to Bearer Box at localhost port 130001 ..what seems to be nice, too. QUESTIONS: a) ok, then I sent a http-push to test the gateway: http://sputnik:13013/cgi-bin/sendsms?username=tester&password=foobar&t o=01623306xxx&text=Hello+World I retreive a website containing "Sent", the logfile of the smsbox contains a log and even bearerbox is happy with one sent SMS. But I don't receive anything. My idea is that there is a problem in the communication between kannel and the modem. Can it depend on the settings?? b)second problem is, that when I want to start smsbox with this: ## this is the function i want to establish :( group = sms-service keyword = price get-url = http://localhost/kannel_html/price/%s.htm max-messages = 2 concatenation = true the smsbox says: 2002-05-02 04:40:03 [0] INFO: Service global sender set as '+491621774xxx' 2002-05-02 04:40:03 [0] INFO: Set up send sms service at port 13002 2002-05-02 04:40:03 [0] ERROR: No url, file or text spesified 2002-05-02 04:40:03 [0] ERROR: Couldn't create a URLTranslation. 2002-05-02 04:40:03 [0] PANIC: urltrans_add_cfg failed [root@sputnik root]# who did I do wrong?? perhaps I need other setup of the modem? or another config file? :( thnx for any hints - maybe these questions are newbie, but I have big probs with the documentation...although I know, that this prog is real cool... greetz Lars-Hendrik ----------------------------- lars-hendrik schneider http://www.trinityvision.de http://www.runetwork.de
