Opensmppbox issue: NACK/No SMSC

2013-09-28 Thread Saurabh Pandey
Hi,

I am submitting SMS from Kannel based SMPP client to a different server
having kannel based setup+opensmppbox+sqlbox stack. The SMS is always
getting REJECTED. The issuea are:

1.) Opemsmppbox is taking system-id (username in smpplogins.txt) as SMSC
and then rejecting it
2.) SQLBOX shows no activity except an error: sql_id cannot be null

I have this setup

SMSC--- BB --- SQLBOX  Opensmppbox --- SMPP client

// HERE ARE THE CONFIG FILES-//


//Kannel.conf

group=core
admin-port = 14000
smsbox-port = 13001
admin-password = sam
status-password =
log-file = /var/log/kannel/kannel.log
box-deny-ip = *.*.*.*
box-allow-ip = 127.0.0.1
access-log = /var/log/kannel/access.log
store-file = kannel.store
dlr-storage = mysql

#-
# SMSC CONNECTIONS

group=smsc
smsc = smpp
smsc-id = Promotional
host = xxx.xx.xxx.xxx
port = 
smsc-username = x
smsc-password = x
system-type = VMA
source-addr-ton = 0
source-addr-npi = 0
dest-addr-ton = 0
dest-addr-npi = 0
allowed-smsc-id = Promotional
transceiver-mode = true
receive-port = 



#-
# SMSBOX SETUP

group=smsbox
smsbox-id = main-box
bearerbox-host = 127.0.0.1
sendsms-port = 14014
global-sender = 14014
log-file = /tmp/smsbox.log
access-log = /tmp/access.log


group=smsbox-route
smsbox-id = smppclient
smsc-id = Promotional

#-
# SEND-SMS USERS

group=sendsms-user
username = sam
password = sam
max-messages = 5
concatenation = true


#-
# SERVICES

group=sms-service
keyword = nop
text = You asked nothing and I did it!

group=sms-service
keyword = default
get-url = 
http://domain.com/index.php?senderid=%Pphone=%preply=%asmscid=%i;
max-messages = 0

group = mysql-connection
id = mydlr
host = localhost
username = _sam
password = 
database = _xxx
max-connections = 5

group = dlr-db
id = mydlr
table = sc_kannel_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



// Opensmppbox.conf

group = core
dlr-storage = mysql

group = opensmppbox
opensmppbox-id = nvsmpp
opensmppbox-port = 2345
bearerbox-host = localhost
bearerbox-port = 13014
use-systemid-as-smsboxid = true
log-file = /var/log/smpp/smppbox.log
our-system-id = VSMSC
smpp-logins = smpplogins.txt

group = mysql-connection
id = mydlr
host = localhost
username = _xxx
password = 
database = _xxx

#DLR Table Structure
group = dlr-db
id = mydlr
table = sc_smpp_dlr
field-smsc = smsc
field-timestamp = timestamp
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc_id




// SQLbox.conf

group = sqlbox
id = sqlbox-db
smsbox-id = sqlbox
bearerbox-host = localhost
bearerbox-port = 13001
smsbox-port = 13014
smsbox-port-ssl = false
sql-log-table = sc_sqlbox_log
sql-insert-table = sc_smpp_incoming
log-file = /var/log/nvsmpp/test_smpp/sqlbox.log
log-level = 0

group = mysql-connection
id = sqlbox-db
host = localhost
username = x_xxx
password = xxx
database = _
# you can increase this upon a higher load
max-connections = 5

// SMPPlogins.txt file

smppclient goodsmpp testsmpp *.*.*.*




Now I've done everything as directed but still, its not working. Here is
what I got from SMPPBOXLOG file

//---SMPP PDU DUMP-

