|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Unknown request
I have written my kannel configuration file, and when i try to send a sms it gives me a "Unknown Request" message. I think the problem is with my get-url. This is how the configuration file looks like:
#---------------------------------------------- #CORE CONFIGURATION #---------------------------------------------- group = core admin-port = 13000 smsbox-port = 13001 admin-password = admin status-password = admin admin-deny-ip = *.*.*.* admin-allow-ip = "127.0.0.1;192.168.*.*;196.24.0.5" log-file = logfile/smskannel.log log-level = 0 access-log = logfile/kannelaccess.log box-deny-ip = *.*.*.* box-allow-ip = "127.0.0.1;192.168.*.*;196.24.0.4" unified-prefix = "+266,09266;" store-file = logfile/kannel.store #dlr-storage = mysql #wpd-interface-name = * #ssl-server-cert-file = "cert.pem" #ssl-server-key-file = "key.pem" #ssl-certkey-file = "mycertandprivkeyfile.pe #--------------------------------------------- # SMSBOX SETUP #--------------------------------------------- group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 123 sendsms-url = "http://localhost:13013/cgi-bin/sendsms?" sendsms-chars = "0123456789+-" log-file = logfile/smsbox.log log-level = 0 access-log = logfile/smsaccess.log http-queue-delay = 15 http-request-retry = 4 http-proxy-port = 3128 http-proxy-host = 196.24.0.5i reply-couldnotfetch = "could not fetch" reply-couldnotrepresent = "could not represent" reply-requestfailed = "request failed" reply-emptymessage = "the message is empty" #---------------------------------------------- #SMSC CONFIGURATION #----------------------------------------------- group = smsc smsc = at modemtype = wavecom device = /dev/ttyS1 speed = 9600 pin = 1111 phone = +26658491286 sms-center = +266820088 my-number = +26658491286 smsc-id = smsrelay system-type = kannel smsc-username = root smsc-password = admin send-url = "http://localhost:13013/cgi-bin/sendsms?" connect-allow-ip = "127.0.0.1;192.168.*.*;196.24.0.5" port = 10001 group = smsc smsc = fake port = 10000 connect-allow-ip = *.*.*.* #---------------------------------------------- #The MODEM group configuration #---------------------------------------------- group = modems id = wavecom name = wavecom speed = 9600 no-pin = false init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" detect-string = "WAVECOM" detect-string2 = "MODEM" #---------------------------------------------- # SERVICES #---------------------------------------------- group = sms-service keyword = default get-url = "http://%S" post-url = "http://%S" #send-url = "http://localhost/cgi-bin/sendsms?to=%P&text=%r" #catch-all = true #strip-keyword = true faked-sender = +26658704044 concatenation = true accept-x-kannel-headers = true #text = "Enjoy the freedom of open source" #group = sms-service #keyword = nop #get-url = "http://localhost/smskannel.php" #group = sms-service #keyword = nop #text = "No service specified" #---------------------------------------------- # SEND-SMS USERS #---------------------------------------------- group = sendsms-user username = root password = admin name = nop user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1;192.168.*.*;196.24.0.5" max-messages = 2 concatenation = true |
|
#2
|
|||
|
|||
|
Authentication Problem in kannel
I have changed my script to this, and now the problem I get is an sms to this number "58704044" which is not the target receipient, which reads Authentication failure. What could I have done wrong now. When I send a message the browser writes sent!
#---------------------------------------------- #CORE CONFIGURATION #---------------------------------------------- group = core admin-port = 13000 smsbox-port = 13001 admin-password = admin status-password = admin admin-deny-ip = *.*.*.* admin-allow-ip = "127.0.0.1;192.168.*.*;196.24.0.5" log-file = logfile/smskannel.log log-level = 0 access-log = logfile/kannelaccess.log box-deny-ip = *.*.*.* box-allow-ip = "127.0.0.1;192.168.*.*;196.24.0.4" unified-prefix = "+266,09266;" store-file = logfile/kannel.store #dlr-storage = mysql #wpd-interface-name = * #ssl-server-cert-file = "cert.pem" #ssl-server-key-file = "key.pem" #ssl-certkey-file = "mycertandprivkeyfile.pe #--------------------------------------------- # SMSBOX SETUP #--------------------------------------------- group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = +26658704044 sendsms-url = "http://localhost:13013/cgi-bin/sendsms" sendsms-chars = "0123456789+-" log-file = logfile/smsbox.log log-level = 0 access-log = logfile/smsaccess.log #http-queue-delay = 15 #http-request-retry = 4 #http-proxy-port = 3128 #http-proxy-host = 196.24.0.5i reply-couldnotfetch = "could not retrieve" reply-couldnotrepresent = "could not represent" reply-requestfailed = "request failed" reply-emptymessage = "the message is empty" #---------------------------------------------- #SMSC CONFIGURATION #----------------------------------------------- group = smsc smsc = at modemtype = wavecom device = /dev/ttyS1 speed = 9600 pin = 1111 phone = +26658491286 sms-center = +266820088 my-number = +26658491286 group = smsc smsc = http smsc-id = smsrelay system-type = kannel smsc-username = root smsc-password = admin port = 14000 send-url = "http://localhost:14000/cgi-bin/sendsms" connect-allow-ip = "127.0.0.1;192.168.*.*;196.24.0.5" #---------------------------------------------- #The MODEM group configuration #---------------------------------------------- group = modems id = wavecom name = wavecom speed = 9600 no-pin = false init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" detect-string = "WAVECOM" detect-string2 = "MODEM" #---------------------------------------------- # SERVICES #---------------------------------------------- group = sms-service keyword = default get-url = "http://localhost:14000/cgi-bin/sendsms?from=%p&to=%P&text=%r" #post-url = "http://localhost:14000/cgi-bin/sendsms?username=root&password=admin&sender=%p&to=%P&text=%r" #send-url = "http://localhost/cgi-bin/sendsms?to=%P&text=%r" #catch-all = true #strip-keyword = true faked-sender = +26658704044 concatenation = true accept-x-kannel-headers = true #text = "Enjoy the freedom of open source" #group = sms-service #keyword = nop #get-url = "http://localhost/smskannel.php" #group = sms-service #keyword = nop #text = "No service specified" #---------------------------------------------- # SEND-SMS USERS #---------------------------------------------- group = sendsms-user username = root password = admin user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1;192.168.*.*;196.24.0.5" max-messages = 2 concatenation = true |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > Unknown request |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|