Hi everybody, I configured kannel, It can send sms, it's ok. but It doesn't receive any sms. my configuration is:
group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar #status-password = foo #admin-deny-ip = "" admin-allow-ip = "127.0.0.1" log-file = "/tmp/kannel-core.log" log-level = 0 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" #unified-prefix = "+358,00358,0;+,00" access-log = "/tmp/access.log" store-file = "/tmp/kannel.store" #ssl-server-cert-file = "cert.pem" #ssl-server-key-file = "key.pem" #ssl-certkey-file = "mycertandprivkeyfile.pem" dlr-storage = internal #--------------------------------------------- # SMSC CONNECTIONS group = smsc smsc = at smsc-id = irancell modemtype = auto device = /dev/ttyUSB1 log-file = "/tmp/kannel-smsc.log" log-level = 0 #sms-center = +989350001400 connect-allow-ip = 127.0.0.1 #--------------------------------------------- # SMSBOX SETUP # # Smsbox(es) do higher-level SMS handling after they have been received from # SMS centers by bearerbox, or before they are given to bearerbox for delivery group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 global-sender = 13013 mo-recode = true #sendsms-chars = "0123456789 +-" log-file = "/tmp/smsbox.log" log-level = 0 #access-log = "/tmp/access-smsbox.log" #--------------------------------------------- # SEND-SMS USERS # # These users are used when Kannel smsbox sendsms interface is used to # send PUSH sms messages, i.e. calling URL like # http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar...#&charset=utf-8&coding=2 group = sendsms-user username = tester password = foobar #user-deny-ip = "" #user-allow-ip = "" #--------------------------------------------- # SERVICES # # These are 'responses' to sms PULL messages, i.e. messages arriving from # handsets. The response is based on message content. Only one sms-service is # applied, using the first one to match. group = sms-service keyword = nop text = "You asked nothing and I did it!" #group = sms-service #keyword = nop #get-url = "http://localhost/sms.php?from=%p&body=%a" # There should be always a 'default' service. This service is used when no # other 'sms-service' is applied. #group = sms-service #keyword = default #text = "No service specified" group = sms-service keyword = default catch-all = yes max-messages = 3 get-url = "http://localhost/sms.php?from=%p&body=%a" #group = sms-service #keyword = complex #catch-all = yes #max-messages = 3 #get-url = "http://localhost/sms.php?from=%p&body=%a" #-------------------------------------------- # Modems # # # # group = modems id = generic name = "Generic Modem" #detect-string = "SIEMENS" detect-string = auto #enable-hwhs = "ATZ" #enable-hwhs = false init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" I've tested all commented sms-services but it doesn't work. my sms.php puts %p and %a in mysql db. What's wrong?
