If your opensmppbox died in the example below (I can't see from your log
files) then maybe doing a fresh svn update will help you.

 

== Rene

 

From: users-boun...@vm1.kannel.org [mailto:users-boun...@vm1.kannel.org] On
Behalf Of Rene Kluwen
Sent: Sunday, 12 August, 2012 16:14
To: 'admin'
Cc: us...@vm1.kannel.org
Subject: RE: Where I can download the previous version of opensmppbox

 

Please use the users list to ask questions like this.

PHP scripts is outside the scope of this mailing list. Besides: if you are
using php: why not stick to php's native protocol and use http? It will work
a lot better.

 

== Rene

 

 

From: admin [mailto:ad...@platbox.ru] 
Sent: Saturday, 11 August, 2012 17:02
To: Rene Kluwen
Subject: Re: Where I can download the previous version of opensmppbox

 

Hmm, may be then you can advice where I can download the correct working PHP
script

11.08.2012 18:30, Rene Kluwen пишет:

Looks like this is rather a bug or misconfiguration in your php client than
in opensmppbox.

 

=+= Rene

 

From: users-boun...@vm1.kannel.org [mailto:users-boun...@vm1.kannel.org] On
Behalf Of admin
Sent: Saturday, 11 August, 2012 14:59
To: spameden; us...@vm1.kannel.org
Subject: Re: Where I can download the previous version of opensmppbox

 

Here is the log after use log-level=0

