Hi Nikos,

Thanks for your answer...

With emgload software:

# /opt/emgload --protocol smpp --port 10000 --threads 1 --messages
1000 --username usuario --password clave
----------------------------------
EMGLOAD 1.0.10459/20070316 (Linux)
----------------------------------
Host: 127.0.0.1 Port: 10000
Sending 1000 messages per thread via smpp.
Using 1 threads.

smpp_read: Non-zero status (0x0000000d) in response to operation
0x00000002
send_smpp: Login failed
Completed in 0 secs.

opensmpp.log:

2011-06-24 15:48:28 [29550] [0] INFO: Added logfile
`/var/log/kannel/opensmppbox.log' with level `0'.
2011-06-24 15:48:28 [29550] [0] INFO: Waiting for SMPP connections on
port 10000.
2011-06-24 15:49:54 [29550] [0] DEBUG: Started thread 1
(opensmppbox.c:function)
2011-06-24 15:49:54 [29550] [1] DEBUG: Thread 1
(opensmppbox.c:function) maps to pid 29550.
2011-06-24 15:49:54 [29550] [1] INFO: Client connected from <127.0.0.1>
2011-06-24 15:49:54 [29550] [1] DEBUG: Connecting to <127.0.0.1>
2011-06-24 15:49:54 [29550] [1] INFO: Connected to bearerbox at
localhost port 13000.
2011-06-24 15:49:54 [29550] [1] DEBUG: Started thread 2
(opensmppbox.c:smpp_to_bearerbox)
2011-06-24 15:49:54 [29550] [2] DEBUG: Thread 2
(opensmppbox.c:smpp_to_bearerbox) maps to pid 29550.
2011-06-24 15:49:54 [29550] [2] DEBUG: SMPP[smppbox]: Got PDU:
2011-06-24 15:49:54 [29550] [2] DEBUG: SMPP PDU 0x9b50720 dump:
2011-06-24 15:49:54 [29550] [2] DEBUG:   type_name: bind_transmitter
2011-06-24 15:49:55 [29550] [2] DEBUG:   command_id: 2 = 0x00000002
2011-06-24 15:49:55 [29550] [2] DEBUG:   command_status: 0 = 0x00000000
2011-06-24 15:49:55 [29550] [2] DEBUG:   sequence_number: 1 = 0x00000001
2011-06-24 15:49:55 [29550] [2] DEBUG:   system_id: "usuario"
2011-06-24 15:49:55 [29550] [2] DEBUG:   password: "clave"
2011-06-24 15:49:55 [29550] [2] DEBUG:   system_type: NULL
2011-06-24 15:49:55 [29550] [2] DEBUG:   interface_version: 52 =
0x00000034
2011-06-24 15:49:55 [29550] [2] DEBUG:   addr_ton: 0 = 0x00000000
2011-06-24 15:49:55 [29550] [2] DEBUG:   addr_npi: 0 = 0x00000000
2011-06-24 15:49:55 [29550] [2] DEBUG:   address_range: NULL
2011-06-24 15:49:55 [29550] [2] DEBUG: SMPP PDU dump ends.
2011-06-24 15:49:55 [29550] [2] DEBUG: SMPP[smppbox]: Sending PDU:
2011-06-24 15:49:55 [29550] [2] DEBUG: SMPP PDU 0x9b50828 dump:
2011-06-24 15:49:55 [29550] [2] DEBUG:   type_name: bind_transmitter_resp
2011-06-24 15:49:55 [29550] [2] DEBUG:   command_id: 2147483650 =
0x80000002
2011-06-24 15:49:55 [29550] [2] DEBUG:   command_status: 13 = 0x0000000d
2011-06-24 15:49:55 [29550] [2] DEBUG:   sequence_number: 1 = 0x00000001
2011-06-24 15:49:55 [29550] [2] DEBUG:   system_id: NULL
2011-06-24 15:49:55 [29550] [2] DEBUG: SMPP PDU dump ends.
2011-06-24 15:49:56 [29550] [2] ERROR: Invalid SMPP PDU received.
2011-06-24 15:49:56 [29550] [2] DEBUG: Thread 2
(opensmppbox.c:smpp_to_bearerbox) terminates.
2011-06-24 15:49:57 [29550] [1] DEBUG: Thread 1
(opensmppbox.c:function) terminates.

