Hi,

> 1. Command line message using Fakesmsc

Fakesmsc can connect only to your FAKE smsc port (10000). What command line do 
you use?

> 2. Kannel server gets the message and deliver through the SMPP connection to 
> the SMSC of the operator.

You mean without going through an sms-service? Then include in your FAKE 
configuration:

reroute-smsc-id = "OPERATOR"

Also service-type = "smpp"? I have not seen this one before. If you don't know 
what to use, either comment out, or use "VMA".

Lastly,

Configure an smsbox-route group.

Why don't you send your SMS through your smpp link (mobile)?

BR,
Nikos
  ----- Original Message ----- 
  From: Luis Caceres 
  To: [email protected] 
  Sent: Friday, July 24, 2009 2:14 AM
  Subject: Re: Help routing messages (newbie question)


  Hi Niko,
  Β 
  Thanks by your answer.
  Β 
  I greed with you that Fakesms is just fake, and cannot reach a mobile phone, 
but itΒ΄s useful to test SMS processing. That's exactly what IΒ΄m trying to do 
:-)
  Β 
  This is my intendedΒ  test flow:
  1. Command line message using Fakesmsc
  2. Kannel server gets the message and deliver through the SMPP connection to 
the SMSC of the operator.
  3. If all works fine, I should expect the message arriving to the mobile 
phone.
  Β 
  I didn't understand how to tell to kannel how to route this message....

  Any idea? Do you understand what IΒ΄m trying to do?
  Β 
  Thanks in advance!!
  Β 
  Β 
  Luis CΓ΅ceres



  2009/7/23 Nikos Balkanas <[email protected]>

    Hi,
    Β 
    Fakesmsc, is just that, a fake smsc. It will never reach your mobile, but 
you can use it to test sms-services, dlrsΒ & internal SMS processing through 
kannel. Very useful in testing, you can log in millions of SMS without incuring 
the costs. It will only reply to the fakesms client, which should be up and 
running when using fakesmsc. Fakesms client can initiate SMS and get replies 
(MO), or even accept pushed SMS (MT). If not running all SMS through fakesmsc 
will wait in queue.
    Β 
    global-sender is the mobile# reported as sender in pushed SMS.
    Β 
    You definitelyΒ needΒ smsbox-route
    Β 
    There you can limit smsc-id that should be forwarded to smsbox.
    Β 
    Also you can specify accepted-smsc and denied-smsc to fine-tune your 
sms-service. 
    Β 
    All these are explained in the manual.
    Β 
    As a rule, kannel will reply to the originating smsc. If you send an sms 
through your mobile (smpp smsc), the reply text you specify should reach your 
mobile through the same smsc.
    Β 
    BR,
    Nikos
      ----- Original Message ----- 
      From: Luis CΓ΅ceres 
      To: [email protected] 
      Sent: Thursday, July 23, 2009 4:38 PM
      Subject: Help routing messages (newbie question)


      Hi all,
      Β 
      Sorry byΒ this newbie question.
      IΞ„m jsut trying to start usung Kannel. I have one SMPP conecctio nwith a 
operator.
      I would like to teste thsi connection. To do this, IΞ„m trying to send 
messages to the smsbox using the fakesmsc.
      What I want the smsbox to do is, take this message, and deliver through 
the operator connection, so I can expect the message to arrive in my cell phone 
;-)
      Β 
      But I dont know "how to say" to the smsbox to do that!! :-(
      I dont know how to "activate" one or other SMSC.... maybe by the 
destination number? origination number?
      Soory, IΞ„m misising something...
      Β 
      Please ,somebody hel this poor child!!
      Β 
      Thanks in advance!!
      Β 
      Follow my smscbox.conf file:Β 
      #---------------------------------------------
      # CORE
      #
      # There is only one core group and it sets all basic settings
      # of the bearerbox (and system). You should take extra notes on
      # configuration variables like 'store-file' (or 'store-dir'),
      # 'admin-allow-ip' and 'access.log'

      group = core
      admin-port = 13000
      smsbox-port = 13001
      admin-password = letsrock
      #status-password = foo
      #admin-deny-ip = ""
      #admin-allow-ip = ""
      log-file = "/var/log/kannel/sms.log"
      #log-level = 0

      box-deny-ip = "*.*.*.*"
      box-allow-ip = "127.0.0.1"
      unified-prefix = "+5511,005511,0;+,00"
      access-log = "/var/log/accesskannel.log"
      store-file = "/etc/kannel/kannel.store"

      #ssl-server-cert-file = "cert.pem"
      #ssl-server-key-file = "key.pem"
      #ssl-certkey-file = "mycertandprivkeyfile.pem"
      #---------------------------------------------
      # SMSC CONNECTIONS
      #
      # SMSC connections are created in bearerbox and they handle SMSC specific
      # protocol and message relying. You need these to actually receive and 
send
      # messages to handset, but can use GSM modems as virtual SMSCs

      # This is a fake smsc connection, _only_ used to test the system and 
services.
      # It really cannot relay messages to actual handsets!
      group = smsc
      smsc = fake
      smsc-id = FAKE
      port = 10000
      connect-allow-ip = 127.0.0.1
      Β 
      group = smsc
      smsc = smpp
      smsc-id = OPERATOR
      host =Β  172.31.2.2
      port = 6402
      #receive-port = 700
      transceiver-mode = 1
      smsc-username = "TEST"
      smsc-password = "testpwd"
      system-type = "smpp"
      address-range = "79010000-79019999"
      enquire-link-interval = "600"

      #---------------------------------------------
      # SMSBOX SETUP
      #
      # Smsbox(es) do higher-level SMS handling after they have been received 
from
      # SMS centers by bearerbox, or before they are given to bearerbox for 
delivery
      group = smsbox
      bearerbox-host = 127.0.0.1
      sendsms-port = 13013
      global-sender = 13013
      #sendsms-chars = "0123456789 +-"
      #log-file = "/tmp/smsbox.log"
      #log-level = 0
      #access-log = "/tmp/access.log"

      # ROUTS
      #group = smsbox-route
      #smsbox-id = operator
      #smsc-id = operator
      #shortcode = "969"
      #---------------------------------------------
      # SEND-SMS USERS
      #
      # These users are used when Kannel smsbox sendsms interface is used to
      # send PUSH sms messages, i.e. calling URL like
      # 
http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar...
      Β 
      group = sendsms-user
      username = operator
      password = thepasswd
      #user-deny-ip = ""
      #user-allow-ip = ""
      Β 
      #---------------------------------------------
      # SERVICES
      #
      # These are 'responses' to sms PULL messages, i.e. messages arriving from
      # handsets. The response is based on message content. Only one 
sms-service is
      # applied, using the first one to match.
      group = sms-service
      keyword = test
      text = "You asked nothing and I did it!"
      Β 
      # There should be always a 'default' service. This service is used when no
      # other 'sms-service' is applied.
      group = sms-service
      keyword = default
      text = "Default - No service specified"
      Β 
      Β 
      Β 
      Β 

Reply via email to