:-) awesome

On Wed, Oct 19, 2011 at 1:51 AM, Eugene Ohu <[email protected]> wrote:

> Hi all,
>
> I think we found a solution to this.  I post it here in case it will be
> helpful to someone else in future.
>
> There was a missing parameter in the Kannel configuration.
>
> Somebody I spoke to talked about increasing the "Windows size" which led
> the developer working with me  to check further and in this post:
> http://www.nowsms.com/smpp-async-mode  he found this discussion where
> people were discussing  why most smscs don't hit above 20mps or on average
> 10.
>
> That led the developer to look more closely at  the parameter
> "max-submit-requests" which seems to default to 10.  It seems to set the max
> limit of messages one can sent before getting a reply.  Increasing it has
> given us 25 mps and above.
>
> All's well now.
>
> Eugene
>
> PS. Thanks to Otandeka Simon Peter, Victor Miclovich who helped point the
> way and my patient developer Thomas Mapesa
>
>
> On 14 October 2011 16:23, Eugene Ohu <[email protected]> wrote:
>
>> Hello,
>>
>> Thanks for your help.
>>
>> First my config file:
>>
>> #
>> # CONFIGURATION FOR SMS KANNEL
>> #
>> #---------------------------------------------
>> # CORE
>> #
>>
>> group = core
>> admin-port = 13000
>> smsbox-port = 13001
>> admin-password = trunkkannel
>> #status-password = foo
>> admin-deny-ip = "*.*.*.*"
>> admin-allow-ip = "127.0.0.1"
>> log-file = "logs/kc-13000.log"
>> log-level = 2
>> box-deny-ip = "*.*.*.*"
>> box-allow-ip = "127.0.0.1"
>> access-log = "logs/kc-13000-access.log"
>> dlr-storage = internal
>>
>> #---------------------------------------------
>> # SMSC CONNECTIONS
>> #
>> #--------- RECEIVING SMSC ---------
>> #All incoming traffic is routed to apps through these
>> #Multiple instances of the same connection
>>
>> group = smsc
>> smsc = http
>> system-type = generic
>> smsc-id = rhttp1
>> port = 13015
>> send-url = "
>> http://localhost/fastlogger.php?usr=%n&from=%P&to=%p&text=%a&smsc=%i&dlrmask=%d&smsid=%I
>> "
>> status-success-regex = "OK"
>> status-permfail-regex = "failure"
>> status-tempfail-regex = "retry later"
>> log-file = "logs/smsc-rhttp-1.log"
>> log-level = 2
>> reroute-dlr = true
>> denied-smsc-id = ""
>>
>> #--------- SENDING SMSCs ---------
>>
>> #
>> [removed]
>>
>> #---------------------------------------------
>> # 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
>> smsbox-id = bsend13
>> #sendsms-interface = 127.0.0.1
>> sendsms-port = 13013
>> sendsms-url = "/sendsms"
>> sms-length = 160
>> log-file = "logs/sb-13000.log"
>> log-level = 2
>>
>> #
>> #Inbound routing - mainly DLRs
>> #
>>
>> #group = smsbox-route
>> #smsbox-id = ""
>> #smsc-id = ""
>>
>> #
>> #---------------------------------------------
>> # 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.
>> ..
>>
>> #Default user
>> group = sendsms-user
>> username = defuser
>> password = tester
>> default-smsc = rhttp1
>> user-deny-ip = "*.*.*.*"
>> user-allow-ip = "127.0.0.1"
>>
>> #group = sendsms-user
>> #username = user
>> #password = pass
>>
>> #---------------------------------------------
>> # 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.
>> #Can accept the following variables:
>> #user,pass,from=%p,to=%P,text=%r,smsc(smsc id of
>> origin)=%i,dlr-mask[dlrvalue=%d],dlr-url,[account eg
>> usrname:passwd?]=%o
>> #=>OTHERS:
>> internalSMSID=%I,metadata=%D,dlrreply=%A,foreignmid4dlr=%F,usr/srvcname=%n
>>
>> group = sms-service
>> keyword = default
>> catch-all = true
>> get-url = "
>> http://localhost/fastlogger.php?usr=%n&from=%p&to=%P&text=%a&smsc=%i&dlrmask=%d&smsid=%I
>> "
>> max-messages = 0
>>
>> #---------------------------------------------
>> # DLRs to DB
>> #
>> # These are delivery receipts for messages sent.
>>
>> #group = mysql-connection
>> #id = mydlr
>> #host = localhost
>> #username = kanneluser
>> #password = kanneluser
>> #database = kannel_dlr
>> #max-connections = 1
>>
>> #group = dlr-db
>> #id = mydlr
>> #table = dlr
>> #field-smsc = smsc
>> #field-timestamp = timereceived
>> #field-destination = destination
>> #field-source = source
>> #field-service = service
>> #field-url = arrivalurl
>> #field-mask = mask
>> #field-status = status
>> #field-boxc-id = boxc_id
>>
>>
>> Here are some of the logs.
>>
>> Bearerbox logs:
>>
>> 2011-10-11 15:06:20 [28005] [0] WARNING: Killing signal or HTTP admin
>> command received, shutting down...
>> 2011-10-12 13:37:02 [30567] [0] WARNING: Killing signal or HTTP admin
>> command received, shutting down...
>> 2011-10-12 18:16:12 [7328] [339] ERROR: Couldn't fetch
>> <
>> http://localhost/fastlogger.php?usr=user&from=senderid&to=%2B[gsmnumber]&text=message&smsc=&dlrmask=0&smsid=eacf217e-57bd-433a-8c5d-f8fa8fc7a023
>> >
>> 2011-10-12 18:37:25 [7328] [0] WARNING: Killing signal or HTTP admin
>> command received, shutting down...
>> 2011-10-12 21:15:54 [11861] [0] WARNING: Killing signal or HTTP admin
>> command received, shutting down...
>> 2011-10-12 21:54:03 [2592] [0] WARNING: Killing signal or HTTP admin
>> command received, shutting down...
>> 2011-10-12 21:54:18 [2704] [0] PANIC: HTTP[rhttp6]: Sending not
>> allowed. No 'send-url' specified.
>> 2011-10-12 21:54:18 [2704] [0] PANIC: bearerbox(gw_panic+0x17b) [0x4893db]
>> 2011-10-12 21:54:18 [2704] [0] PANIC:
>> bearerbox(smsc_http_create+0x632) [0x44cc82]
>> 2011-10-12 21:54:18 [2704] [0] PANIC: bearerbox(smscconn_create+0xcec)
>> [0x42192c]
>> 2011-10-12 21:54:18 [2704] [0] PANIC: bearerbox(smsc2_start+0x39f)
>> [0x41529f]
>> 2011-10-12 21:54:18 [2704] [0] PANIC: bearerbox(main+0x1029) [0x40eff9]
>> 2011-10-12 21:54:18 [2704] [0] PANIC:
>> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xff)
>> [0x7fa534f5feff]
>> 2011-10-12 21:54:18 [2704] [0] PANIC: bearerbox() [0x40da99]
>> 2011-10-12 22:22:40 [2807] [0] WARNING: Killing signal or HTTP admin
>> command received, shutting down...
>>
>>
>> - Thanks,
>>
>> Eugene
>>
>>
>> On 14 October 2011 06:57, Victor Miclovich <[email protected]>
>> wrote:
>> > Eugene, I agree with Simon that your application can also be made to
>> send a
>> > number of messages per second (I'm testing up to 100sms/s on my dev
>> > machine). You should tweak the application.
>> > On a side note, sometimes discussions about how to integrate kannel into
>> an
>> > application (framework) are a crucial point and important for usecases.
>> For
>> > instance, by talking about this here, we can easily encourage API
>> builders
>> > to write plugins that can abstract entire processes for kannel
>> utilization
>> > (hence the kannel users mailing list).
>> > Victor
>> >
>> >
>> > On Oct 14, 2011, at 8:51 AM, Otandeka Simon Peter wrote:
>> >
>> >
>> > Some of the questions to ask yourself are:-
>> >
>> > 1. Are the Internet connection speeds very good?
>> > 2. Is your SMPP connections always up and not intermittent?
>> > 3. What throughput have you set in the kannel config?  I hope it is not
>> set
>> > to 3.
>> > 4. Anything in the logs (esp bearerbox and smsbox) that will give us
>> more
>> > clues on how to help you out?
>> > 5.  You may need to re-design your app to cater for those delays but
>> that is
>> > something meant for private discussion and not Kannel mailing list.
>> >
>> > P.
>> >
>> > On Thu, Oct 13, 2011 at 7:41 PM, Eugene Ohu <[email protected]>
>> wrote:
>> >>
>> >> Hi all,
>> >>
>> >> My client is located in Africa while my server is located in the US.
>> >>
>> >> Messages are being delivered at a rate of 3 sms/second.
>> >>
>> >> My server has at least 1GB RAM; 600GB bandwidth and enough HDD.
>> >> It is running on Ubuntu (hosted by Rackspace Slicehost).
>> >>
>> >> Might anyone know what other issues I should look out for that could
>> >> be causing this long delays?
>> >> On my local test server, I get to sent 700+ messages per second but
>> >> not on the live one.
>> >>
>> >> Any help will be appreciated.
>> >>
>> >> Gene
>> >>
>> >
>> >
>> >
>>
>
>

Reply via email to