Thank you Abel for reporting this.

Please, add it to the issue tracker at 
http://code.google.com/p/smslib/issues/list

KannelHTTPGateway (along with all other HTTP based gateways) can
currently only be used for outbound messages.
You can use the issue tracker to add a feature request for Kannel
inbound message support.

I remember customizing HttpServer to be able to receive inbound
messages but that was along time ago and I don't remember at which
point exactly did I stop and whether it is still compatible with the
current source code. If you are interested I can look back into the
code and/or send it to you to test and give me your feedback. After
testing it we can add it the current source code trunk. Please, let me
know if you interested.

- Bassam

On Apr 6, 6:46 pm, Name256 <[email protected]> wrote:
> Hello,
>
> I have been a user of smslib for about a year and especially smsserver
> since it has always enabled me to run many of sms services without a
> hitch (Thanks). I started using the kannel gateway about a week ago
> and noticed that everytime I send a message, the from parameter keeps
> getting changed to the recepient's number. I made some changes to the
> code and it has been working for me but I thought I should alert you
> so that you can have a look at it. (KannelHttpGateway.java at line
> 153)
>
> // if from is not null and an originator has been set this is where
> the code resets the from to the recepient //
>
>                 if (from != null)
>                 {
>                         request.add(new HttpHeader("from", 
> msg.getRecipient(), false));
>                 }
>
> Secondly, I have seen in the configuration that there is a property
> where I can configure whether this gateway is outbound or not. On that
> note, I was wondering whether an inbound configuration can be done and
> if so whether it will work right out of the box or whether I have to
> use other interfaces such as http or httpserver to handle incoming
> posts.
>
> Kind regards.
>
> Abel

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/smslib?hl=en.

Reply via email to