Hi Rene,

Thanks for your answer...

Unfortunately I get the same result.

Forwarding logs, configuration files and file authentication.

It will be a problem in the tab authentication file?

I need a install specific library before compile opensmppbox?

Thanks for your help...

Great work!

[root@sms opt]# /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-27 14:20:09 [30294] [3] DEBUG: Thread 3 (opensmppbox.c:function) maps to pid 30294.
2011-06-27 14:20:09 [30294] [0] DEBUG: Started thread 3 (opensmppbox.c:function)
2011-06-27 14:20:09 [30294] [3] INFO: Client connected from <127.0.0.1>
2011-06-27 14:20:09 [30294] [3] DEBUG: Connecting to <127.0.0.1>
2011-06-27 14:20:09 [30294] [3] INFO: Connected to bearerbox at localhost port 13000.
2011-06-27 14:20:09 [30294] [3] DEBUG: Started thread 4 (opensmppbox.c:smpp_to_bearerbox)
2011-06-27 14:20:09 [30294] [4] DEBUG: Thread 4 (opensmppbox.c:smpp_to_bearerbox) maps to pid 30294.
2011-06-27 14:20:09 [30294] [4] DEBUG: SMPP[smppbox]: Got PDU:
2011-06-27 14:20:09 [30294] [4] DEBUG: SMPP PDU 0x95e5748 dump:
2011-06-27 14:20:09 [30294] [4] DEBUG:   type_name: bind_transmitter
2011-06-27 14:20:09 [30294] [4] DEBUG:   command_id: 2 = 0x00000002
2011-06-27 14:20:09 [30294] [4] DEBUG:   command_status: 0 = 0x00000000
2011-06-27 14:20:09 [30294] [4] DEBUG:   sequence_number: 1 = 0x00000001
2011-06-27 14:20:09 [30294] [4] DEBUG:   system_id: "usuario"
2011-06-27 14:20:09 [30294] [4] DEBUG:   password: "clave"
2011-06-27 14:20:09 [30294] [4] DEBUG:   system_type: NULL
2011-06-27 14:20:09 [30294] [4] DEBUG:   interface_version: 52 = 0x00000034
2011-06-27 14:20:09 [30294] [4] DEBUG:   addr_ton: 0 = 0x00000000
2011-06-27 14:20:09 [30294] [4] DEBUG:   addr_npi: 0 = 0x00000000
2011-06-27 14:20:09 [30294] [4] DEBUG:   address_range: NULL
2011-06-27 14:20:09 [30294] [4] DEBUG: SMPP PDU dump ends.
2011-06-27 14:20:09 [30294] [4] DEBUG: SMPP[smppbox]: Sending PDU:
2011-06-27 14:20:09 [30294] [4] DEBUG: SMPP PDU 0x95e5858 dump:
2011-06-27 14:20:09 [30294] [4] DEBUG:   type_name: bind_transmitter_resp
2011-06-27 14:20:09 [30294] [4] DEBUG:   command_id: 2147483650 = 0x80000002
2011-06-27 14:20:09 [30294] [4] DEBUG:   command_status: 13 = 0x0000000d
2011-06-27 14:20:09 [30294] [4] DEBUG:   sequence_number: 1 = 0x00000001
2011-06-27 14:20:09 [30294] [4] DEBUG:   system_id: NULL
2011-06-27 14:20:09 [30294] [4] DEBUG: SMPP PDU dump ends.
2011-06-27 14:20:10 [30294] [4] ERROR: Invalid SMPP PDU received.
2011-06-27 14:20:10 [30294] [4] DEBUG: Thread 4 (opensmppbox.c:smpp_to_bearerbox) terminates.
2011-06-27 14:20:11 [30294] [3] DEBUG: Thread 3 (opensmppbox.c:function) terminates.

Config Files:

group = core
admin-port = 13000
admin-password = 12345
admin-allow-ip = "0.0.0.0"
wapbox-port = 13001
smsbox-port = 13002
wdp-interface-name = "*"
log-file = "/var/log/kannel/kannel.log"
box-allow-ip = "0.0.0.0"
dlr-storage = mysql
log-level = 0

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
system-type = "sboxk"
log-level = 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 = 1

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 = "" /> field-mask = mask
field-status = status
field-boxc-id = boxc

group = sendsms-user
username = kannel
password = kannel
concatenation = true

group = opensmppbox
opensmppbox-id = smppbox
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 *.*.*.*




El 24/06/11 12:01, Rene Kluwen escribió:

<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman","serif"; color:black;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} -->

The system-type should be “sboxk”.

 

=+= Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Ivan Martinez
Sent: Friday, 24 June, 2011 17:55
To: Nikos Balkanas
Cc: us...@vm1.kannel.org
Subject: Re: Invalid SMPP PDU received with opensmpp

 

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 escribió:
> 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 = "" />

      > 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