Just a sanity check: Conf you posted before did not have any max-messages. So 
you are in the clear :-)

Nikos
  ----- Original Message ----- 
  From: Pete Kelly 
  To: SG 
  Cc: users@kannel.org 
  Sent: Tuesday, October 13, 2009 2:01 PM
  Subject: Re: Problems getting messges to concatenate.


  Hi

  I've finally got it to work, it seems to be a combination of changing a few 
parameters in the core section, and adding in the max-messages option.

  I'm slightly confused as I had the max-messages option in before and it was 
not splitting - but I may be going mad.

  The working configuration looks like:

  group = core
  admin-port = 13000
  admin-password = bar
  admin-allow-ip = "127.0.0.1"
  smsbox-port = 13003
  log-file = "/var/log/kannel/bearerbox.log"
  access-log = "/var/log/kannel/access.log"
  sms-combine-concatenated-mo = true
  sms-combine-concatenated-mo-timeout = "1800"
  dlr-storage = internal
  sms-resend-retry = 10
  sms-resend-freq = 2

  group = smsbox
  bearerbox-host = localhost
  sendsms-port = 13020
  sendsms-url = "/cgi-bin/sendsms"
  sendsms-chars = "0123456789 +-" # "0123456789 +-" is default
  log-file = "/var/log/kannel/smsbox.log"
  #http-request-retry = 10
  #log-level = 0

  group = sendsms-user
  username = "test"
  password = "test"
  concatenation = true
  max-messages = 5

  group = smsc
  smsc = "http"
  smsc-id = "testsmsc"
  system-type = "generic"
  smsc-username = test
  smsc-password = test
  port = 13015
  send-url = 
"https://www.example.com/myaccount/sendsms.php?username=test&password=test&to=%p&text=%b&from=%P";
  status-success-regex = "success"
  status-permfail-regex = "failure"
  status-tempfail-regex = "retry"
  reconnect-delay = 120
  allowed-prefix-regex = ^44


  2009/10/13 SG <ositest...@yahoo.com>



          Pls send your the sample post URL.
          I think you need to use the bellow flag true in URL.


          &concatenation=true



          Sample URL looks like,


          
http://182.168.3.222:13013/cgi-bin/sendsms?username=tester&password=foobar&to=9999955555&text=Test%20Message%20&concatenation=%20true





          --- On Tue, 13/10/09, Pete Kelly <pke...@gmail.com> wrote:


            From: Pete Kelly <pke...@gmail.com>
            Subject: Problems getting messges to concatenate.
            To: users@kannel.org
            Date: Tuesday, 13 October, 2009, 3:46 AM



            Hi

            I am in the process of setting up Kannel so I can send SMS's from a
            web application. I am using the cgi-bin/sendsms interface to send a
            GET request into kannel, which kannel is then forwarding on to my 
http
            smsc.

            However Kannel is not concatenating the SMS's which I send in via 
the
            cgi-bin/sendsms call. When I send a long message in, the smsbox logs
            say:

            2009-10-13 11:35:50 [28313] [3] DEBUG: message length 208, sending 
1 messages

            I would expect a message of length 208 to be split into 2 messages.

            Furthermore, the message which is sent on to my http smsc contains
            only the first part of the SMS, the second part is lost somewhere
            within kannel.

            Do you have any advice as to how I can configure Kannel to split the
            message into more than one message, and send each one to the smsc?

            my kannel.conf is pasted below:

            group = core
            admin-port = 13000
            admin-password = bar
            admin-allow-ip = "127.0.0.1"
            smsbox-port = 13003
            log-file = "/var/log/kannel/bearerbox.log"
            access-log = "/var/log/kannel/access.log"
            dlr-storage = internal
            sms-resend-retry = 10
            sms-resend-freq = 2
            sms-combine-concatenated-mo = true

            group = smsbox
            bearerbox-host = localhost
            sendsms-port = 13020
            sendsms-url = "/cgi-bin/sendsms"
            sendsms-chars = "0123456789 +-" # "0123456789 +-" is default
            #mo-recode = true
            log-file = "/var/log/kannel/smsbox.log"
            http-request-retry = 10
            log-level = 0

            group = sendsms-user
            username = "test"
            password = "test"
            concatenation = true

            group = smsc
            smsc = "http"
            smsc-id = "testsmsc"
            system-type = generic
            smsc-username = ****
            smsc-password = ****
            port = 13015
            send-url = 
"https://www.example.com?username=test&password=test&to=%p&text=%b&from=%P";
            status-success-regex = "success"
            status-permfail-regex = "failure"
            status-tempfail-regex = "retry"
            reconnect-delay = 120
            allowed-prefix-regex = ^44

         



----------------------------------------------------------------------------
    Yahoo! India has a new look. Take a sneak peek.

Reply via email to