2012-08-11 16:50:56 [31043] [0] INFO: Waiting for SMPP connections on port
13006.
2012-08-11 16:51:18 [31043] [0] DEBUG: Started thread 1
(opensmppbox.c:function)
2012-08-11 16:51:18 [31043] [1] DEBUG: Thread 1 (opensmppbox.c:function)
maps to pid 31043.
2012-08-11 16:51:18 [31043] [1] INFO: Client connected from <1.1.1.1>
2012-08-11 16:51:18 [31043] [1] DEBUG: Connecting to <1.1.1.1>
2012-08-11 16:51:18 [31043] [1] INFO: Connected to bearerbox at 1.1.1.1 port
13001.
2012-08-11 16:51:18 [31043] [1] DEBUG: Started thread 2
(opensmppbox.c:smpp_to_bearerbox)
2012-08-11 16:51:18 [31043] [1] ERROR: opensmppbox: bearerbox_to_smpp:
thread starts
2012-08-11 16:51:18 [31043] [2] DEBUG: Thread 2
(opensmppbox.c:smpp_to_bearerbox) maps to pid 31043.
2012-08-11 16:51:18 [31043] [2] ERROR: opensmppbox: smpp_to_bearerbox:
thread starts
2012-08-11 16:51:18 [31043] [2] DEBUG: SMPP[(null)]: Got PDU:
2012-08-11 16:51:18 [31043] [2] DEBUG: SMPP PDU 0xa113588 dump:
2012-08-11 16:51:18 [31043] [2] DEBUG:   type_name: bind_transmitter
2012-08-11 16:51:18 [31043] [2] DEBUG:   command_id: 2 = 0x00000002
2012-08-11 16:51:18 [31043] [2] DEBUG:   command_status: 0 = 0x00000000
2012-08-11 16:51:18 [31043] [2] DEBUG:   sequence_number: 1 = 0x00000001
2012-08-11 16:51:18 [31043] [2] DEBUG:   system_id: "user_09"
2012-08-11 16:51:18 [31043] [2] DEBUG:   password: ""
2012-08-11 16:51:18 [31043] [2] DEBUG:   system_type: "smpp3"
2012-08-11 16:51:18 [31043] [2] DEBUG:   interface_version: 52 = 0x00000034
2012-08-11 16:51:18 [31043] [2] DEBUG:   addr_ton: 0 = 0x00000000
2012-08-11 16:51:18 [31043] [2] DEBUG:   addr_npi: 1 = 0x00000001
2012-08-11 16:51:18 [31043] [2] DEBUG:   address_range: NULL
2012-08-11 16:51:18 [31043] [2] DEBUG: SMPP PDU dump ends.
2012-08-11 16:51:18 [31043] [2] DEBUG: Client connected with id smpp3
2012-08-11 16:51:18 [31043] [2] DEBUG: SMPP[smpp3]: Sending PDU:
2012-08-11 16:51:18 [31043] [2] DEBUG: SMPP PDU 0xa1175a0 dump:
2012-08-11 16:51:18 [31043] [2] DEBUG:   type_name: bind_transmitter_resp
2012-08-11 16:51:18 [31043] [2] DEBUG:   command_id: 2147483650 = 0x80000002
2012-08-11 16:51:18 [31043] [2] DEBUG:   command_status: 0 = 0x00000000
2012-08-11 16:51:18 [31043] [2] DEBUG:   sequence_number: 1 = 0x00000001
2012-08-11 16:51:18 [31043] [2] DEBUG:   system_id: "test1"
2012-08-11 16:51:18 [31043] [2] DEBUG: SMPP PDU dump ends.
2012-08-11 16:51:19 [31043] [2] DEBUG: SMPP[smpp3]: Got PDU:
2012-08-11 16:51:19 [31043] [2] DEBUG: SMPP PDU 0xa113588 dump:
2012-08-11 16:51:19 [31043] [2] DEBUG:   type_name: submit_sm
2012-08-11 16:51:19 [31043] [2] DEBUG:   command_id: 4 = 0x00000004
2012-08-11 16:51:19 [31043] [2] DEBUG:   command_status: 0 = 0x00000000
2012-08-11 16:51:19 [31043] [2] DEBUG:   sequence_number: 2 = 0x00000002
2012-08-11 16:51:19 [31043] [2] DEBUG:   service_type: NULL
2012-08-11 16:51:19 [31043] [2] DEBUG:   source_addr_ton: 5 = 0x00000005
2012-08-11 16:51:19 [31043] [2] DEBUG:   source_addr_npi: 1 = 0x00000001
2012-08-11 16:51:19 [31043] [2] DEBUG:   source_addr: "user_0909"
2012-08-11 16:51:19 [31043] [2] DEBUG:   dest_addr_ton: 1 = 0x00000001
2012-08-11 16:51:19 [31043] [2] DEBUG:   dest_addr_npi: 1 = 0x00000001
2012-08-11 16:51:19 [31043] [2] DEBUG:   destination_addr: "7926111111"
2012-08-11 16:51:19 [31043] [2] DEBUG:   esm_class: 0 = 0x00000000
2012-08-11 16:51:19 [31043] [2] DEBUG:   protocol_id: 0 = 0x00000000
2012-08-11 16:51:19 [31043] [2] DEBUG:   priority_flag: 0 = 0x00000000
2012-08-11 16:51:19 [31043] [2] DEBUG:   schedule_delivery_time: NULL
2012-08-11 16:51:19 [31043] [2] DEBUG:   validity_period: NULL
2012-08-11 16:51:19 [31043] [2] DEBUG:   registered_delivery: 0 = 0x00000000
2012-08-11 16:51:19 [31043] [2] DEBUG:   replace_if_present_flag: 0 =
0x00000000
2012-08-11 16:51:19 [31043] [2] DEBUG:   data_coding: 8 = 0x00000008
2012-08-11 16:51:19 [31043] [2] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2012-08-11 16:51:19 [31043] [2] DEBUG:   sm_length: 38 = 0x00000026
2012-08-11 16:51:19 [31043] [2] DEBUG:   short_message:
2012-08-11 16:51:19 [31043] [2] DEBUG:    Octet string at 0xa116ca8:
2012-08-11 16:51:19 [31043] [2] DEBUG:      len:  38
2012-08-11 16:51:19 [31043] [2] DEBUG:      size: 39
2012-08-11 16:51:19 [31043] [2] DEBUG:      immutable: 0
2012-08-11 16:51:19 [31043] [2] DEBUG:      data: 04 22 04 35 04 41 04 42 00
20 00 73 00 6d 00 70   .".5.A.B. .s.m.p
2012-08-11 16:51:19 [31043] [2] DEBUG:      data: 00 70 00 20 04 3f 04 40 04
3e 04 42 04 3e 04 3a   .p. .?.@. <mailto:.?.@.%3e.B> >.B.>.:
2012-08-11 16:51:19 [31043] [2] DEBUG:      data: 04 3e 04 3b 04 30
.>.;.0
2012-08-11 16:51:19 [31043] [2] DEBUG:    Octet string dump ends.
2012-08-11 16:51:19 [31043] [2] DEBUG: SMPP PDU dump ends.
2012-08-11 16:51:19 [31043] [1] DEBUG: SMPP[smpp3]: Sending PDU:
2012-08-11 16:51:19 [31043] [1] DEBUG: SMPP PDU 0xa115328 dump:
2012-08-11 16:51:19 [31043] [1] DEBUG:   type_name: submit_sm_resp
2012-08-11 16:51:19 [31043] [1] DEBUG:   command_id: 2147483652 = 0x80000004
2012-08-11 16:51:19 [31043] [1] DEBUG:   command_status: 0 = 0x00000000
2012-08-11 16:51:19 [31043] [1] DEBUG:   sequence_number: 2 = 0x00000002
2012-08-11 16:51:19 [31043] [1] DEBUG:   message_id: "f35e60b4"
2012-08-11 16:51:19 [31043] [1] DEBUG: SMPP PDU dump ends.
2012-08-11 16:51:20 [31043] [2] DEBUG: SMPP[smpp3]: Got PDU:
2012-08-11 16:51:20 [31043] [2] DEBUG: SMPP PDU 0xa113670 dump:
2012-08-11 16:51:20 [31043] [2] DEBUG:   type_name: unbind
2012-08-11 16:51:20 [31043] [2] DEBUG:   command_id: 6 = 0x00000006
2012-08-11 16:51:20 [31043] [2] DEBUG:   command_status: 0 = 0x00000000
2012-08-11 16:51:20 [31043] [2] DEBUG:   sequence_number: 3 = 0x00000003
2012-08-11 16:51:20 [31043] [2] DEBUG: SMPP PDU dump ends.
2012-08-11 16:51:20 [31043] [2] DEBUG: SMPP[smpp3]: Sending PDU:
2012-08-11 16:51:20 [31043] [2] DEBUG: SMPP PDU 0xa115328 dump:
2012-08-11 16:51:20 [31043] [2] DEBUG:   type_name: unbind_resp
2012-08-11 16:51:20 [31043] [2] DEBUG:   command_id: 2147483654 = 0x80000006
2012-08-11 16:51:20 [31043] [2] DEBUG:   command_status: 0 = 0x00000000
2012-08-11 16:51:20 [31043] [2] DEBUG:   sequence_number: 3 = 0x00000003
2012-08-11 16:51:20 [31043] [2] DEBUG: SMPP PDU dump ends.
2012-08-11 16:51:20 [31043] [2] ERROR: opensmppbox: smpp_to_bearerbox:
thread terminates                  #same error
2012-08-11 16:51:20 [31043] [2] DEBUG: Thread 2
(opensmppbox.c:smpp_to_bearerbox) terminates.
2012-08-11 16:51:20 [31043] [1] ERROR: opensmppbox: bearerbox_to_smpp:
thread terminates                  #same error
2012-08-11 16:51:20 [31043] [1] DEBUG: Thread 1 (opensmppbox.c:function)
terminates.
2012-08-11 16:51:21 [31043] [0] INFO: No more waiting for SMPP connections.
2012-08-11 16:51:21 [31043] [0] DEBUG: Immutable octet strings: 125.
2012-08-11 16:51:56 [31060] [0] INFO: Added logfile
`/var/log/kannel/opensmppbox.log' with level `0'.      #restart





11.08.2012 16:28, spameden пишет:

To identify a problem you need to use log-level = 0.

2012/8/11 admin <ad...@platbox.ru>

08.08.2012 18:31, Rene Kluwen пишет:

The error is self-explanatory:

 

Mallformed addr `TestSMSSender', alphanum length greater 11 chars.

Alpha sender addresses have a maximum length of 11 characters.

 

== Rene

 

From: admin [mailto:ad...@platbox.ru] 


Good time of day.

After last change, my opensmppbox is working. But after sendeing 2 or 3 sms
one after one, it crushes. :(
After that the kannel script runs opensmppbox again, usually after one
minute.
At this time I have working PHP script, sending sms, it works correct with
the other kannel server.
Here are the debug logs.


2012-08-11 15:41:46 [30830] [0] INFO: Added logfile
`/var/log/kannel/opensmppbox.log' with level `1'.
2012-08-11 15:41:46 [30830] [0] WARNING: DLR: using default 'internal' for
storage type.
2012-08-11 15:41:46 [30830] [0] INFO: DLR using storage type: internal
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: Connected to server at
192.168.102.2.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: server version
5.1.63-0+squeeze1-log, client version 5.1.61.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: Connected to server at
192.168.102.2.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: server version
5.1.63-0+squeeze1-log, client version 5.1.61.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: Connected to server at
192.168.102.2.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: server version
5.1.63-0+squeeze1-log, client version 5.1.61.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: Connected to server at
192.168.102.2.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: server version
5.1.63-0+squeeze1-log, client version 5.1.61.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: Connected to server at
192.168.102.2.
2012-08-11 15:41:46 [30830] [0] INFO: MYSQL: server version
5.1.63-0+squeeze1-log, client version 5.1.61.
2012-08-11 15:41:46 [30830] [0] INFO: opensmppbox DLR storage using type:
mysql
2012-08-11 15:41:46 [30830] [0] INFO: Waiting for SMPP connections on port
13006.
2012-08-11 15:41:48 [30830] [1] INFO: Client connected from <1.1.1.1>
2012-08-11 15:41:48 [30830] [1] INFO: Connected to bearerbox at 1.1.1.1 port
13001.
2012-08-11 15:41:48 [30830] [1] ERROR: opensmppbox: bearerbox_to_smpp:
thread starts                      # the errors
2012-08-11 15:41:48 [30830] [2] ERROR: opensmppbox: smpp_to_bearerbox:
thread starts                      # the errors
2012-08-11 15:41:50 [30830] [2] ERROR: opensmppbox: smpp_to_bearerbox:
thread terminates             # the errors
2012-08-11 15:41:50 [30830] [1] ERROR: opensmppbox: bearerbox_to_smpp:
thread terminates             # the errors
2012-08-11 15:41:51 [30830] [0] INFO: No more waiting for SMPP connections.
2012-08-11 15:42:46 [30844] [0] INFO: Added logfile
`/var/log/kannel/opensmppbox.log' with level `1'.   # restart by kannel
service. After that I can send 2-3 sms, and it crashes again.

There are my config files 



kannel.conf

group = core
admin-port = 13000
admin-password = 
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
smsbox-port = 13001
log-file = "/var/log/kannel/bearerbox.log"
log-level = 0
access-log = "/var/log/kannel/kannel-access.log"
#box-deny-ip = "*.*.*.*"
box-allow-ip = "0.0.0.0"
dlr-storage = mysql
smsbox-max-pending = 100
sms-resend-retry = 20
sms-resend-freq = 180
#unified-prefix = ",+"

ssl-server-cert-file="/home/aamst/commcert/cert.crt"
ssl-server-key-file="/home/aamst/commcert/cert.key" 



group = mysql-connection
id = dlr
host = 192.168.102.2
username = sms

password = 
database = smsbox
port = 3306
max-connections = 5

group = dlr-db
id = dlr
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 = boxcid

group = smsbox
bearerbox-host = 1.1.1.1
bearerbox-port = 13005
sendsms-port = 13131
sendsms-port-ssl = false
mo-recode = 1
sendsms-chars = "0123456789"
reply-couldnotfetch = "Service unavailable"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0

group = sendsms-user

username = example
password = 
default-sender = "platbox"
user-deny-ip = "11.11.11.11" 


user-allow-ip = "*.*.*.*"
max-messages = 3
omit-empty = true
split-chars = "|"
concatenation = true

group = sendsms-user
username = user09
password = 
default-sender = "09"
user-deny-ip = "11.11.11.11" 


user-allow-ip = "*.*.*.*"
max-messages = 5
omit-empty = true
split-chars = "|"
concatenation = true
default-smsc = process

group = smsc
smsc = smpp
smsc-id = process
allowed-smsc-id = process

host = smpp3.test.ru
port = 8888
transceiver-mode = 1
smsc-username = "test1" 


smsc-password = 
system-type = NULL
source-addr-ton = 0x00
source-addr-npi = 0x00
dest-addr-ton = 0x00
dest-addr-npi = 0x00
reconnect-delay = 20
enquire-link-interval = 30
log-file = "/var/log/kannel/smsc-operator-process.log"
log-level = 0

group = sms-service
keyword = default
catch-all = true
accepted-smsc = "process"
text = Hello
max-messages = 5
concatenation = true
omit-empty = true
accept-x-kannel-headers = true




sqlbox.conf
group = sqlbox
id = sqlbox-db
smsbox-id = sqlbox
#global-sender = ""

bearerbox-host = 1.1.1.1 


bearerbox-port = 13001
smsbox-port = 13005
smsbox-port-ssl = false
sql-log-table = sent_sms
sql-insert-table = send_sms
check-balance = 1
log-file = "/var/log/kannel/kannel-sqlbox.log"
log-level = 0
#access-log = "/var/log/kannel/sqlaccess.log"
#ssl-client-certkey-file = ""
#ssl-server-cert-file = ""
#ssl-server-key-file = ""
#ssl-trusted-ca-file = ""

# Database connection examples. Please uncomment as needed

# Example MYSQL Connection
group = mysql-connection
id = sqlbox-db

host = 192.168.102.2
username = sms 


password = 
database = smsbox
port = 3306
max-connections = 5




smppbox.conf
group = core
#dlr-storage = mysql

# this group defines your opensmppbox
group = opensmppbox
box-dlr-storage = mysql
# our boxc type
opensmppbox-id = opensmppbox
# the port to listen on for smpp connections
opensmppbox-port = 13006
# we connect to the following host as a box

bearerbox-host = 1.1.1.1
bearerbox-port = 13001 


#bearerbox-dcs = utf-8
log-level = 1
log-file = /var/log/kannel/opensmppbox.log
our-system-id = platbox
route-to-smsc = process

smpp-logins = "/etc/opensmppbox/clients"

# the following is just standard dlr configuration

group = mysql-connection
id = dlr

host = 192.168.102.2
username = sms 


password = 
database = smsbox
port = 3306
# you can increase this upon a higher load
max-connections = 5

group = dlr-db
id = dlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-source = source

field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxcid












 

 

 

 

Reply via email to