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<http://localhost/path/to/app.php?SOURCEADDR=%25p&DESTADDR=%25P&KEYWORD=%25k&ID=%25I&ORIGIN=%25i&MESSAGE=%25a>
> > "
> > 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)?
> >
> > On 1/17/08, Otandeka Simon Peter < [EMAIL PROTECTED]> wrote:
> > >
> > > Hi Engel,
> > >
> > > This is my SMSC group in Kannel.
> > >
> > > group = smsc
> > > smsc = smpp
> > > smsc-id = smsc1
> > > host = ***.****.***.**
> > > port = 5020
> > > transceiver-mode = false
> > > interface-version = 34
> > > receive-port = 5020
> > > system-type = ""
> > > smsc-username = "***"
> > > smsc-password = *****
> > > address-range = ""
> > > throughput = 20
> > > source-addr-ton = 1
> > > source-addr-npi = 1
> > > source-addr-autodetect = yes
> > > dest-addr-ton = 0
> > > dest-addr-npi = 0
> > > Now to better understand your question, are you asking for
> > configuration on
> > > the SMSC through SMPP so that it can talk to kannel.
> > >
> > > If you need that then I can gladly send you what to do.
> > >
> > > Regards
> > >
> > > Peter
> > >
> > >
> > >
> > >   ----- Original Message -----
> > >   From: Engel L
> > >   To: Otandeka Simon Peter
> > >   Sent: Thursday, January 17, 2008 8:00 PM
> > >   Subject: Re: Need Help Configuring Kannel for SMS Pull
> > >
> > >
> > >   Hi Peter,
> > >
> > >   I have configured the SMSC group and I can actually send messages
> > via
> > > Kannel. So the SMSC group configuration is in order. What I need to
> > know is
> > > how I can get Kannel to receive messages from the SMSC (a user would
> > send an
> > > sms to a number, this sms would get to the SMSC, how would the message
> > get
> > > from the SMSC to my Kannel gateway? What options do I have? SMPP/HTTP?
> > > Someone suggested HTTP (The SMSC would send an http request to my
> > Kannel
> > > box, which would also run a webserver to handle these requests. I
> > would have
> > > a php script to handle this and process the message (the message would
> > be in
> > > the URL from the SMSC, so php would be needed for processing the
> > message,
> > > and responding accordingly.) I am looking for a way to do this without
> > php,
> > > or any other scripting language, I need to know whether Kannel or SMPP
> > has
> > > provisioning for this (the gateway receiving the sms from the SMSC).
> > So my
> > > question is how can my Kannel box get the message directed to it from
> > the
> > > SMSC?
> > >
> > >   I hope I have explained my problem well enough, and Thanks for the
> > help. I
> > > would also appreciate your sample config file so I can look over it
> > and see
> > > where I am going wrong.
> > >
> > >   Regards,
> > >
> > >   Engel Linus
> > >
> > >
> > >
> > >   On 1/17/08, Otandeka Simon Peter < [EMAIL PROTECTED] > wrote:
> > >     Look at the kannel userguide it has where you specify the SMSC
> > group
> > > something like group = smsc. This is where u specify the IP address of
> > the
> > > SMSC and port so that kannel can talk to the SMSC after you can
> > configure
> > > the group=sms-service with the URL to recieve the message.
> > >
> > >     If you donot understand, I can send you sample config to help you
> > out.
> > >
> > >     Hope I have answered you.
> > >
> > >     Regards
> > >     Peter
> > >       ----- Original Message -----
> > >       From: Engel L
> > >       To: Mike Nwaogu ; [email protected]
> > >       Sent: Thursday, January 17, 2008 4:46 PM
> > >       Subject: Re: Need Help Configuring Kannel for SMS Pull
> > >
> > >
> > >
> > >       Sorry to bother you again but one thing i fail to understand is
> > the
> > > how get-url, post-url and exec parameters normally work. My
> > understanding is
> > > that this is what Kannel does (requests the url) on receipt of an sms,
> > and
> > > responds to the send, with the content (the result of the http
> > request), or
> > > for the case of exec, it responds with the result of the system call.
> > But
> > > what I need to know is, before Kannel responds to the message, how
> > does it
> > > receive it from the SMSC? Doesn't Kannel make a provision for this?
> > The
> > > reason I am asking is what I want to do is do some processing (an
> > external
> > > application) after receiving the SMS, then Kannel can respond to the
> > sender
> > > with the result of the processing. But before all that takes place
> > Kannel
> > > has to actually receive the message, any possible ways for the SMSC to
> > route
> > > the message to Kannel? I am thinking a php script or any other is an
> > extra
> > > overhead that there should be a way to avoid. So my question is does
> > > Kannel/SMPP make a provision for that (receiving messages from the
> > SMSC).
> > >
> > >
> > >       On Jan 17, 2008 2:56 PM, Mike Nwaogu <[EMAIL PROTECTED]>
> > wrote:
> > >
> > >         Yes Engel,
> > >         as long as they're sending in SMS via HTTP then a webserver is
> > what
> > > you'll need and a php script to handle the in coming requests.
> > >
> > >
> > >
> > >
> > >
> > >         Regards,
> > >         Mike Nwaogu
> > >         Tel: 234_802_325_6437
> > >         Eml: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >         ----- Original Message ----
> > >         From: Engel L < [EMAIL PROTECTED] >
> > >
> > >         To: Mike Nwaogu <[EMAIL PROTECTED]>; [email protected]
> > >         Sent: Thursday, January 17, 2008 9:39:17 AM
> > >         Subject: Re: Need Help Configuring Kannel for SMS Pull
> > >
> > >         Thanks again Mike, what I am getting from this is that I the
> > > receiving of the SMS is not Kannel related. I can set up a php script
> > > independent of Kannel with with I can process and extract the SMS from
> > the
> > > SMSC (in form of a URL). I was thinking Kannel handles this as well,
> > now
> > > what I am getting is i need to install a web server as well isn't that
> >
> > > correct?
> > >
> > >         Thanks Again Mike
> > >
> > >         Regards,
> > >         Engel Linus
> > >         CECIT
> > >
> > >
> > >         On Jan 17, 2008 10:44 AM, Mike Nwaogu <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > >           Ok, I'm sorry I miss understood at first.
> > >           You'll need to give them the URL to which they'll send the
> > sms
> > > messages.
> > >           Then you'll need to agree on the Message parameters eg:
> > >
> > >           the name of the parameter for senders' address
> > >           the name of the parameter for message and any other
> > parameter you
> > > may want from them.
> > >           That way they'll know to send you a query to your URL in the
> > > format that you'll be able to receive and process them.
> > >
> > >
> > >
> > >
> > >           Regards,
> > >           Mike Nwaogu
> > >           Tel: 234_802_325_6437
> > >           Eml: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >           ----- Original Message ----
> > >           From: Engel L <[EMAIL PROTECTED]>
> > >
> > >           To: Mike Nwaogu < [EMAIL PROTECTED]>
> > >           Sent: Thursday, January 17, 2008 8:35:20 AM
> > >           Subject: Re: Need Help Configuring Kannel for SMS Pull
> > >
> > >           Thank you Mike for the quick response. But I need to know
> > what
> > > needs to be done at the SMSC, what information do I need to give them
> > to
> > > route my messages to Kannel? They told me they can use HTTP and I am
> > > interested in that option since it seems to be the easiest. I would
> > imagine
> > > the get-url option is best suited for this task.
> > >
> > >           Regards
> > >           Engel Linus
> > >           CECIT
> > >
> > >
> > >
> > >           On Jan 16, 2008 11:18 PM, Mike Nwaogu <[EMAIL PROTECTED]
> > >
> > > wrote:
> > >
> > >             Hello Engel,
> > >             You can configure a group = sms-service and include an
> > exec
> > > parameter or geturl/posturl option in the group. eg:
> > >             note that you can only use either of them, exec, post-url
> > or
> > > get-url
> > >
> > >             group = sms-service
> > >             name = Incoming
> > >             keyword = default
> > >             exec = "/home/admin/doSMS.pl %p %P '%a'"
> > >             catch-all = true
> > >             #get-url = "
> > > http://localhost/service.php?phone=%p&text=%r&binary=%b&smsc=$i&time=%t
> >
> > <http://localhost/service.php?phone=%25p&text=%25r&binary=%25b&smsc=$i&time=%25t>
> > "
> > >             #post-url = "
> > > http://localhost/service.php?phone=%p&text=%r&binary=%b&smsc=$i&time=%t
> >
> > <http://localhost/service.php?phone=%25p&text=%25r&binary=%25b&smsc=$i&time=%25t>
> > "
> > >
> > >
> > >             This will ensure that all your messages are sent to this
> > > application from where you can determine the response.
> > >
> > >
> > >             Regards,
> > >             Mike Nwaogu
> > >             Tel: 234_802_325_6437
> > >             Eml: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >             ----- Original Message ----
> > >             From: Engel L < [EMAIL PROTECTED] >
> > >             To: [email protected]
> > >             Sent: Wednesday, January 16, 2008 5:19:47 PM
> > >             Subject: Need Help Configuring Kannel for SMS Pull
> > >
> > >
> > >
> > >             Hi,
> > >
> > >             I am experimenting with Kannel and I do have access to a
> > vendor
> > > SMSC. I have managed to send messages using Kannel (push sms) but a
> > major
> > > part of what I am trying to do is be able to receive messages from the
> > SMSC
> > > (A user would send an SMS to a certain number, and the SMSC would
> > forward
> > > the message to Kannel). I need to know what options I have to receive
> > the
> > > message to the gateway. From the SMSC's point of view, what options do
> > I
> > > have for forwarding the messages to Kannel (protocols-HTTP, SMPP ??).
> > I
> > > would prefer HTTP since it should be easier to develop around (And I
> > would
> > > imagine a majority of Kannel users have used HTTP before for Pull
> > Purposes).
> > >
> > >             Please Assist.
> > >
> > >             Regards,
> > >
> > >             Engel Linus
> > >             CECIT
> > >             Dar es Salaam
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --------------------------------------------------------------------
> > >             Be a better friend, newshound, and know-it-all with Yahoo!
> >
> > > Mobile. Try it now.
> > >
> > >
> > >
> > >
> > >
> > >
> > > ----------------------------------------------------------------------
> > >           Never miss a thing. Make Yahoo your homepage.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > ------------------------------------------------------------------------
> > >         Never miss a thing. Make Yahoo your homepage.
> > >
> > >
> > >
> > >
> >
> >
> >
> > ------------------------------
> > Looking for last minute shopping deals? Find them fast with Yahoo!
> > Search.<http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
> >
>
>

Reply via email to