Thanks!



El 23/06/11 21:20, Nikos Balkanas escribio':
> Hi,
>
> You should post your logs at maximum detail (debug) when posting to
> this list. Do not post about SMPP PDU problems, without posting the
> actual PDU data. Besides it looks like you send the wrong SMPP PDU
> from your app.
>
>
> BR,
> Nikos
> ----- Original Message ----- From: Ivan Martinez
> To: users@kannel.org
> Sent: Friday, June 24, 2011 12:13 AM
> Subject: Invalid SMPP PDU received with opensmpp
>
>
> Hi there,
>
> I'm try to test opensmpp but when i try connect trought a php smpp
> client and other tools to test the smpp performance like "SMPP
> benchmarking"[1] i get this error:
>
> "[12] ERROR: Invalid SMPP PDU received."
>
>
> 2011-06-23 21:17:10 [19106] [7] INFO: Client connected from <127.0.0.1>
> 2011-06-23 21:17:10 [19106] [7] INFO: Connected to bearerbox at
> localhost port 13000.
> 2011-06-23 21:17:11 [19106] [8] ERROR: Invalid SMPP PDU received.
>
>
> I'm newbie with Kannel...
>
> My configuration is:
>
>
> group = core
> admin-port = 13000
> admin-password = 12345
> #status-password = 123456
> #admin-deny-ip = "*.*.*.*"
> admin-allow-ip = "0.0.0.0"
> wapbox-port = 13001
> smsbox-port = 13002
> wdp-interface-name = "*"
> log-file = "/var/log/kannel/kannel.log"
> #box-deny-ip = "*.*.*.*"
> box-allow-ip = "0.0.0.0"
> dlr-storage = mysql
> group = wapbox
> bearerbox-host = localhost
> log-file = "/var/log/kannel/wapbox.log"
> group = smsc
> smsc = fake
> smsc-id = fc
> port = 13003
> connect-allow-ip = 0.0.0.0
> group = smsbox
> smsbox-id = sboxk
> bearerbox-host = localhost
> sendsms-port = 13010
> global-sender = "04129999999"
> access-log = "/var/log/kannel/kannel.access"
> log-file = "/var/log/kannel/smsbox.log"
> log-level = 0
> group = mysql-connection
> id = mysql-logs
> host = localhost
> username = kannel
> password = kannel
> database = kannel
> max-connections = 2
> group = dlr-db
> id = mysql-logs
> table = logs
> field-smsc = smsc
> field-timestamp = time
> field-destination = destination
> field-source = source
> field-service = service
> field-url = url
> field-mask = mask
> field-status = status
> field-boxc-id = boxc
> group = sendsms-user
> #Username and Password for sending sms using HTTP interface
> username = kannel
> password = kannel
> concatenation = true
> #can send a longer text message about 3 smses ( 3*160)
> #max-messages = 3
> group = opensmppbox
> opensmppbox-id = smppbox
> #opensmppbox-port = 13004
> opensmppbox-port = 10000
> bearerbox-host = localhost
> bearerbox-port = 13000
> log-level = 0
> log-file = /var/log/kannel/opensmppbox.log
> our-system-id = opensmppid
> route-to-smsc = fc
> smpp-logins = "/etc/kannel/smpplogins.txt"
> smpplogins.txt:
> usuario clave sboxk *.*.*.*
> Kannel bearerbox version `svn-r4910'. Build `Jun 20 2011 14:43:31',
> compiler `4.1.2 20080704 (Red Hat 4.1.2-50)'. System Linux, release
> 2.6.39-1.el5.elrepo, version #1 SMP PREEMPT Fri Jun 3 19:16:32 EDT
> 2011, machine i686. Hostname sms.venturestars.com, IP 192.168.1.72.
> Libxml version 2.6.26. Using OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008.
> Compiled with MySQL 5.0.77, using MySQL 5.0.77. Using native malloc.
> Thanks for your help!
> [1] http://www.smpp.com/smpp-benchmarking.html
>
>
>
>


Reply via email to