2013-09-28 02:14:17 [2578] [11] DEBUG: SMPP[smppclient]: Got PDU:
2013-09-28 02:14:17 [2578] [11] DEBUG: SMPP PDU 0x7f9874001380 dump:
2013-09-28 02:14:17 [2578] [11] DEBUG:   type_name: submit_sm
2013-09-28 02:14:17 [2578] [11] DEBUG:   command_id: 4 = 0x0004
2013-09-28 02:14:17 [2578] [11] DEBUG:   command_status: 0 = 0x
2013-09-28 02:14:17 [2578] [11] DEBUG:   sequence_number: 2377 = 0x0949
2013-09-28 02:14:17 [2578] [11] DEBUG:   service_type: NULL
2013-09-28 02:14:17 [2578] [11] DEBUG:   source_addr_ton: 5 = 0x0005
2013-09-28 02:14:17 [2578] [11] DEBUG:   source_addr_npi: 0 = 0x
2013-09-28 02:14:17 [2578] [11] DEBUG:   source_addr: OPAUTO
2013-09-28 02:14:17 [2578] [11] DEBUG:   dest_addr_ton: 0 = 0x
2013-09-28 02:14:17 [2578] [11] DEBUG:   dest_addr_npi: 0 = 0x
2013-09-28 02:14:17 [2578] [11] DEBUG:   destination_addr: 9694304016
2013-09-28 02:14:17 [2578] [11] DEBUG:   esm_class: 3 = 0x0003
2013-09-28 02:14:17 [2578] [11] DEBUG:   protocol_id: 0 = 0x
2013-09-28 02:14:17 [2578] [11] DEBUG:   priority_flag: 0 = 0x
2013-09-28 02:14:17 [2578] [11] DEBUG:   schedule_delivery_time: NULL
2013-09-28 02:14:17 [2578] [11] DEBUG:   validity_period: NULL
2013-09-28 02:14:17 [2578] [11] DEBUG:   registered_delivery: 1 = 0x0001
2013-09-28 02:14:17 [2578] [11] DEBUG:   replace_if_present_flag: 0 =
0x
2013-09-28 02:14:17 [2578] 

Opensmppbox issue: NACK/No SMSC

2013-09-28 Thread Minh Tuan
You should add into your Opensmppbox.conf on Kannel server:
route-to-smsc = Promotional

Try to submit another message and paste the bearerbox-asscess.log of Kannel
server here for more information. Thank you.

