Hi Nilubon,

Can you use Fakesmsc as simulation provided by Kannel itself?

On Wed, Mar 18, 2015 at 12:34 PM, Nilubon Soonthon <nilubo...@jasmine.com>
wrote:

>
>
> Hi,
>
> I tried it, but I still have the same errors.
>
> Sometimes I think the problems are caused by configuration of SMPPSim (My
> SMSC simulation). Is that possible?
>
>
>
> Thanks & Regards
>
> Nilubon Soonthon
>
> *From:* Tapan Kumar Thapa [mailto:tapan.thapa2...@gmail.com]
> *Sent:* Thursday, March 12, 2015 11:43 AM
> *To:* Nilubon Soonthon
> *Subject:* Re: Routing failed, re-queued and 3: Queued for later delivery
>
>
>
> Although url seems ok but can you try below and see if its resolves your
> issue.
>
>
> http://localhost:13013/cgi-bin/sendsms?username=admin&password=kannel&to=0123456789&from=4444&text=testmessage
> &smsc=SMPPSim
>
>
>
> On Thu, Mar 12, 2015 at 9:51 AM, Nilubon Soonthon <nilubo...@jasmine.com>
> wrote:
>
> This my URL that I use to send sms.
>
>
>
>
> http://localhost:13013/cgi-bin/sendsms?username=admin&password=kannel&to=0123456789&from=4444&text=testmessage
>
>
>
>
>
> *From:* Tapan Kumar Thapa [mailto:tapan.thapa2...@gmail.com]
> *Sent:* Thursday, March 12, 2015 11:06 AM
> *To:* Nilubon Soonthon
> *Cc:* Alvaro Cornejo; users@kannel.org
>
>
> *Subject:* Re: Routing failed, re-queued and 3: Queued for later delivery
>
>
>
> Can you post here the complete sendsms url being invoked by playsms?
>
>
>
> On Thu, Mar 12, 2015 at 8:49 AM, Nilubon Soonthon <nilubo...@jasmine.com>
> wrote:
>
> Hi Alvano,
>
>
>
> Sure, This is my smsc logs when I started bearerbox.
>
>
>
> 2015.03.11 19:59:48 672 INFO    16 : BIND_RECEIVER:
>
> 2015.03.11 19:59:48 672 INFO    16 Hex dump (44) bytes:
>
> 2015.03.11 19:59:48 672 INFO    16 0000002C:00000001:00000000:00000001:
>
> 2015.03.11 19:59:48 673 INFO    16 736D7070:636C6965:6E743100:31323334:
>
> 2015.03.11 19:59:48 673 INFO    16 35002756:4D412700:34000000:
>
> 2015.03.11 19:59:48 673 INFO    16
> cmd_len=44,cmd_id=1,cmd_status=0,seq_no=1,system_id=smppclient1,password=12345
>
> 2015.03.11 19:59:48 673 INFO    16
> system_type='VMA',interface_version=52,addr_ton=0,addr_npi=0,address_range=
>
> 2015.03.11 19:59:48 674 INFO    16
>
> 2015.03.11 19:59:48 674 INFO    16 StandardProtocolHandler: setting
> address range to
>
> 2015.03.11 19:59:48 674 INFO    16 New receiver session bound to SMPPSim
>
> 2015.03.11 19:59:48 674 INFO    16 : BIND_RECEIVER_RESP:
>
> 2015.03.11 19:59:48 674 INFO    16 Hex dump (24) bytes:
>
> 2015.03.11 19:59:48 675 INFO    16 00000018:80000001:00000000:00000001:
>
> 2015.03.11 19:59:48 675 INFO    16 534D5050:53696D00:
>
> 2015.03.11 19:59:48 675 INFO    16
> cmd_len=0,cmd_id=-2147483647,cmd_status=0,seq_no=1,system_id=SMPPSim
>
> 2015.03.11 19:59:48 675 INFO    16
>
> 2015.03.11 19:59:48 676 INFO    16 2 receivers connected and bound
>
> 2015.03.11 19:59:48 676 INFO    20 InboundQueue: empty  - waiting
>
> 2015.03.11 20:00:17 59  INFO    17 : ENQUIRE_LINK:
>
> 2015.03.11 20:00:17 60  INFO    17 Hex dump (16) bytes:
>
> 2015.03.11 20:00:17 60  INFO    17 00000010:00000015:00000000:0000000E:
>
> 2015.03.11 20:00:17 60  INFO    17
>
> 2015.03.11 20:00:17 60  INFO    17
> cmd_len=16,cmd_id=21,cmd_status=0,seq_no=14
>
> 2015.03.11 20:00:17 60  INFO    17
>
> 2015.03.11 20:00:17 60  INFO    17 :ENQUIRE_LINK_RESP:
>
> 2015.03.11 20:00:17 61  INFO    17 Hex dump (16) bytes:
>
> 2015.03.11 20:00:17 64  INFO    17 00000010:80000015:00000000:0000000E:
>
> 2015.03.11 20:00:17 64  INFO    17
>
> 2015.03.11 20:00:17 65  INFO    17
> cmd_len=0,cmd_id=-2147483627,cmd_status=0,seq_no=14
>
> 2015.03.11 20:00:17 65  INFO    17
>
> 2015.03.11 20:00:17 214 INFO    18 : ENQUIRE_LINK:
>
> 2015.03.11 20:00:17 215 INFO    18 Hex dump (16) bytes:
>
> 2015.03.11 20:00:17 215 INFO    18 00000010:00000015:00000000:0000000E:
>
> 2015.03.11 20:00:17 215 INFO    18
>
> 2015.03.11 20:00:17 215 INFO    18
> cmd_len=16,cmd_id=21,cmd_status=0,seq_no=14
>
> 2015.03.11 20:00:17 216 INFO    18
>
> 2015.03.11 20:00:17 216 INFO    18 :ENQUIRE_LINK_RESP:
>
> 2015.03.11 20:00:17 216 INFO    18 Hex dump (16) bytes:
>
> 2015.03.11 20:00:17 216 INFO    18 00000010:80000015:00000000:0000000E:
>
> 2015.03.11 20:00:17 216 INFO    18
>
> 2015.03.11 20:00:17 216 INFO    18
> cmd_len=0,cmd_id=-2147483627,cmd_status=0,seq_no=14
>
>
>
> And this is my smsbox logs when I send SMS via URL.
>
>
>
> 2015-03-12 17:12:56 [3907] [2] DEBUG: HTTP: Creating HTTPClient for
> `127.0.0.1'.
>
> 2015-03-12 17:12:56 [3907] [2] DEBUG: HTTP: Created HTTPClient area
> 0x7fea28000ad0.
>
> 2015-03-12 17:12:56 [3907] [3] INFO: smsbox: Got HTTP request
> </cgi-bin/sendsms> from <127.0.0.1>
>
> 2015-03-12 17:12:56 [3907] [3] INFO: sendsms used by <admin>
>
> 2015-03-12 17:12:56 [3907] [3] INFO: sendsms sender:<admin:4444>
> (127.0.0.1) to:<0123456789> msg:<testmessage>
>
> 2015-03-12 17:12:56 [3907] [3] DEBUG: Stored UUID
> 71659f2c-a479-4c07-a56f-5e9db4293ad8
>
> 2015-03-12 17:12:56 [3907] [3] DEBUG: message length 11, sending 1 messages
>
> 2015-03-12 17:12:56 [3907] [3] DEBUG: Status: 202 Answer: <Sent.>
>
> 2015-03-12 17:12:56 [3907] [3] DEBUG: Delayed reply - wait for bearerbox
>
> 2015-03-12 17:12:56 [3907] [0] DEBUG: Got ACK (3) of
> 71659f2c-a479-4c07-a56f-5e9db4293ad8
>
> 2015-03-12 17:12:56 [3907] [0] DEBUG: HTTP: Resetting HTTPClient for
> `127.0.0.1'.
>
> 2015-03-12 17:12:56 [3907] [3] INFO: smsbox: Got HTTP request
> </favicon.ico> from <127.0.0.1>
>
> 2015-03-12 17:12:56 [3907] [3] DEBUG: Status: 404 Answer: <Unknown
> request.>
>
> 2015-03-12 17:12:56 [3907] [3] DEBUG: HTTP: Resetting HTTPClient for
> `127.0.0.1'.
>
>
>
> 2015-03-12 17:13:56 [3907] [1] DEBUG: Timeout for fd:25 appears.
>
> 2015-03-12 17:13:56 [3907] [1] DEBUG: HTTP: Destroying HTTPClient area
> 0x7fea28000ad0.
>
> 2015-03-12 17:13:56 [3907] [1] DEBUG: HTTP: Destroying HTTPClient for
> `127.0.0.1'.
>
>
>
>
>
>
>
> Thanks & Regards,
>
>
>
> Nilubon  Soonthon
>
>
>
> *From:* Alvaro Cornejo [mailto:cornejo.alv...@gmail.com]
> *Sent:* Wednesday, March 11, 2015 8:56 PM
> *To:* Tapan Kumar Thapa
> *Cc:* Nilubon Soonthon; users@kannel.org
>
>
> *Subject:* Re: Routing failed, re-queued and 3: Queued for later delivery
>
>
>
> Hi
>
>
>
> Can you post relevant parts of your smsbox and smsc logs?
>
>
>
> Regards
>
>
>
> Alvaro
>
>
>
> |-----------------------------------------------------------------------------------------------------------------|
> Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
> celular y Nextel
> en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
> y GPRS online
>               Visitenos en www.perusms.com
>
>
>
> On Tue, Mar 10, 2015 at 11:23 PM, Tapan Kumar Thapa <
> tapan.thapa2...@gmail.com> wrote:
>
> Dear Nilubon,
>
> Are you still facing the re-routing issue?
>
> Your bearerbox is on from 35 min and your SMSC is on from 16s only.
>
>
>
> Is there any issue with SMSC? Have you restarted SMSC via kannel admin
> interface?
>
>
>
> On Wed, Mar 11, 2015 at 9:46 AM, Nilubon Soonthon <nilubo...@jasmine.com>
> wrote:
>
> Dear Tapan,
>
>
>
> This is my output:
>
>
>
> Kannel bearerbox version `1.4.4'. Build `Mar 2 2015 17:23:17', compiler
> `4.4.7 20120313 (Red Hat 4.4.7-11)'. System Linux, release
> 2.6.32-431.el6.x86_64, version #1 SMP Fri Nov 22 03:15:09 UTC 2013, machine
> x86_64. Hostname tg-1536, IP 127.0.0.1. Libxml version 2.7.6. Using OpenSSL
> 1.0.1e-fips 11 Feb 2013. Using native malloc.
>
> Status: running, uptime 0d 0h 35m 26s
>
> WDP: received 0 (0 queued), sent 0 (0 queued)
>
> SMS: received 0 (0 queued), sent 0 (1 queued), store size -1
> SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
>
> DLR: received 0, sent 0
> DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
> DLR: 0 queued, using internal storage
>
> Box connections:
>     smsbox:smsbox2, IP 127.0.0.1 (0 queued), (on-line 0d 0h 35m 6s)
>
> SMSC connections:
>     *SMPPSim*[SMPPSim]    SMPP:10.11.21.78:0/2775:smppclient1:'VMA'
> (online 16s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), sent:
> sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), failed 0, queued 0 msgs)
>
>
>
>
>
> Thank Regards,
>
> Nilubon  Soonthon
>
>
>
> *From:* Tapan Kumar Thapa [mailto:tapan.thapa2...@gmail.com]
> *Sent:* Wednesday, March 11, 2015 10:58 AM
>
>
> *To:* Nilubon Soonthon
> *Cc:* users@kannel.org
> *Subject:* Re: Routing failed, re-queued and 3: Queued for later delivery
>
>
>
> Dear Nilubon,
>
> Can you please give us the output of below url?
>
> http://10.11.21.248:13000/status?password=kannel
>
> Regards
>
> Tapan Thapa
>
>
>
> On Wed, Mar 11, 2015 at 8:32 AM, Nilubon Soonthon <nilubo...@jasmine.com>
> wrote:
>
> Dear Tapan,
>
>
>
> Thanks for Answer but I think my SMSC isn’t down because I use Wireshark
> to capture packet between my simutation SMSC (SMPPSim 10.11.21.78) and
> Kannel (10.11.21.248) and I think I found packet that connected between
> it.(Details of Packet in attached file.)
>
>
>
> If my SMSC isn’t down .Do you have any idea for me to solve this problem?
>
>
>
>
>
> Thanks & regards
>
> Nilubon Soonthon
>
> *From:* Tapan Kumar Thapa [mailto:tapan.thapa2...@gmail.com]
> *Sent:* Monday, March 9, 2015 3:20 PM
> *To:* Nilubon Soonthon
> *Cc:* users@kannel.org
> *Subject:* Re: Routing failed, re-queued and 3: Queued for later delivery
>
>
>
> Check kannel admin interface for SMSC status.
>
> It seems SMSC is down.
>
>
>
> On Mon, Mar 9, 2015 at 1:47 PM, Nilubon Soonthon <nilubo...@jasmine.com>
> wrote:
>
> Hi,
>
>
>
> My kannel configuration has been working both for sending and receiving SMS
>
> but all of a sudden both sending and receiving is not working.
>
>
>
> When sending all messages are queued
>
>
>
> Below are the debug logs of bearerbox:
>
>
>
>
>
> 2014-03-19 19:24:21 [31238] [7] DEBUG: sms_router: time to sleep 30.00 secs.
>
> [root at hosta <http://www.kannel.org/mailman/listinfo/users>]# tail -20 
> bearerbox.log
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
>
> (0x971e120 vs 0x9724248)
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
>
> (0x9720aa8 vs 0x9724248)
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
>
> (0xb3100dc0 vs 0x9724248)
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
>
> (0x971e290 vs 0x9724248)
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
>
> (0x9722c20 vs 0x9724248)
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
>
> (0x9722f50 vs 0x9724248)
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
>
> (0xb3101598 vs 0x9724248)
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
>
> (0x9723e58 vs 0x9724248)
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
>
> (0x9724248 vs 0x9724248)
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
>
> 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: time to sleep 30.00 secs.
>
>
>
>
>
> Below is the whole configuration of kannel:
>
>
>
>
>
> #kannel.conf
>
> group = core
>
> admin-port = 13000
>
> smsbox-port = 13001
>
> admin-password = kannel
>
> status-password = kannel
>
> log-file = /var/log/kannel/kannel.log
>
> log-level = 0
>
> access-log = /var/log/kannel/access_kannel.log
>
> dlr-storage = internal
>
>
>
> #--- mysql connection
>
> group = mysql-connection
>
> id = mydlr
>
> host = 10.11.21.136
>
> username = kannel
>
> password = kannel
>
> database = kannelDb
>
> max-connections = 1
>
>
>
> #---- DLR table structure
>
> group = dlr-db
>
> id = mydlr
>
> table = "dlr"
>
> field-smsc = smsc
>
> field-timestamp = timstamp
>
> field-destination = destination
>
> field-source = source
>
> field-service = service
>
> field-url = url
>
> field-mask = mask
>
> field-status = status
>
> field-boxc-id = boxc_id
>
>
>
> group = smsbox
>
> smsbox-id = smsbox1
>
> bearerbox-host = localhost
>
> sendsms-port = 13013
>
> global-sender = 13013
>
> #global-sender = 1000
>
> log-file = /var/log/kannel/smsbox.log
>
> log-level = 0
>
> mo-recode = true
>
>
>
> group = smsbox-route
>
> smsbox-id = smsbox1
>
> smsc-id = SMPPSim
>
>
>
>
>
> group = smsc
>
> smsc = smpp
>
> smsc-id = SMPPSim
>
> host = 10.11.21.78
>
> #port = 2775
>
> transceiver-mode = 0
>
> receive-port = 2775
>
> smsc-username = smppclient1
>
> smsc-password = 12345
>
> system-type = 'VMA'
>
> #service-type = 'test'
>
> interface-version = 34
>
> system-id = smppclient1
>
> preferred-smsc-id = SMPPSim
>
> allowed-smsc-id=SMPPSim
>
> log-file = "/var/log/kannel/smppsim.log"
>
>
>
> group = sendsms-user
>
> username = playsms
>
> password = playsms
>
> user-allow-ip = "10.11.21.*"
>
> user-deny-ip = "*.*.*.*"
>
> default-smsc = SMPPSim
>
> default-sender = '1000'
>
>
>
> group = sendsms-user
>
> username = admin
>
> password = kannel
>
> default-smsc = SMPPSim
>
> default-sender = '1000'
>
>
>
> group = sms-service
>
> keyword = default
>
> accept-x-kannel-headers = true
>
> accepted-smsc = SMPPSim
>
> catch-all = true
>
> post-url = "
> http://localhost/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=posturl&t=%t&q=%q&a=%a
> "
>
>
>
>
>
>
>
> Thanks & Regards,
>
> Nilubon Soonthon
>
>
>
>
>
>
>
>
>
>
>
>
>

Reply via email to