[OpenSMPPBox] Invalid PDU, Bind Failed.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[OpenSMPPBox] Invalid PDU, Bind Failed.

Hamid R. Hashmi
I have gone through many asked question on invalid PDU, Bind Failed problem, But it could'nt help me.
Please point out my mistake, what am I doing wrong.

Client Logs

2014-01-23 17:15:09 [12366] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0
2014-01-23 17:15:09 [12366] [0] DEBUG: Kannel smsbox version `svn-r5076M'.
Build `Jan 23 2014 12:23:11', compiler `4.6.3'.
System Linux, release 3.2.0-23-generic, version #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012, machine x86_64.
Hostname VirtualBox, IP 127.0.1.1.
Libxml version 2.7.8.
Using OpenSSL 1.0.1 14 Mar 2012.
Using native malloc.

2014-01-23 17:15:16 [12357] [6] DEBUG: Connecting to <172.16.37.103>
2014-01-23 17:15:16 [12357] [6] DEBUG: SMPP[MVOIPdev]: Sending PDU:
2014-01-23 17:15:16 [12357] [6] DEBUG: SMPP PDU 0x7fb030000a10 dump:
2014-01-23 17:15:16 [12357] [6] DEBUG:   type_name: bind_transceiver
2014-01-23 17:15:16 [12357] [6] DEBUG:   command_id: 9 = 0x00000009
2014-01-23 17:15:16 [12357] [6] DEBUG:   command_status: 0 = 0x00000000
2014-01-23 17:15:16 [12357] [6] DEBUG:   sequence_number: 2 = 0x00000002
2014-01-23 17:15:16 [12357] [6] DEBUG:   system_id: "usern"
2014-01-23 17:15:16 [12357] [6] DEBUG:   password: "passw"
2014-01-23 17:15:16 [12357] [6] DEBUG:   system_type: "SMPP"
2014-01-23 17:15:16 [12357] [6] DEBUG:   interface_version: 52 = 0x00000034
2014-01-23 17:15:16 [12357] [6] DEBUG:   addr_ton: 0 = 0x00000000
2014-01-23 17:15:16 [12357] [6] DEBUG:   addr_npi: 0 = 0x00000000
2014-01-23 17:15:16 [12357] [6] DEBUG:   address_range: ""
2014-01-23 17:15:16 [12357] [6] DEBUG: SMPP PDU dump ends.
2014-01-23 17:15:17 [12357] [6] DEBUG: SMPP[MVOIPdev]: Got PDU:
2014-01-23 17:15:17 [12357] [6] DEBUG: SMPP PDU 0x7fb030000a10 dump:
2014-01-23 17:15:17 [12357] [6] DEBUG:   type_name: bind_transceiver_resp
2014-01-23 17:15:17 [12357] [6] DEBUG:   command_id: 2147483657 = 0x80000009
2014-01-23 17:15:17 [12357] [6] DEBUG:   command_status: 13 = 0x0000000d
2014-01-23 17:15:17 [12357] [6] DEBUG:   sequence_number: 2 = 0x00000002
2014-01-23 17:15:17 [12357] [6] DEBUG:   system_id: NULL
2014-01-23 17:15:17 [12357] [6] DEBUG: SMPP PDU dump ends.
2014-01-23 17:15:17 [12357] [6] ERROR: SMPP[MVOIPdev]: SMSC rejected login to transmit, code 0x0000000d (Bind Failed).
2014-01-23 17:15:17 [12357] [6] ERROR: SMPP[MVOIPdev]: Couldn't connect to SMS center (retrying in 10 seconds).

OpenSMPPBox Logs:

2014-01-23 17:29:31 [8509] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0
2014-01-23 17:29:31 [8509] [0] DEBUG: Kannel opensmppbox version svn-r77 gwlib version `svn-r5076'.
Build `Jan 10 2014 12:41:01', compiler `4.6.3'.
System Linux, release 3.2.0-23-generic, version #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012, machine x86_64.
Hostname hamid-Box2, IP 127.0.1.1.
Libxml version 2.7.8.
Using OpenSSL 1.0.1 14 Mar 2012.
Compiled with MySQL 5.5.34, using MySQL 5.5.34.
Using native malloc.