Brs,
Tuan.


 --

 Message: 2
 Date: Sat, 28 Sep 2013 12:49:47 +0530
 From: Saurabh Pandey sam.it.develo...@gmail.com
 To: users@kannel.org
 Subject: Opensmppbox issue: NACK/No SMSC
 Message-ID:
 
 cahipy2xp1-upxqd_0bt-y4efsv3xqqu2hvg9ro7-lu6qzav...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1

 Hi,

 I am submitting SMS from Kannel based SMPP client to a different server
 having kannel based setup+opensmppbox+sqlbox stack. The SMS is always
 getting REJECTED. The issuea are:

 1.) Opemsmppbox is taking system-id (username in smpplogins.txt) as SMSC
 and then rejecting it
 2.) SQLBOX shows no activity except an error: sql_id cannot be null

 I have this setup

 SMSC--- BB --- SQLBOX  Opensmppbox --- SMPP client

 // HERE ARE THE CONFIG FILES-//


 //Kannel.conf

 group=core
 admin-port = 14000
 smsbox-port = 13001
 admin-password = sam
 status-password =
 log-file = /var/log/kannel/kannel.log
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 access-log = /var/log/kannel/access.log
 store-file = kannel.store
 dlr-storage = mysql

 #-
 # SMSC CONNECTIONS

 group=smsc
 smsc = smpp
 smsc-id = Promotional
 host = xxx.xx.xxx.xxx
 port = 
 smsc-username = x
 smsc-password = x
 system-type = VMA
 source-addr-ton = 0
 source-addr-npi = 0
 dest-addr-ton = 0
 dest-addr-npi = 0
 allowed-smsc-id = Promotional
 transceiver-mode = true
 receive-port = 



 #-
 # SMSBOX SETUP

 group=smsbox
 smsbox-id = main-box
 bearerbox-host = 127.0.0.1
 sendsms-port = 14014
 global-sender = 14014
 log-file = /tmp/smsbox.log
 access-log = /tmp/access.log


 group=smsbox-route
 smsbox-id = smppclient
 smsc-id = Promotional

 #-
 # SEND-SMS USERS

 group=sendsms-user
 username = sam
 password = sam
 max-messages = 5
 concatenation = true


 #-
 # SERVICES

 group=sms-service
 keyword = nop
 text = You asked nothing and I did it!

 group=sms-service
 keyword = default
 get-url = 
 http://domain.com/index.php?senderid=%Pphone=%preply=%asmscid=%i;
 max-messages = 0

 group = mysql-connection
 id = mydlr
 host = localhost
 username = _sam
 password = 
 database = _xxx
 max-connections = 5

 group = dlr-db
 id = mydlr
 table = sc_kannel_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



 // Opensmppbox.conf

 group = core
 dlr-storage = mysql

 group = opensmppbox
 opensmppbox-id = nvsmpp
 opensmppbox-port = 2345
 bearerbox-host = localhost
 bearerbox-port = 13014
 use-systemid-as-smsboxid = true
 log-file = /var/log/smpp/smppbox.log
 our-system-id = VSMSC
 smpp-logins = smpplogins.txt

 group = mysql-connection
 id = mydlr
 host = localhost
 username = _xxx
 password = 
 database = _xxx

 #DLR Table Structure
 group = dlr-db
 id = mydlr
 table = sc_smpp_dlr
 field-smsc = smsc
 field-timestamp = timestamp
 field-destination = destination
 field-source = source
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc_id




 // SQLbox.conf

 group = sqlbox
 id = sqlbox-db
 smsbox-id = sqlbox
 bearerbox-host = localhost
 bearerbox-port = 13001
 smsbox-port = 13014
 smsbox-port-ssl = false
 sql-log-table = sc_sqlbox_log
 sql-insert-table = sc_smpp_incoming
 log-file = /var/log/nvsmpp/test_smpp/sqlbox.log
 log-level = 0

 group = mysql-connection
 id = sqlbox-db
 host = localhost
 username = x_xxx
 password = xxx
 database = _
 # you can increase this upon a higher load
 max-connections = 5

 // SMPPlogins.txt file

 smppclient goodsmpp testsmpp *.*.*.*




 Now I've done everything as directed but still, its not working. Here is
 what I got from SMPPBOXLOG file

 //---SMPP PDU DUMP-

 2013-09-28 02:14:17 [2578] [11] DEBUG: SMPP[smppclient]: Got PDU:
 2013-09-28 02:14:17 [2578] [11] DEBUG: SMPP PDU 0x7f9874001380 dump:
 2013-09-28 02:14:17 [2578] [11] DEBUG:   type_name: submit_sm
 2013-09-28 02:14:17 [2578] [11] DEBUG:   command_id: 4 = 0x0004
 2013-09-28 02:14:17 [2578] [11] DEBUG:   command_status: 0 = 0x
 2013-09-28 02:14:17 [2578] [11] DEBUG:   sequence_number: 2377 = 0x0949
 2013-09-28 02:14:17 [2578] [11] DEBUG:   service_type: NULL
 2013-09-28 02:14:17 [2578] [11] DEBUG:   source_addr_ton: 5 = 0x0005
 2013-09-28 02:14:17 [2578] [11] DEBUG:   source_addr_npi: 0 = 0x
 2013-09-28 02:14:17 [2578] [11] DEBUG:   source_addr: OPAUTO
 2013-09-28 02:14:17 [2578

Re: Opensmppbox issue: NACK/No SMSC

2013-09-28 Thread Saurabh Pandey
Hi,

thanks for the reply. But I want different smsc routing for different smpp
clients. If i add route-to-smsc, wouldn't that direct all traffic to a
single smsc?



On Sat, Sep 28, 2013 at 1:50 PM, Minh Tuan handsam...@gmail.com wrote:

 You should add into your Opensmppbox.conf on Kannel server:
 route-to-smsc = Promotional

 Try to submit another message and paste the bearerbox-asscess.log of
 Kannel server here for more information. Thank you.

 Brs,
 Tuan.


 --

 Message: 2
 Date: Sat, 28 Sep 2013 12:49:47 +0530
 From: Saurabh Pandey sam.it.develo...@gmail.com
 To: users@kannel.org
 Subject: Opensmppbox issue: NACK/No SMSC
 Message-ID:
 
 cahipy2xp1-upxqd_0bt-y4efsv3xqqu2hvg9ro7-lu6qzav...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1

 Hi,

 I am submitting SMS from Kannel based SMPP client to a different server
 having kannel based setup+opensmppbox+sqlbox stack. The SMS is always
 getting REJECTED. The issuea are:

 1.) Opemsmppbox is taking system-id (username in smpplogins.txt) as SMSC
 and then rejecting it
 2.) SQLBOX shows no activity except an error: sql_id cannot be null

 I have this setup

 SMSC--- BB --- SQLBOX  Opensmppbox --- SMPP client

 // HERE ARE THE CONFIG FILES-//


 //Kannel.conf

 group=core
 admin-port = 14000
 smsbox-port = 13001
 admin-password = sam
 status-password =
 log-file = /var/log/kannel/kannel.log
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 access-log = /var/log/kannel/access.log
 store-file = kannel.store
 dlr-storage = mysql

 #-
 # SMSC CONNECTIONS

 group=smsc
 smsc = smpp
 smsc-id = Promotional
 host = xxx.xx.xxx.xxx
 port = 
 smsc-username = x
 smsc-password = x
 system-type = VMA
 source-addr-ton = 0
 source-addr-npi = 0
 dest-addr-ton = 0
 dest-addr-npi = 0
 allowed-smsc-id = Promotional
 transceiver-mode = true
 receive-port = 



 #-
 # SMSBOX SETUP

 group=smsbox
 smsbox-id = main-box
 bearerbox-host = 127.0.0.1
 sendsms-port = 14014
 global-sender = 14014
 log-file = /tmp/smsbox.log
 access-log = /tmp/access.log


 group=smsbox-route
 smsbox-id = smppclient
 smsc-id = Promotional

 #-
 # SEND-SMS USERS

 group=sendsms-user
 username = sam
 password = sam
 max-messages = 5
 concatenation = true


 #-
 # SERVICES

 group=sms-service
 keyword = nop
 text = You asked nothing and I did it!

 group=sms-service
 keyword = default
 get-url = 
 http://domain.com/index.php?senderid=%Pphone=%preply=%asmscid=%i;
 max-messages = 0

 group = mysql-connection
 id = mydlr
 host = localhost
 username = _sam
 password = 
 database = _xxx
 max-connections = 5

 group = dlr-db
 id = mydlr
 table = sc_kannel_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



 // Opensmppbox.conf

 group = core
 dlr-storage = mysql

 group = opensmppbox
 opensmppbox-id = nvsmpp
 opensmppbox-port = 2345
 bearerbox-host = localhost
 bearerbox-port = 13014
 use-systemid-as-smsboxid = true
 log-file = /var/log/smpp/smppbox.log
 our-system-id = VSMSC
 smpp-logins = smpplogins.txt

 group = mysql-connection
 id = mydlr
 host = localhost
 username = _xxx
 password = 
 database = _xxx

 #DLR Table Structure
 group = dlr-db
 id = mydlr
 table = sc_smpp_dlr
 field-smsc = smsc
 field-timestamp = timestamp
 field-destination = destination
 field-source = source
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc_id




 // SQLbox.conf

 group = sqlbox
 id = sqlbox-db
 smsbox-id = sqlbox
 bearerbox-host = localhost
 bearerbox-port = 13001
 smsbox-port = 13014
 smsbox-port-ssl = false
 sql-log-table = sc_sqlbox_log
 sql-insert-table = sc_smpp_incoming
 log-file = /var/log/nvsmpp/test_smpp/sqlbox.log
 log-level = 0

 group = mysql-connection
 id = sqlbox-db
 host = localhost
 username = x_xxx
 password = xxx
 database = _
 # you can increase this upon a higher load
 max-connections = 5

 // SMPPlogins.txt file

 smppclient goodsmpp testsmpp *.*.*.*




 Now I've done everything as directed but still, its not working. Here is
 what I got from SMPPBOXLOG file

 //---SMPP PDU DUMP-

 2013-09-28 02:14:17 [2578] [11] DEBUG: SMPP[smppclient]: Got PDU:
 2013-09-28 02:14:17 [2578] [11] DEBUG: SMPP PDU 0x7f9874001380 dump:
 2013-09-28 02:14:17 [2578] [11] DEBUG:   type_name: submit_sm
 2013-09-28 02:14:17 [2578] [11] DEBUG:   command_id: 4 = 0x0004
 2013-09-28 02:14:17 [2578] [11] DEBUG:   command_status: 0 = 0x
 2013-09-28 02:14:17 [2578] [11] DEBUG:   sequence_number: 2377 =
 0x0949
 2013-09-28 02:14:17 [2578] [11] DEBUG