It seems that the problem is not Kannel or Apache related, it is a binding problem inside the server, with this error:
Cannot assign requested address On Sat, May 31, 2014 at 5:26 PM, DHC Admin <[email protected]> wrote: > SUCCESS > > cat *.log | grep '111136689792' > > 2014-05-30 21:33:21 Receive SMS [SMSC:fakesmsc] [SVC:] [ACT:] [BINF:] > [FID:] [META:] [from:111136689792] [to:113] [flags:-1:0:-1:-1:-1] > [msg:4:alta] [udh:0:] > > 2014-05-30 21:33:21 Sent SMS [SMSC:fakesmsc] [SVC:tester] [ACT:] [BINF:] > [FID:] [META:] [from:113] [to:111136689792] [flags:-1:0:-1:-1:-1] > [msg:10:id: 326670] [udh:0:] > > 2014-05-30 21:33:21 send-SMS request added - sender:tester:113 127.0.0.1 > target:111136689792 request: 'id: 326670' > > 2014-05-30 21:33:21 SMS HTTP-request sender:111136689792 request: 'OK > [0,003] Status: 0' url: 'http://localhost/indexJson.php' reply: 200 '<< > successful >>' > > 2014-05-30 21:33:21 [15305] [5] INFO: Starting to service <alta> from > <111136689792> to <113> > > 2014-05-30 21:33:21 [15305] [3] INFO: sendsms sender:<tester:113> > (127.0.0.1) to:<111136689792> msg:<id: 326670> > > > FAIL > > cat *.log | grep '111105695347' > > 2014-05-30 21:33:31 Receive SMS [SMSC:fakesmsc] [SVC:] [ACT:] [BINF:] > [FID:] [META:] [from:111105695347] [to:113] [flags:-1:0:-1:-1:-1] > [msg:4:alta] [udh:0:] > > 2014-05-30 21:33:40 SMS HTTP-request sender:111105695347 request: 'OK > [0,203] Status: 999' url: 'http://localhost/indexJson.php' reply: 200 '<< > successful >>' > > 2014-05-30 21:33:32 [15305] [5] INFO: Starting to service <alta> from > <111105695347> to <113> > > > On Fri, May 30, 2014 at 9:31 PM, DHC Admin <[email protected]> wrote: > >> Hi >> Ok, so I have the 5089 csv kannel with fakesmsc >> I am stressing the server and 20% of the messages are not accepted by the >> smsbox, but silently, it is like closing the port, is it possible? >> I have increased the ulimit and tested a lot and I am out of resources: >> >> >> START SCRIPT >> >> #!/bin/sh >> # Start/stop the Kannel boxes: One bearer box and one WAP box. >> >> # This is the default init.d script for Kannel. Its configuration is >> # appropriate for a small site running Kannel on one machine. >> >> # Make sure that the Kannel binaries can be found in $BOXPATH or somewhere >> # else along $PATH. run_kannel_box has to be in $BOXPATH. >> >> BOXPATH=/usr/local >> PIDFILES=/var/run >> CONFDIR=/etc/kannel >> CONF=$CONFDIR/kannel-fake.conf >> CONFSP=$CONFDIR/opensmppbox-fake.conf >> >> USER=kannel >> VERSION="" >> >> RB=$BOXPATH/kannel/sbin/run_kannel_box$VERSION >> BB=$BOXPATH/kannel/sbin/bearerbox$VERSION >> WB=$BOXPATH/kannel/sbin/wapbox$VERSION >> SB=$BOXPATH/kannel/sbin/smsbox$VERSION >> SP=$BOXPATH/kannel/sbin/opensmppbox$VERSION >> SSD=start-stop-daemon$VERSION >> >> PATH=$BOXPATH:$PATH >> >> # On Debian, the most likely reason for the bearerbox not being available >> # is that the package is in the "removed" or "unconfigured" state, and the >> # init.d script is still around because it's a conffile. This is normal, >> # so don't generate any output. >> test -x $BB || exit 0 >> >> case "$1" in >> start) >> echo -n "Starting SMPP gateway:" >> echo -n " bearerbox" >> ulimit -n 100000 >> $SSD --start --quiet --pidfile $PIDFILES/kannel_bearerbox-fake.pid >> --exec $RB -- --pidfile $PIDFILES/kannel_bearerbox-fake.pid $BB -v >> $DEBUGLVL -- $CONF >> # echo -n " wapbox" >> # $SSD --start --quiet --pidfile $PIDFILES/kannel_wapbox-fake.pid >> --exec $RB -- --pidfile $PIDFILES/kannel_wapbox-fake.pid $WB -- $CONF >> echo -n " smsbox" >> $SSD --start --quiet --pidfile $PIDFILES/kannel_smsbox-fake.pid >> --exec $RB -- --pidfile $PIDFILES/kannel_smsbox-fake.pid $SB -v $DEBUGLVL >> -- $CONF >> # echo -n " opensmppbox" >> # $SSD --start --quiet --pidfile $PIDFILES/kannel_opensmppbox-fake.pid >> --exec $RB -- --pidfile $PIDFILES/kannel_opensmppbox-fake.pid $SP -v >> $DEBUGLVL -- $CONFSP >> echo "." >> ;; >> >> stop) >> echo -n "Stopping SMPP gateway:" >> # echo -n " wapbox" >> # $SSD --stop --quiet --pidfile $PIDFILES/kannel_wapbox-fake.pid >> --exec $RB >> # echo -n " opensmppbox" >> # $SSD --stop --quiet --pidfile $PIDFILES/kannel_opensmppbox-fake.pid >> --exec $RB >> echo -n " smsbox" >> $SSD --stop --quiet --pidfile $PIDFILES/kannel_smsbox-fake.pid --exec >> $RB >> echo -n " bearerbox" >> $SSD --stop --quiet --pidfile $PIDFILES/kannel_bearerbox-fake.pid >> --exec $RB >> echo "." >> ;; >> >> status) >> CORE_CONF=$(grep -r 'group[[:space:]]*=[[:space:]]*core' $CONFDIR | >> cut -d: -f1) >> ADMIN_PORT=$(grep '^admin-port' $CORE_CONF | sed >> "s/.*=[[:space:]]*//") >> ADMIN_PASS=$(grep '^admin-password' $CORE_CONF | sed >> "s/.*=[[:space:]]*//") >> STATUS_URL="http://127.0.0.1: >> ${ADMIN_PORT}/status.txt?password=${ADMIN_PASS}" >> lynx -source $STATUS_URL >> ;; >> >> reload) >> # We don't have support for this yet. >> exit 1 >> ;; >> >> restart|force-reload) >> $0 stop >> sleep 1 >> $0 start >> ;; >> >> *) >> echo "Usage: $0 {start|stop|status|reload|restart|force-reload}" >> exit 1 >> >> esac >> >> exit 0 >> >> >> >> FAKESMSC configuration >> >> ################################################################ >> ############## CORE CONFIGURATION ############################## >> ################################################################ >> >> group = core >> admin-port = 23700 >> admin-password = corepass >> admin-deny-ip = *.*.*.* >> admin-allow-ip = 127.0.0.1 >> smsbox-port = 23701 >> box-allow-ip = *.*.*.* >> log-file = "/var/log/kannel/fake/bearerbox.log" >> log-level = 4 >> access-log = "/var/log/kannel/fake/bearerbox_access.log" >> store-location = "/var/lib/kannel/store_file-ar-personal.log" >> smsbox-max-pending = 100000 >> sms-resend-retry = 1 >> sms-resend-freq = 60 >> >> ################################################################ >> ############## SMSBOX ########################################## >> ################################################################ >> >> group = smsbox >> bearerbox-host = 127.0.0.1 >> sendsms-port = 23713 >> log-file = "/var/log/kannel/fake/smsbox.log" >> log-level = 4 >> access-log = "/var/log/kannel/fake/smsbox_access.log" >> # cantidad de veces que trata de entregar el MO >> #http-request-retry = 5 >> http-request-retry = 3 >> # segundos de wait antes de entregar el MO al apache en caso de retry >> http-queue-delay = 60 >> # numero de MOs en paralelo >> max-pending-requests = 500 >> #mo-recode = 1 >> >> ################################################################ >> ############## SENDSMS-USER #################################### >> ################################################################ >> >> group = sendsms-user >> username = tester >> password = foobar >> user-deny-ip = *.*.*.* >> user-allow-ip = "127.0.0.1;192.168.2.11;192.168.2.12;192.168.2.13" >> max-messages = 2 >> concatenation = true >> >> >> ################################################################ >> ############## SMSCs ########################################### >> ################################################################ >> >> group = smsc >> smsc = fake >> smsc-id = fakesmsc >> allowed-smsc-id = "fakesmsc" >> port = 10000 >> throughput = 300 >> connect-allow-ip = 127.0.0.1 >> >> >> ################################################################ >> ############## SMS-SERVICE ##################################### >> ################################################################ >> >> group = sms-service >> keyword = default >> send-sender = true >> post-url = "http://localhost/indexJson.php" >> max-messages = 0 >> concatenation = true >> accept-x-kannel-headers = true >> >> >