2014-01-23 17:16:18 [7959] [28] DEBUG: SMPP[OpenSMPPBox1]: Got PDU:
2014-01-23 17:16:18 [7959] [28] DEBUG: SMPP PDU 0x7f95cc000d50 dump:
2014-01-23 17:16:18 [7959] [28] DEBUG:   type_name: bind_transceiver
2014-01-23 17:16:18 [7959] [28] DEBUG:   command_id: 9 = 0x00000009
2014-01-23 17:16:18 [7959] [28] DEBUG:   command_status: 0 = 0x00000000
2014-01-23 17:16:18 [7959] [28] DEBUG:   sequence_number: 7 = 0x00000007
2014-01-23 17:16:18 [7959] [28] DEBUG:   system_id: "usern"
2014-01-23 17:16:18 [7959] [28] DEBUG:   password: "passw"
2014-01-23 17:16:18 [7959] [28] DEBUG:   system_type: "SMPP"
2014-01-23 17:16:18 [7959] [28] DEBUG:   interface_version: 52 = 0x00000034
2014-01-23 17:16:18 [7959] [28] DEBUG:   addr_ton: 0 = 0x00000000
2014-01-23 17:16:18 [7959] [28] DEBUG:   addr_npi: 0 = 0x00000000
2014-01-23 17:16:18 [7959] [28] DEBUG:   address_range: NULL
2014-01-23 17:16:18 [7959] [28] DEBUG: SMPP PDU dump ends.
2014-01-23 17:16:18 [7959] [28] DEBUG: SMPP[OpenSMPPBox1]: Sending PDU:
2014-01-23 17:16:18 [7959] [28] DEBUG: SMPP PDU 0x7f95cc001050 dump:
2014-01-23 17:16:18 [7959] [28] DEBUG:   type_name: bind_transceiver_resp
2014-01-23 17:16:18 [7959] [28] DEBUG:   command_id: 2147483657 = 0x80000009
2014-01-23 17:16:18 [7959] [28] DEBUG:   command_status: 13 = 0x0000000d
2014-01-23 17:16:18 [7959] [28] DEBUG:   sequence_number: 7 = 0x00000007
2014-01-23 17:16:18 [7959] [28] DEBUG:   system_id: NULL
2014-01-23 17:16:18 [7959] [28] DEBUG: SMPP PDU dump ends.
2014-01-23 17:16:19 [7959] [28] ERROR: Invalid SMPP PDU received.
2014-01-23 17:16:19 [7959] [28] DEBUG: Thread 28 (opensmppbox.c:smpp_to_bearerbox) terminates.
2014-01-23 17:16:20 [7959] [27] DEBUG: Thread 27 (opensmppbox.c:function) terminates.



[Kannel server]

* {kannel.conf}

#Kannel-Server Configuration
#--------------------------------------------

group = core
admin-port = 13000
admin-password = bar
dlr-storage = mysql
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;172.16.37.103"
smsbox-port = 13002

group = smsc
smsc = fake
smsc-id = Kannel-Server
host = 127.0.0.1
port = 13003

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13010

group = sendsms-user
username = kannel
password = password

group = mysql-connection
id = mydlr
host = localhost
username = root
password = password
database = sqlbox
# max count of connections that will be opened for dbpool
# default is 1
max-connections = 1

group = dlr-db
table = dlr
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc

* {sql.conf}
#SQLBox Server Configuration
#----------------------------------------------

group = sqlbox
id = sqlbox-db
smsbox-id = sqlbox
bearerbox-host = localhost
bearerbox-port = 13002
smsbox-port = 13005
smsbox-port-ssl = false
sql-log-table = sent_sms
sql-insert-table = send_sms

group = mysql-connection
id = sqlbox-db
host = localhost
username = root
password = vopium99
database = sqlbox
# you can increase this upon a higher load
max-connections = 1

group = sdb-connection
id = sqlbox-db
url = mysql:host=localhost:db=sqlbox:uid=root:pwd=password

* {opensmpp.conf}
#OpenSMPPBox Configuration
#----------------------------------------------

group = core
dlr-storage = mysql

group = opensmppbox
opensmppbox-id = OpenSMPPBox1
opensmppbox-port = 5019
bearerbox-host = localhost
bearerbox-port = 13005
log-level = 0
log-file = "/var/log/kannel/opensmppbox.log"
our-system-id = usern
#use-systemid-as-smsboxid = true
route-to-smsc = Kannel-Server
# see sample smpplogins.txt
smpp-logins = "/root/smpplogins.txt""
#smpp-logins = "/usr/run/gateway1/addons/opensmppbox/example/smpplogins.txt.example"

# the following is just standard dlr configuration

group = mysql-connection
id = mydlr
host = localhost
username = root
password = vopium99
database = sqlbox
# you can increase this upon a higher load
max-connections = 1

group = dlr-db
id = mydlr
table = smppdlr
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxcid

smpplogins.txt
usern passw SMPP *.*.*.*

[Kannel Client]

#
# KANNEL (client) CONFIGURATION
#--------------------------------------
# CORE
group=core
admin-port=14000
smsbox-port=14001
admin-password=bar
log-file="/var/log/kannel/bearerbox.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;172.16.37.109"
access-log="/var/log/kannel/bearerbox-access.log"
store-type=file
store-location="/var/log/kannel/kannel.store"

# SMSC CONNECTIONS
group = smsc
smsc = smpp
smsc-id = MVOIPdev
host = 172.16.37.103
port = 5019
system-id = usern
#smsc-username = usern
smsc-password = passw

address-range = ""
system-type = "SMPP"
transceiver-mode = true
interface-version = 34
log-level = 0
log-file = "/var/log/kannel/mvoip.log"

# SMSBOX SETUP
group = smsbox
smsbox-id = btel02
bearerbox-host = localhost
sendsms-port = 14013
#global-sender = 13013
#log-level = 4
log-file   = "/var/log/kannel/smsbox.log"
access-log = "/var/log/kannel/smsbox-access.log"

# SMSBOX Route
group = smsbox-route
smsbox-id = btel02
smsc-id = MVOIPdev

# SERVICES
group = sms-service
keyword = default
get-url = "url"
#
group = sendsms-user
username = usermv
password = ac4737ae

Thanks In Advance.
Regards
Hamid. R Hashmi
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [OpenSMPPBox] Invalid PDU, Bind Failed.

Hamid R. Hashmi
Still Waiting for your replies.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [OpenSMPPBox] Invalid PDU, Bind Failed.

Hamid R. Hashmi
In reply to this post by Hamid R. Hashmi
I figure out my mistake,

its just an extra " on smpplogins.txt.

Thanks to me. :p
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [OpenSMPPBox] Invalid PDU, Bind Failed.

Volvic Boy
Just... Thanks man !
Loading...