Hi, Peter,...
If I'm not mistaken, you try to fetch SMS coming to your accessnumber/
accesscode and then base on keyword (sms message) to send the reply to
the sender.
So, first of all, try to make sure that get-url set in sms-service is
a working http services. Try to test it command line or whatever tools
available to you. All your incomming message (MO) will arrive through
this get-url. If this URL did not answer, you won't be able to fetch
MO's.
In order to reply back, create a script that invoke sendsms-cgi to
send reply (MT message) to sender.
<snippet>
http://smsbox.host.name:13013/cgi-bin/sendsms?username=foo&password=bar&to=0123456&text=Hello+world
</snippet>
Put the script somewhere in your get-url http service (if you need to
reply synchronously) or triggered on other event (batch) if you want
to reply asynchronously.
Hope this could give a light to start digging.
--tjatur
On Jan 22, 2008, at 6:41 PM, Engel L wrote:
Hi Peter,
Yes I defined get-url in sms-service
group = sms-service
keyword = nmc
get-url = "http://10.10.6.42/nmc/test.txt
#get-url = " http://10.10.6.42/nmc/app.php?sa=%p&msg=%a"
max-messages = 3
catch-all = true
I am not sure why I need the 'to' parameter in my URL since all I
need from the SMSC is the message content and the sender of the
Message (So I can process the content and respond with the result to
the sender). What do you mean the URL is of the client or mine? The
person in charge of the SMSC (Provider's) told me they can route the
sms to me via HTTP (as a HTTP request). So that is the format of the
URL I expect them to use. The only information I need from them is
the sender of the message (a pull message) and the text (content), I
will respond straight to the sender with a response.
Hope that helps.
Kind Regards,
Engel Linus
On Jan 22, 2008 12:27 PM, Otandeka Peter <[EMAIL PROTECTED]>
wrote:
Hi Engel,
Did you define anything in sms-service(get-url)?
Also look at http relay in kannel userguide, it can help you alot
Is that URL for the client or yours?
I think your URL should be like 'http://localhost:13003/nmc/app.php?from=
<shortcode>&to=<phone_no>&msg=Test+message' .
We need more information from you so that we can be able to diagnose
your problem.
Cheers
Peter
----- Original Message -----
From: Engel L
To: [email protected]
Sent: Tuesday, January 22, 2008 11:57 AM
Subject: Re: Fwd: Need Help Configuring Kannel for SMS Pull
Hi,
I think the problem is that Kannel is looking for the wed document
in the wrong place. Is there a way to tell it where to start
looking? The document is currently in the Apache root (/var/www/),
I thought that is where Kannel would start looking but obviously I
was wrong.
Regards,
Engel Linus
On Jan 22, 2008 9:39 AM, Engel L <[EMAIL PROTECTED]> wrote:
Hi Guys,
I am still struggling with with Kannel pull messages. My provider's
SMSC guys are still working on routing sms's to my box. They seem to
be taking time with that so I am simulating that part by doing a
HTTP request via a web browser from another client as follows:
http://x.x.x.x:13003/nmc/app.php?sender=1234567&msg=Test+message
where x.x.x.x is my Kannel box IP address.
The Kannel smsbox logs show the following:
2008-01-22 09:22:38 [10403] [3] INFO: smsbox: Got HTTP request </nmc/
app.php> fr
om <10.10.32.34>
2008-01-22 09:22:38 [10403] [3] DEBUG: Status: 404 Answer: <Unknown
request.>
2008-01-22 09:22:38 [10403] [3] DEBUG: HTTP: Resetting HTTPClient
for `10.10.32.
34'.
Please explain why I am getting a 404 (unknown request) while the
file exists.
Regards,
Engel Linus
On Jan 18, 2008 12:49 PM, Mike Nwaogu <[EMAIL PROTECTED]>
wrote:
Hello Engel/Peter,
Below is a sample configuration.
this configuration will accept messages from the connectors and
route the message to the php script also stated in the configuration.
Now, to respond the php script will have to originate the message
using perhaps the http sending method.
group = smsc
smsc = smpp
smsc-id=sms2
host = 192.168.0.11
port = 9900
transceiver-mode = true
smsc-username = u53r
smsc-password = p455w07d
system-type = ""
address-range = ""
source-addr-ton = 2
source-addr-npi = 1
group = sendsms-user
username = usr
password = pwd
default-sender="WORD"
default-smsc
concatenation = true
group = sms-service
keyword = default
get-url = " http://localhost/path/to/app.php?SOURCEADDR=%p&DESTADDR=
%P&KEYWORD=%k&ID=%I&ORIGIN=%i&MESSAGE=%a"
max-messages = 1
catch-all=true
Regards,
Mike Nwaogu
Tel: 234_802_325_6437
Eml: [EMAIL PROTECTED]
----- Original Message ----
From: Engel L <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, January 18, 2008 8:33:50 AM
Subject: Fwd: Need Help Configuring Kannel for SMS Pull
---------- Forwarded message ----------
From: Engel L <[EMAIL PROTECTED]>
Date: Jan 18, 2008 8:41 AM
Subject: Re: Need Help Configuring Kannel for SMS Pull
To: Otandeka Simon Peter <[EMAIL PROTECTED]>
Hi Peter,
Your config file is almost similar to mine, except that I do not have
a receive-port. I read on the user guide if this is not set the port
parameter is assumed. Yes what I need now is a way for the SMSC to
route my SMS's to my Kannel server (SMS's meant to my Kannel box via a
short code the operators provided me). So yes, how can the SMSC talk
to Kannel (via SMPP or any other protocols Kannel makes provisions
for)?