Hello Yared,
fakesms is not useful to send SMS to a terminal, just to test the
round trip:
fakesmsc --> bearerbox --> smsbox --> your_application
and back.
If you want to send an SMS to a phone, you should first connect to
an SMSC (which you haven't done yet, as I see in your config file) and
then use the HTTP interface, as follows:
http://yourkannelhost:13013/cgi-bin/sendsms?username=tester&password=foobar&from=<YourShortNumber>&to=<mobile_phone>&smsc=<your_smsc>&text=nop
Type this URL in your browser and see what happens (set kannel.log
loglevel to 0 too).
Best regards,
Rodrigo.
On 12/21/05, Yared <[EMAIL PROTECTED]> wrote:
> Thanks for every help you guys provided me.
>
> I installed the kannel gateway fine but I still could not able to send a
> message. Probably it is to do with the SMSC but I will include what '.conf'
> file I used (it is more or less 'smskannel.conf').
> I used the 'fakesmsc' to test it, i guess it works fine with that too. But
> when i want to send a message to the real user, what do i need to do.
>
> The '.conf' code I used and the instruction is included inside it ->
> instruction 1 to 3.
>
>
> # THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL
>
> #
>
> # It is run like this:
>
> #
>
> # 1% gw/bearerbox gw/smskannel.conf
>
> # 2% gw/smsbox gw/smskannel.conf
>
> # 3% test/fakesmsc -p 10000 -H localhost -i 1 -m 100 "123 345 text nop"
>
> #
>
> group = core
>
> admin-port = 13000
>
> smsbox-port = 13002
>
> admin-password = bar
>
> status-password = foo
>
> admin-deny-ip = "*.*.*.*"
>
> admin-allow-ip = "127.0.0.1"
>
> log-file = "/tmp/kannel.log"
>
> log-level = 1
>
> box-deny-ip = "*.*.*.*"
>
> box-allow-ip = "127.0.0.1"
>
> unified-prefix = "+44,0044,0;+,00"
>
> access-log = "/tmp/access.log"
>
> store-file = "/tmp/kannel.store"
>
> #ssl-server-cert-file = "cert.pem"
>
> #ssl-server-key-file = "key.pem"
>
> #ssl-certkey-file = "mycertandprivkeyfile.pem"
>
> # SMSC CONNECTIONS
>
> group = smsc
>
> smsc = fake
>
> smsc-id = FAKE
>
> port = 10000
>
> connect-allow-ip = 127.0.0.1
>
> # SMSBOX SETUP
>
> group = smsbox
>
> bearerbox-host = localhost
>
> sendsms-port = 13013
>
> global-sender = 13013
>
> sendsms-chars = "07958189305 +-"
>
> log-file = "/tmp/smsbox.log"
>
> log-level = 0
>
> access-log = "/tmp/access.log"
>
> # SEND-SMS USERS
>
> group = sendsms-user
>
> username = tester
>
> password = foobar
>
> #user-deny-ip = ""
>
> #user-allow-ip = ""
>
> # SERVICES
>
> group = sms-service
>
> keyword = nop
>
> text = "You asked nothing and I did it!"
>
> # there should be default always
>
> group = sms-service
>
> keyword = default
>
> text = "No service specified"
>
> # I need your help