Mobile Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreMobile Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 14th, 2006, 09:25 AM
motapa motapa is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2006
Posts: 8 motapa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 59 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old December 16th, 2006, 10:35 PM
motapa motapa is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2006
Posts: 8 motapa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 59 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreMobile Programming > Unknown request


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT