Hello,

Thats the problem, please tell me how do i check bearerbox timeout setting?

To my main host there are 2 other smpp running very fine just this one
which i made locally it is disconnecting there...

check this my kannel.conf file..

# CORE GROUP

group = core
admin-port = 13000
smsbox-port = 13002
admin-password = bar
status-password = foo
log-file = "/var/log/kannel/kannel.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#sms-combine-concatenated-mo = true

# Smsbox related

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 8398767
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
#black-list = "http://localhost/blk-list.txt";
#sms-length = 1000


# SMS SERVICES for GSM 2 Ufone (74)

group = smsc
smsc = at
smsc-id = ufone75
modemtype = auto
device=/dev/ttyUSB1
speed = auto
keepalive = 60
my-number = 00920000000000
sms-center= 00920000000000
connect-allow-ip = 127.0.0.1
log-level = 0
log-file = "/var/log/modem_74.log"
sim-buffering = true

# SEND-SMS USERS

group = sendsms-user
username = user
password = pass
concatenation= true
max-messages = 3

include = "/etc/kannel/modems.conf"


group = sms-service
keyword = default
get-url = "
http://localhost/sms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a
"
catch-all = yes
max-messages = 0
accept-x-kannel-headers = true
concatenation = yes
omit-empty = yes


On Sun, Jun 8, 2014 at 2:23 AM, MOSES KARIUKI <kariuk...@gmail.com> wrote:

> Hi Mirza,
>
> That's a strange behavior. Check one of the bearerbox timeout settings.
> Wish you pasted the whole kannel.conf
>
> Moses
>
>
> On Sat, Jun 7, 2014 at 10:14 PM, Faizan Mirza <efuz...@gmail.com> wrote:
>
>> Hello,
>>
>> I have setup kannel gateway with all config data..
>>
>> when i connect smpp from another server it is connected but after 20-30s
>> it again disconnect and connect...
>>
>> opensmppbox.conf
>>
>> group = core
>> dlr-storage = internal
>>
>> group = opensmppbox
>> opensmppbox-id = smpp
>> opensmppbox-port = 2775
>> bearerbox-host = 127.0.0.1
>> bearerbox-port = 13000
>> log-level = 0
>> log-file = /var/log/kannel/smppbox.log
>> our-system-id = smpp
>> route-to-smsc = ufone75
>> smpp-logins = /etc/kannel/smpplogins.txt
>> use-systemid-as-smsboxid = true
>>
>> smpplogins.txt
>> username password smsc *.*.*.*
>>
>>
>> my another server kannel.conf smpp connection...
>>
>> # SMSC SMPP
>> group = smsc
>> smsc = smpp
>> smsc-id = localHost
>> host = "sms.domain.net"
>> port = 2775
>> receive-port = 2775
>> smsc-username = username
>> smsc-password = password
>> system-type = default
>> allowed-prefix = 91
>> throughput=0.1
>> log-file = "/var/log/local-host.log"
>> ##address-range =
>>
>>
>>
>> smppbox.log
>>
>> 2014-06-07 23:58:01 [17261] [66] DEBUG: Thread 66
>> (opensmppbox.c:smpp_to_bearerbox) terminates.
>> 2014-06-07 23:58:01 [17261] [65] DEBUG: Thread 65
>> (opensmppbox.c:function) terminates.
>> 2014-06-07 23:58:01 [17261] [67] ERROR: Connection closed by the
>> bearerbox.
>> 2014-06-07 23:58:02 [17261] [68] DEBUG: Thread 68
>> (opensmppbox.c:smpp_to_bearerbox) terminates.
>> 2014-06-07 23:58:02 [17261] [67] DEBUG: Thread 67
>> (opensmppbox.c:function) terminates.
>> 2014-06-07 23:58:12 [17261] [0] DEBUG: Started thread 69
>> (opensmppbox.c:function)
>> 2014-06-07 23:58:12 [17261] [69] DEBUG: Thread 69
>> (opensmppbox.c:function) maps to pid 17261.
>> 2014-06-07 23:58:12 [17261] [69] INFO: Client connected from
>> <172.xxx.xxx.xxx>
>> 2014-06-07 23:58:12 [17261] [69] DEBUG: Connecting to <127.0.0.1>
>> 2014-06-07 23:58:12 [17261] [69] INFO: Connected to bearerbox at
>> 127.0.0.1 port 13000.
>> 2014-06-07 23:58:12 [17261] [69] DEBUG: Started thread 70
>> (opensmppbox.c:smpp_to_bearerbox)
>> 2014-06-07 23:58:12 [17261] [70] DEBUG: Thread 70
>> (opensmppbox.c:smpp_to_bearerbox) maps to pid 17261.
>> 2014-06-07 23:58:12 [17261] [70] DEBUG: SMPP[smpp]: Got PDU:
>> 2014-06-07 23:58:12 [17261] [70] DEBUG: SMPP PDU 0x7fa5d4000910 dump:
>> 2014-06-07 23:58:12 [17261] [70] DEBUG:   type_name: bind_receiver
>> 2014-06-07 23:58:12 [17261] [70] DEBUG:   command_id: 1 = 0x00000001
>> 2014-06-07 23:58:12 [17261] [70] DEBUG:   command_status: 0 = 0x00000000
>> 2014-06-07 23:58:12 [17261] [70] DEBUG:   sequence_number: 399 =
>> 0x0000018f
>> 2014-06-07 23:58:12 [17261] [70] DEBUG:   system_id: "username"
>> 2014-06-07 23:58:12 [17261] [70] DEBUG:   password: "password"
>> 2014-06-07 23:58:12 [17261] [70] DEBUG:   system_type: "default"
>> 2014-06-07 23:58:12 [17261] [70] DEBUG:   interface_version: 52 =
>> 0x00000034
>> 2014-06-07 23:58:12 [17261] [70] DEBUG:   addr_ton: 0 = 0x00000000
>> 2014-06-07 23:58:12 [17261] [70] DEBUG:   addr_npi: 0 = 0x00000000
>> 2014-06-07 23:58:12 [17261] [70] DEBUG:   address_range: NULL
>> 2014-06-07 23:58:12 [17261] [70] DEBUG: SMPP PDU dump ends.
>> 2014-06-07 23:58:12 [17261] [70] DEBUG: SMPP[username]: Sending PDU:
>> 2014-06-07 23:58:12 [17261] [70] DEBUG: SMPP PDU 0x7fa5d4001ad0 dump:
>> 2014-06-07 23:58:12 [17261] [70] DEBUG:   type_name: bind_receiver_resp
>> 2014-06-07 23:58:12 [17261] [70] DEBUG:   command_id: 2147483649 =
>> 0x80000001
>> 2014-06-07 23:58:12 [17261] [70] DEBUG:   command_status: 0 = 0x00000000
>> 2014-06-07 23:58:12 [17261] [70] DEBUG:   sequence_number: 399 =
>> 0x0000018f
>> 2014-06-07 23:58:12 [17261] [70] DEBUG:   system_id: "smpp"
>> 2014-06-07 23:58:12 [17261] [70] DEBUG: SMPP PDU dump ends.
>> 2014-06-07 23:58:13 [17261] [0] DEBUG: Started thread 71
>> (opensmppbox.c:function)
>> 2014-06-07 23:58:13 [17261] [71] DEBUG: Thread 71
>> (opensmppbox.c:function) maps to pid 17261.
>> 2014-06-07 23:58:13 [17261] [71] INFO: Client connected from
>> <172.xxx.xxx.xx>
>> 2014-06-07 23:58:13 [17261] [71] DEBUG: Connecting to <127.0.0.1>
>> 2014-06-07 23:58:13 [17261] [71] INFO: Connected to bearerbox at
>> 127.0.0.1 port 13000.
>> 2014-06-07 23:58:13 [17261] [71] DEBUG: Started thread 72
>> (opensmppbox.c:smpp_to_bearerbox)
>> 2014-06-07 23:58:13 [17261] [72] DEBUG: Thread 72
>> (opensmppbox.c:smpp_to_bearerbox) maps to pid 17261.
>> 2014-06-07 23:58:13 [17261] [72] DEBUG: SMPP[smpp]: Got PDU:
>> 2014-06-07 23:58:13 [17261] [72] DEBUG: SMPP PDU 0x7fa5d00008c0 dump:
>> 2014-06-07 23:58:13 [17261] [72] DEBUG:   type_name: bind_transmitter
>> 2014-06-07 23:58:13 [17261] [72] DEBUG:   command_id: 2 = 0x00000002
>> 2014-06-07 23:58:13 [17261] [72] DEBUG:   command_status: 0 = 0x00000000
>> 2014-06-07 23:58:13 [17261] [72] DEBUG:   sequence_number: 400 =
>> 0x00000190
>> 2014-06-07 23:58:13 [17261] [72] DEBUG:   system_id: "username"
>> 2014-06-07 23:58:13 [17261] [72] DEBUG:   password: "password"
>> 2014-06-07 23:58:13 [17261] [72] DEBUG:   system_type: "default"
>> 2014-06-07 23:58:13 [17261] [72] DEBUG:   interface_version: 52 =
>> 0x00000034
>> 2014-06-07 23:58:13 [17261] [72] DEBUG:   addr_ton: 0 = 0x00000000
>> 2014-06-07 23:58:13 [17261] [72] DEBUG:   addr_npi: 0 = 0x00000000
>> 2014-06-07 23:58:13 [17261] [72] DEBUG:   address_range: NULL
>> 2014-06-07 23:58:13 [17261] [72] DEBUG: SMPP PDU dump ends.
>> 2014-06-07 23:58:13 [17261] [72] DEBUG: SMPP[username]: Sending PDU:
>> 2014-06-07 23:58:13 [17261] [72] DEBUG: SMPP PDU 0x7fa5d00019d0 dump:
>> 2014-06-07 23:58:13 [17261] [72] DEBUG:   type_name: bind_transmitter_resp
>> 2014-06-07 23:58:13 [17261] [72] DEBUG:   command_id: 2147483650 =
>> 0x80000002
>> 2014-06-07 23:58:13 [17261] [72] DEBUG:   command_status: 0 = 0x00000000
>> 2014-06-07 23:58:13 [17261] [72] DEBUG:   sequence_number: 400 =
>> 0x00000190
>> 2014-06-07 23:58:13 [17261] [72] DEBUG:   system_id: "smpp"
>> 2014-06-07 23:58:13 [17261] [72] DEBUG: SMPP PDU dump ends.
>> 2014-06-07 23:58:43 [17261] [72] DEBUG: SMPP[username]: Got PDU:
>> 2014-06-07 23:58:43 [17261] [72] DEBUG: SMPP PDU 0x7fa5d00008c0 dump:
>> 2014-06-07 23:58:43 [17261] [72] DEBUG:   type_name: enquire_link
>> 2014-06-07 23:58:43 [17261] [72] DEBUG:   command_id: 21 = 0x00000015
>> 2014-06-07 23:58:43 [17261] [72] DEBUG:   command_status: 0 = 0x00000000
>> 2014-06-07 23:58:43 [17261] [72] DEBUG:   sequence_number: 401 =
>> 0x00000191
>> 2014-06-07 23:58:43 [17261] [72] DEBUG: SMPP PDU dump ends.
>> 2014-06-07 23:58:43 [17261] [72] DEBUG: SMPP[username]: Sending PDU:
>> 2014-06-07 23:58:43 [17261] [72] DEBUG: SMPP PDU 0x7fa5d00019d0 dump:
>> 2014-06-07 23:58:43 [17261] [72] DEBUG:   type_name: enquire_link_resp
>> 2014-06-07 23:58:43 [17261] [72] DEBUG:   command_id: 2147483669 =
>> 0x80000015
>> 2014-06-07 23:58:43 [17261] [72] DEBUG:   command_status: 0 = 0x00000000
>> 2014-06-07 23:58:43 [17261] [72] DEBUG:   sequence_number: 401 =
>> 0x00000191
>> 2014-06-07 23:58:43 [17261] [72] DEBUG: SMPP PDU dump ends.
>> 2014-06-07 23:58:43 [17261] [70] DEBUG: SMPP[branded]: Got PDU:
>> 2014-06-07 23:58:43 [17261] [70] DEBUG: SMPP PDU 0x7fa5d4000910 dump:
>> 2014-06-07 23:58:43 [17261] [70] DEBUG:   type_name: enquire_link
>> 2014-06-07 23:58:43 [17261] [70] DEBUG:   command_id: 21 = 0x00000015
>> 2014-06-07 23:58:43 [17261] [70] DEBUG:   command_status: 0 = 0x00000000
>> 2014-06-07 23:58:43 [17261] [70] DEBUG:   sequence_number: 402 =
>> 0x00000192
>> 2014-06-07 23:58:43 [17261] [70] DEBUG: SMPP PDU dump ends.
>> 2014-06-07 23:58:43 [17261] [70] DEBUG: SMPP[username]: Sending PDU:
>> 2014-06-07 23:58:43 [17261] [70] DEBUG: SMPP PDU 0x7fa5d4002b10 dump:
>> 2014-06-07 23:58:43 [17261] [70] DEBUG:   type_name: enquire_link_resp
>> 2014-06-07 23:58:43 [17261] [70] DEBUG:   command_id: 2147483669 =
>> 0x80000015
>> 2014-06-07 23:58:43 [17261] [70] DEBUG:   command_status: 0 = 0x00000000
>> 2014-06-07 23:58:43 [17261] [70] DEBUG:   sequence_number: 402 =
>> 0x00000192
>> 2014-06-07 23:58:43 [17261] [70] DEBUG: SMPP PDU dump ends.
>> 2014-06-07 23:59:13 [17261] [72] DEBUG: SMPP[username]: Got PDU:
>> 2014-06-07 23:59:13 [17261] [72] DEBUG: SMPP PDU 0x7fa5d00008c0 dump:
>> 2014-06-07 23:59:13 [17261] [72] DEBUG:   type_name: enquire_link
>> 2014-06-07 23:59:13 [17261] [72] DEBUG:   command_id: 21 = 0x00000015
>> 2014-06-07 23:59:13 [17261] [69] ERROR: Connection closed by the
>> bearerbox.
>> 2014-06-07 23:59:13 [17261] [70] DEBUG: Thread 70
>> (opensmppbox.c:smpp_to_bearerbox) terminates.
>> 2014-06-07 23:59:13 [17261] [71] ERROR: Connection closed by the
>> bearerbox.
>> 2014-06-07 23:59:13 [17261] [69] DEBUG: Thread 69
>> (opensmppbox.c:function) terminates.
>> 2014-06-07 23:59:13 [17261] [72] DEBUG:   command_status: 0 = 0x00000000
>> 2014-06-07 23:59:13 [17261] [72] DEBUG:   sequence_number: 403 =
>> 0x00000193
>> 2014-06-07 23:59:13 [17261] [72] DEBUG: SMPP PDU dump ends.
>> 2014-06-07 23:59:13 [17261] [72] DEBUG: SMPP[username]: Sending PDU:
>> 2014-06-07 23:59:13 [17261] [72] DEBUG: SMPP PDU 0x7fa5d00019d0 dump:
>> 2014-06-07 23:59:13 [17261] [72] DEBUG:   type_name: enquire_link_resp
>> 2014-06-07 23:59:13 [17261] [72] DEBUG:   command_id: 2147483669 =
>> 0x80000015
>> 2014-06-07 23:59:13 [17261] [72] DEBUG:   command_status: 0 = 0x00000000
>> 2014-06-07 23:59:13 [17261] [72] DEBUG:   sequence_number: 403 =
>> 0x00000193
>> 2014-06-07 23:59:13 [17261] [72] DEBUG: SMPP PDU dump ends.
>> 2014-06-07 23:59:13 [17261] [72] DEBUG: Thread 72
>> (opensmppbox.c:smpp_to_bearerbox) terminates.
>> 2014-06-07 23:59:13 [17261] [71] DEBUG: Thread 71
>> (opensmppbox.c:function) terminates.
>> 2014-06-07 23:59:24 [17261] [0] DEBUG: Started thread 73
>> (opensmppbox.c:function)
>> 2014-06-07 23:59:24 [17261] [73] DEBUG: Thread 73
>> (opensmppbox.c:function) maps to pid 17261.
>> 2014-06-07 23:59:24 [17261] [73] INFO: Client connected from
>> <172.xxx.xxx.xxx>
>> 2014-06-07 23:59:24 [17261] [73] DEBUG: Connecting to <127.0.0.1>
>> 2014-06-07 23:59:24 [17261] [73] INFO: Connected to bearerbox at
>> 127.0.0.1 port 13000.
>> 2014-06-07 23:59:24 [17261] [73] DEBUG: Started thread 74
>> (opensmppbox.c:smpp_to_bearerbox)
>> 2014-06-07 23:59:24 [17261] [74] DEBUG: Thread 74
>> (opensmppbox.c:smpp_to_bearerbox) maps to pid 17261.
>> 2014-06-07 23:59:24 [17261] [74] DEBUG: SMPP[smpp]: Got PDU:
>> 2014-06-07 23:59:24 [17261] [74] DEBUG: SMPP PDU 0x7fa5d00008c0 dump:
>> 2014-06-07 23:59:24 [17261] [74] DEBUG:   type_name: bind_receiver
>> 2014-06-07 23:59:24 [17261] [74] DEBUG:   command_id: 1 = 0x00000001
>> 2014-06-07 23:59:24 [17261] [74] DEBUG:   command_status: 0 = 0x00000000
>> 2014-06-07 23:59:24 [17261] [74] DEBUG:   sequence_number: 406 =
>> 0x00000196
>> 2014-06-07 23:59:24 [17261] [74] DEBUG:   system_id: "username"
>> 2014-06-07 23:59:24 [17261] [74] DEBUG:   password: "password"
>> 2014-06-07 23:59:24 [17261] [74] DEBUG:   system_type: "default"
>> 2014-06-07 23:59:24 [17261] [74] DEBUG:   interface_version: 52 =
>> 0x00000034
>> 2014-06-07 23:59:24 [17261] [74] DEBUG:   addr_ton: 0 = 0x00000000
>> 2014-06-07 23:59:24 [17261] [74] DEBUG:   addr_npi: 0 = 0x00000000
>> 2014-06-07 23:59:24 [17261] [74] DEBUG:   address_range: NULL
>> 2014-06-07 23:59:24 [17261] [74] DEBUG: SMPP PDU dump ends.
>> 2014-06-07 23:59:24 [17261] [74] DEBUG: SMPP[username]: Sending PDU:
>> 2014-06-07 23:59:24 [17261] [74] DEBUG: SMPP PDU 0x7fa5d0001a20 dump:
>> 2014-06-07 23:59:24 [17261] [74] DEBUG:   type_name: bind_receiver_resp
>> 2014-06-07 23:59:24 [17261] [74] DEBUG:   command_id: 2147483649 =
>> 0x80000001
>> 2014-06-07 23:59:24 [17261] [74] DEBUG:   command_status: 0 = 0x00000000
>> 2014-06-07 23:59:24 [17261] [74] DEBUG:   sequence_number: 406 =
>> 0x00000196
>> 2014-06-07 23:59:24 [17261] [74] DEBUG:   system_id: "smpp"
>> 2014-06-07 23:59:24 [17261] [74] DEBUG: SMPP PDU dump ends.
>> 2014-06-07 23:59:25 [17261] [0] DEBUG: Started thread 75
>> (opensmppbox.c:function)
>> 2014-06-07 23:59:25 [17261] [75] DEBUG: Thread 75
>> (opensmppbox.c:function) maps to pid
>>
>
>

Reply via email to