unsubscribe

2018-04-09 Thread Беляев Владимир Николаевич
unsubscribe


RE: cannot connect to smsc center

2016-04-07 Thread Беляев Владимир Николаевич
SMSC rejected login to receive, code 0x0017 (Unknown/Reserved).

 

Incorrect login/password

 

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of christopher kamutumwa
Sent: Thursday, April 07, 2016 12:35 PM
To: users
Subject: cannot connect to smsc center

 

hi 

what causes this error;

 

[2016/04/06 06:33:43 PM] crystalik: HI

[2016/04/06 06:33:45 PM | Edited 06:34:33 PM] crystalik: 2016-04-06 18:32:19 
[1884] [7] DEBUG: SMPP[zamtel]: Sending PDU:

2016-04-06 18:32:19 [1884] [7] DEBUG: SMPP PDU 0x7f6fec000a00 dump:

2016-04-06 18:32:19 [1884] [7] DEBUG:   type_name: bind_receiver

2016-04-06 18:32:19 [1884] [7] DEBUG:   command_id: 1 = 0x0001

2016-04-06 18:32:19 [1884] [7] DEBUG:   command_status: 0 = 0x

2016-04-06 18:32:19 [1884] [7] DEBUG:   sequence_number: 1 = 0x0001

2016-04-06 18:32:19 [1884] [7] DEBUG:   system_id: "crystaline"

2016-04-06 18:32:19 [1884] [7] DEBUG:   password: "cxxx"

2016-04-06 18:32:19 [1884] [7] DEBUG:   system_type: "SMPP"

2016-04-06 18:32:19 [1884] [7] DEBUG:   interface_version: 52 = 0x0034

2016-04-06 18:32:19 [1884] [7] DEBUG:   addr_ton: 0 = 0x

2016-04-06 18:32:19 [1884] [7] DEBUG:   addr_npi: 0 = 0x

2016-04-06 18:32:19 [1884] [7] DEBUG:   address_range: NULL

2016-04-06 18:32:19 [1884] [7] DEBUG: SMPP PDU dump ends.

2016-04-06 18:32:19 [1884] [8] DEBUG: SMPP[zamtel]: Sending PDU:

2016-04-06 18:32:19 [1884] [8] DEBUG: SMPP PDU 0x7f6fe8000a00 dump:

2016-04-06 18:32:19 [1884] [8] DEBUG:   type_name: bind_transmitter

2016-04-06 18:32:19 [1884] [8] DEBUG:   command_id: 2 = 0x0002

2016-04-06 18:32:19 [1884] [8] DEBUG:   command_status: 0 = 0x

2016-04-06 18:32:19 [1884] [8] DEBUG:   sequence_number: 1 = 0x0001

2016-04-06 18:32:19 [1884] [8] DEBUG:   system_id: "crystaline"

2016-04-06 18:32:19 [1884] [8] DEBUG:   password: "c"

2016-04-06 18:32:19 [1884] [8] DEBUG:   system_type: "SMPP"

2016-04-06 18:32:19 [1884] [8] DEBUG:   interface_version: 52 = 0x0034

2016-04-06 18:32:19 [1884] [8] DEBUG:   addr_ton: 0 = 0x

2016-04-06 18:32:19 [1884] [8] DEBUG:   addr_npi: 0 = 0x

2016-04-06 18:32:19 [1884] [8] DEBUG:   address_range: NULL

2016-04-06 18:32:19 [1884] [8] DEBUG: SMPP PDU dump ends.

2016-04-06 18:32:19 [1884] [8] DEBUG: SMPP[zamtel]: Got PDU:

2016-04-06 18:32:19 [1884] [8] DEBUG: SMPP PDU 0x7f6fe8000a50 dump:

2016-04-06 18:32:19 [1884] [8] DEBUG:   type_name: bind_transmitter_resp

2016-04-06 18:32:19 [1884] [8] DEBUG:   command_id: 2147483650 = 0x8002

2016-04-06 18:32:19 [1884] [8] DEBUG:   command_status: 23 = 0x0017

2016-04-06 18:32:19 [1884] [8] DEBUG:   sequence_number: 1 = 0x0001

2016-04-06 18:32:19 [1884] [8] DEBUG:   system_id: "crystaline"

2016-04-06 18:32:19 [1884] [8] DEBUG: SMPP PDU dump ends.

2016-04-06 18:32:19 [1884] [8] ERROR: SMPP[zamtel]: SMSC rejected login to 
transmit, code 0x0017 (Unknown/Reserved).

2016-04-06 18:32:19 [1884] [8] ERROR: SMPP[zamtel]: Couldn't connect to SMS 
center (retrying in 10 seconds).

2016-04-06 18:32:19 [1884] [7] DEBUG: SMPP[zamtel]: Got PDU:

2016-04-06 18:32:19 [1884] [7] DEBUG: SMPP PDU 0x7f6fec000a50 dump:

2016-04-06 18:32:19 [1884] [7] DEBUG:   type_name: bind_receiver_resp

2016-04-06 18:32:19 [1884] [7] DEBUG:   command_id: 2147483649 = 0x8001

2016-04-06 18:32:19 [1884] [7] DEBUG:   command_status: 23 = 0x0017

2016-04-06 18:32:19 [1884] [7] DEBUG:   sequence_number: 1 = 0x0001

2016-04-06 18:32:19 [1884] [7] DEBUG:   system_id: "crystaline"

2016-04-06 18:32:19 [1884] [7] DEBUG: SMPP PDU dump ends.

2016-04-06 18:32:19 [1884] [7] ERROR: SMPP[zamtel]: SMSC rejected login to 
receive, code 0x0017 (Unknown/Reserved).

2016-04-06 18:32:19 [1884] [7] ERROR: SMPP[zamtel]: Couldn't connect to SMS 
center (retrying in 10 seconds).



RE: SMSBox not starting

2016-04-06 Thread Беляев Владимир Николаевич
^C2016-04-06 11:29:46 [31378] [0] ERROR: SIGINT received, aborting program...

 

you turn it on themselves

 

 

From: christopher kamutumwa [mailto:chriskamutu...@gmail.com] 
Sent: Wednesday, April 06, 2016 2:33 PM
To: Беляев Владимир Николаевич
Cc: users
Subject: Re: SMSBox not starting

 

bearerbox has started but still cant get smsbox started view below. help please

 

root@ctlgate:/var/log/kannel# smsbox -v 0 /etc/kannel/kannel.conf

2016-04-06 11:28:02 [31378] [0] INFO: Debug_lvl = 0, log_file = , log_lvl 
= 0

2016-04-06 11:28:02 [31378] [0] DEBUG: Kannel smsbox version `1.5.0'.

Build `Mar 25 2016 13:06:48', compiler `4.8.4'.

System Linux, release 4.5.0-x86_64-linode65, version #2 SMP Mon Mar 14 18:01:58 
EDT 2016, machine x86_64.

Hostname localhost, IP 127.0.0.1.

Libxml version 2.9.1.

Compiled with MySQL 5.5.47, using MySQL 5.5.47.

Using native malloc.

 

2016-04-06 11:28:02 [31378] [0] INFO: Starting to log to file 
/var/log/kannel/smsbox.log level 0

2016-04-06 11:28:02 [31378] [0] INFO: Added logfile 
`/var/log/kannel/smsbox.log' with level `0'.

2016-04-06 11:28:02 [31378] [0] INFO: Logging accesses to 
'/var/log/kannel/smsbox-access.log'.

2016-04-06 11:28:02 [31378] [0] INFO: Started access logfile 
`/var/log/kannel/smsbox-access.log'.

2016-04-06 11:28:02 [31378] [0] INFO: HTTP: Opening server at port 13022.

2016-04-06 11:28:02 [31378] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)

2016-04-06 11:28:02 [31378] [0] DEBUG: Started thread 2 
(gwlib/http.c:server_thread)

2016-04-06 11:28:02 [31378] [0] INFO: Set up send sms service at port 13022

2016-04-06 11:28:02 [31378] [0] DEBUG: Started thread 3 
(gw/smsbox.c:sendsms_thread)

2016-04-06 11:28:02 [31378] [0] DEBUG: 
--

2016-04-06 11:28:02 [31378] [0] DEBUG: Kannel smsbox version 1.5.0 starting

2016-04-06 11:28:02 [31378] [0] DEBUG:   dumping group (sendsms-user):

2016-04-06 11:28:02 [31378] [0] DEBUG:  = 

2016-04-06 11:28:02 [31378] [0] DEBUG:  = 

2016-04-06 11:28:02 [31378] [0] DEBUG:  = <6>

2016-04-06 11:28:02 [31378] [0] DEBUG:  = 

2016-04-06 11:28:02 [31378] [0] DEBUG:  = 

2016-04-06 11:28:02 [31378] [0] DEBUG:  = 

2016-04-06 11:28:02 [31378] [0] DEBUG: Started thread 4 
(gw/smsbox.c:obey_request_thread)

2016-04-06 11:28:02 [31378] [0] DEBUG: Started thread 5 
(gw/smsbox.c:url_result_thread)

2016-04-06 11:28:02 [31378] [0] DEBUG: Started thread 6 
(gw/smsbox.c:http_queue_thread)

2016-04-06 11:28:02 [31378] [0] DEBUG: Connecting to <127.0.0.1>

2016-04-06 11:28:02 [31378] [0] INFO: Connected to bearerbox at localhost port 
13001.

2016-04-06 11:28:02 [31378] [0] DEBUG: Started thread 7 
(gw/heartbeat.c:heartbeat_thread)

2016-04-06 11:28:02 [31378] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) 
maps to pid 31378.

2016-04-06 11:28:02 [31378] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) 
maps to pid 31378.

2016-04-06 11:28:02 [31378] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) 
maps to pid 31378.

2016-04-06 11:28:02 [31378] [7] DEBUG: Thread 7 
(gw/heartbeat.c:heartbeat_thread) maps to pid 31378.

2016-04-06 11:28:02 [31378] [4] DEBUG: Thread 4 
(gw/smsbox.c:obey_request_thread) maps to pid 31378.

2016-04-06 11:28:02 [31378] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) 
maps to pid 31378.

2016-04-06 11:28:02 [31378] [2] DEBUG: HTTP: Including port 13022, fd 8 for 
polling in server thread

2016-04-06 11:28:02 [31378] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to 
pid 31378.

^C2016-04-06 11:29:46 [31378] [0] ERROR: SIGINT received, aborting program...

2016-04-06 11:29:46 [31378] [0] INFO: Received (and handled?) 0 requests in 104 
seconds (0.00 per second)

2016-04-06 11:29:46 [31378] [0] INFO: Kannel smsbox terminating.

2016-04-06 11:29:46 [31378] [7] DEBUG: Thread 7 
(gw/heartbeat.c:heartbeat_thread) terminates.

2016-04-06 11:29:46 [31378] [0] DEBUG: Waiting for 2 
(gwlib/http.c:server_thread) to terminate

2016-04-06 11:29:46 [31378] [3] DEBUG: HTTP: No clients with requests, quitting.

2016-04-06 11:29:46 [31378] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) 
terminates.

2016-04-06 11:29:46 [31378] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) 
terminates.

2016-04-06 11:29:46 [31378] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) 
terminates.

2016-04-06 11:29:46 [31378] [0] DEBUG: Waiting for 4 
(gw/smsbox.c:obey_request_thread) to terminate

2016-04-06 11:29:46 [31378] [4] DEBUG: Thread 4 
(gw/smsbox.c:obey_request_thread) terminates.

2016-04-06 11:29:46 [31378] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) 
terminates.

2016-04-06 11:29:46 [31378] [0] DEBUG: Waiting for 5 
(gw/smsbox.c:url_result_thread) to terminate

2016-04-06 11:29:46 [31378] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) 
terminates.

2016-04-06 11:29:46 [31378] [0] DEBUG: Immutable octet strings: 235.

root@ctlgate:/var/log/kannel# ps aux | grep box

root 31008  0.0  0.4 503768  4260 pts/4Tl   

RE: SMSBox not starting

2016-04-06 Thread Беляев Владимир Николаевич
 

First run bearerbox

 

 

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of christopher kamutumwa
Sent: Wednesday, April 06, 2016 2:08 PM
To: users
Subject: SMSBox not starting

 

 

-- Forwarded message --
From: christopher kamutumwa  >
Date: Wed, Apr 6, 2016 at 11:07 AM
Subject: 
To: users  >



hi am failing to start smsbox error below as well as conf file;

 

root@ctlgate:~# smsbox -v 0 /etc/kannel/kannel.conf

2016-04-06 11:04:00 [30724] [0] INFO: Debug_lvl = 0, log_file = , log_lvl 
= 0

2016-04-06 11:04:00 [30724] [0] DEBUG: Kannel smsbox version `1.5.0'.

Build `Mar 25 2016 13:06:48', compiler `4.8.4'.

System Linux, release 4.5.0-x86_64-linode65, version #2 SMP Mon Mar 14 18:01:58 
EDT 2016, machine x86_64.

Hostname localhost, IP 127.0.0.1.

Libxml version 2.9.1.

Compiled with MySQL 5.5.47, using MySQL 5.5.47.

Using native malloc.

 

2016-04-06 11:04:00 [30724] [0] INFO: Starting to log to file 
/var/log/kannel/smsbox.log level 0

2016-04-06 11:04:00 [30724] [0] INFO: Added logfile 
`/var/log/kannel/smsbox.log' with level `0'.

2016-04-06 11:04:00 [30724] [0] INFO: Logging accesses to 
'/var/log/kannel/smsbox-access.log'.

2016-04-06 11:04:00 [30724] [0] INFO: Started access logfile 
`/var/log/kannel/smsbox-access.log'.

2016-04-06 11:04:00 [30724] [0] INFO: HTTP: Opening server at port 13022.

2016-04-06 11:04:00 [30724] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)

2016-04-06 11:04:00 [30724] [0] DEBUG: Started thread 2 
(gwlib/http.c:server_thread)

2016-04-06 11:04:00 [30724] [0] INFO: Set up send sms service at port 13022

2016-04-06 11:04:00 [30724] [0] DEBUG: Started thread 3 
(gw/smsbox.c:sendsms_thread)

2016-04-06 11:04:00 [30724] [0] DEBUG: 
--

2016-04-06 11:04:00 [30724] [0] DEBUG: Kannel smsbox version 1.5.0 starting

2016-04-06 11:04:00 [30724] [0] DEBUG:   dumping group (sendsms-user):

2016-04-06 11:04:00 [30724] [0] DEBUG:  = 

2016-04-06 11:04:00 [30724] [0] DEBUG:  = 

2016-04-06 11:04:00 [30724] [0] DEBUG:  = <6>

2016-04-06 11:04:00 [30724] [0] DEBUG:  = 

2016-04-06 11:04:00 [30724] [0] DEBUG:  = 

2016-04-06 11:04:00 [30724] [0] DEBUG:  = 

2016-04-06 11:04:00 [30724] [0] DEBUG: Started thread 4 
(gw/smsbox.c:obey_request_thread)

2016-04-06 11:04:00 [30724] [0] DEBUG: Started thread 5 
(gw/smsbox.c:url_result_thread)

2016-04-06 11:04:00 [30724] [0] DEBUG: Started thread 6 
(gw/smsbox.c:http_queue_thread)

2016-04-06 11:04:00 [30724] [0] DEBUG: Connecting to <127.0.0.1>

2016-04-06 11:04:00 [30724] [0] ERROR: connect to <127.0.0.1> failed

2016-04-06 11:04:00 [30724] [0] ERROR: System error 111: Connection refused

2016-04-06 11:04:00 [30724] [0] DEBUG: Connecting to <127.0.0.1>

2016-04-06 11:04:00 [30724] [0] ERROR: connect to <127.0.0.1> failed

2016-04-06 11:04:00 [30724] [0] ERROR: System error 111: Connection refused

2016-04-06 11:04:00 [30724] [0] ERROR: error connecting to server `localhost' 
at port `13001'

2016-04-06 11:04:00 [30724] [0] PANIC: Couldn't connect to the bearerbox.

2016-04-06 11:04:00 [30724] [0] PANIC: smsbox(gw_panic+0x16b) [0x43c28b]

2016-04-06 11:04:00 [30724] [0] PANIC: smsbox(main+0xc1a) [0x40d14a]

2016-04-06 11:04:00 [30724] [0] PANIC: 
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f4122e07ec5]

 

# CORE

group = core

admin-port = 13000

smsbox-port = 13001

admin-password = angenoch

#admin-deny-ip = "*.*.*.*"

#admin-allow-ip = "127.0.0.1"

log-file = /var/log/kannel/gateway.log

log-level = 0

access-log = /var/log/kannel/access.log

store-type = file

store-file = /var/log/kannel/kannel.store

unified-prefix = "-,+"

#unified-prefix = "+,00"

#store-type = spool

#store-location = /var/spool/kannel/store

#smsbox-max-pending = 100

#dlr-storage = mysql

 

# SMSBOX

group = smsbox

smsbox-id = admin

bearerbox-host = localhost

sendsms-port = 13022

bearerbox-port = 13001

#sendsms-chars = "0123456789 +- "

log-file = /var/log/kannel/smsbox.log

log-level = 0

access-log = /var/log/kannel/smsbox-access.log

 

# SENDSMS-USER

group = sendsms-user

username = kris

password = kreeper

max-messages = 6

concatenation = true

default-smsc = crs

 

 

 

 



RE: sqlbox make error

2016-03-25 Thread Беляев Владимир Николаевич
This is not an error. All is well


-Original Message-
From: christopher kamutumwa [mailto:chriskamutu...@gmail.com] 
Sent: Friday, March 25, 2016 4:35 PM
To: Беляев Владимир Николаевич
Cc: spameden; users
Subject: Re: sqlbox make error

Now when configuring sqlbox. I get below error anything am missing

root@ctlgate:~/sqlbox# make
make  all-recursive
make[1]: Entering directory `/root/sqlbox'
Making all in gw
make[2]: Entering directory `/root/sqlbox/gw'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/sqlbox/gw'
make[2]: Entering directory `/root/sqlbox'
make[2]: Leaving directory `/root/sqlbox'
make[1]: Leaving directory `/root/sqlbox'


On 3/25/16, Беляев Владимир Николаевич <v.bely...@sngb.ru> wrote:
> I did so:
>
> # kannel
> ./configure --with-mysql
> # opensmppbox, sqlbox
> ./configure --with-kannel-dir=/home/u3850/gateway-1.5.0
>
> -Original Message-
> From: users [mailto:users-boun...@kannel.org] On Behalf Of christopher 
> kamutumwa
> Sent: Friday, March 25, 2016 1:48 PM
> To: spameden
> Cc: users
> Subject: Re: sqlbox make error
>
> Hi below is what am getting now. please advise
>
>
> Configuring DB support ...
> checking whether to compile with MySQL support... disabled checking 
> whether to compile with LibSDB support... disabled checking whether to 
> compile with
> SQLite2 support... disabled checking whether to compile with SQLite3 
> support... disabled checking whether to compile with Oracle support...
> disabled checking whether to compile with PostgresSQL support... 
> disabled checking whether to compile with Redis support... disabled 
> checking whether to compile with FreeTDS Ct-Lib support... disabled
>
>
> chris
> On 3/24/16, spameden <spame...@gmail.com> wrote:
>> 2016-03-24 22:52 GMT+03:00 christopher kamutumwa
>> <chriskamutu...@gmail.com>:
>>
>>> hello,
>>>
>>> Ive installed kannel on ubuntu. now i want to install sqlbox i get 
>>> below error kindly advise how to resolve this? i aready have mysql 
>>> on server;
>>>
>>> sqlbox.c:98:2: error: #error You need support for at least one DB 
>>> engine. Please recompile Kannel.
>>>  #error You need support for at least one DB engine. Please 
>>> recompile Kannel.
>>>
>>
>> Error is self-explanatory. Recompile kannel with mysql support:
>>
>> ./configure --with-mysql
>> make; make install
>>
>> after that try compiling sqlbox again.
>>
>>>
>>>
>>> regards chris
>>>
>>>
>>
>
>
>




RE: sqlbox make error

2016-03-25 Thread Беляев Владимир Николаевич
I did so:

# kannel
./configure --with-mysql
# opensmppbox, sqlbox
./configure --with-kannel-dir=/home/u3850/gateway-1.5.0

-Original Message-
From: users [mailto:users-boun...@kannel.org] On Behalf Of christopher kamutumwa
Sent: Friday, March 25, 2016 1:48 PM
To: spameden
Cc: users
Subject: Re: sqlbox make error

Hi below is what am getting now. please advise


Configuring DB support ...
checking whether to compile with MySQL support... disabled checking whether to 
compile with LibSDB support... disabled checking whether to compile with 
SQLite2 support... disabled checking whether to compile with SQLite3 support... 
disabled checking whether to compile with Oracle support... disabled checking 
whether to compile with PostgresSQL support... disabled checking whether to 
compile with Redis support... disabled checking whether to compile with FreeTDS 
Ct-Lib support... disabled


chris
On 3/24/16, spameden  wrote:
> 2016-03-24 22:52 GMT+03:00 christopher kamutumwa
> :
>
>> hello,
>>
>> Ive installed kannel on ubuntu. now i want to install sqlbox i get 
>> below error kindly advise how to resolve this? i aready have mysql on 
>> server;
>>
>> sqlbox.c:98:2: error: #error You need support for at least one DB 
>> engine. Please recompile Kannel.
>>  #error You need support for at least one DB engine. Please recompile 
>> Kannel.
>>
>
> Error is self-explanatory. Recompile kannel with mysql support:
>
> ./configure --with-mysql
> make; make install
>
> after that try compiling sqlbox again.
>
>>
>>
>> regards chris
>>
>>
>





RE: Not work "priority" in settings SMSC

2016-03-15 Thread Беляев Владимир Николаевич
It can be an example?

SMS sent via the SMPP protocol 

 

From: Alexander Malysh [mailto:malys...@gmail.com] On Behalf Of 
amal...@kannel.org
Sent: Thursday, February 11, 2016 9:09 PM
To: Беляев Владимир Николаевич
Cc: spameden; users@kannel.org
Subject: Re: Not work "priority" in settings SMSC

 

Hi,

 

priority parameter is used to set prio for a message itself that is then just 
forwarded to SMSC => not your case.

 

what you need is preferred SMSC. Please check userguide for preferred-smsc 
config option.

 

Thanks,

Alex

 

P.S. Pogaluysta pishiti tut tolko na english, ne vse ponimayut russkij :-)

P.P.S. This question belongs to users@kannel.org <mailto:users@kannel.org>  
instead of devel. 

 

Am 11.02.2016 um 06:34 schrieb Беляев Владимир Николаевич <v.bely...@sngb.ru 
<mailto:v.bely...@sngb.ru> >:

 

I have 2 SMSC - the main and reserve.

It is necessary to disable SMS with the main SMSC is automatically sent through 
the backup SMSC.

After the restoration of connection with the main SMSC came sms return to it.

SMS sent via SMPP

--
С уважением,
Беляев В.Н.




From: spameden [mailto:spame...@gmail.com] 
Sent: Thursday, February 11, 2016 10:29 AM
To: Беляев Владимир Николаевич
Cc: users@kannel.org <mailto:users@kannel.org> 
Subject: Re: Not work "priority" in settings SMSC

 

 

 

2016-02-11 7:31 GMT+03:00 Беляев Владимир Николаевич < 
<mailto:v.bely...@sngb.ru> v.bely...@sngb.ru>:

While you can install one primary center and the other - a reserve that it went 
SMS only in case of unavailability of the ground?

 

If I got you right you want to have multiple SMSC connections and balance 
between them if ONLY one of the link goes down?

 

You can do this if you assign different smsc-id for each SMSC connection and 
specify smsc-id at your application level, e.g.:

for smsbox:  <http://.../sendsms?receiver=..._id=smscid1> 
http://.../sendsms?receiver=..._id=smscid1 
sendsms?receiver=..._id=smscid2

 

or for sqlbox: you can just set smsc-id="smscid1" upon INSERT.

 

You can monitor current state of SMSC uplinks via berearebox status page.


--
С уважением,
Беляев В.Н.

-Original Message-
From: users [mailto: <mailto:users-boun...@kannel.org> 
users-boun...@kannel.org] On Behalf Of Milan P. Stanic
Sent: Wednesday, February 10, 2016 11:05 PM
To:  <mailto:users@kannel.org> users@kannel.org
Subject: Re: Not work "priority" in settings SMSC

On Wed, 2016-02-10 at 16:31, Беляев Владимир Николаевич wrote:
> Option does not work "priority" in settings SMSC.
>
> I set up the SMSC1 priority=0, SMSC2 priority=3, but SMS is
> distributed evenly.
>
> Why can this be?

I don't have time to look into the code but from memory I think that the 
priority parameter is for setting default message priority for particular SMSC 
and is not global parameter which set priorities between SMSCs. But, I could be 
wrong.

> Kannel 1.5.0
>
> Config:
> group=smsc
> smsc=smpp
>
> smsc-id=devino_mrk
>
> system-type=
>
> interface-version=34
>
> enquire-link-interval=270
>
> source-addr-ton=5
>
> source-addr-npi=1
>
> dest-addr-ton=1
>
> dest-addr-npi=1
>
> msg-id-type=0x00
>
> log-file="/var/log/kannel/devino_mrk.log"
>
> log-level=0
>
> priority=0
>
>
>
> # СМС-Трафик тест
>
> group=smsc
>
> smsc=smpp
>
> smsc-id=smstraffic_test
>
> system-type=smpp
>
> interface-version=34
>
> enquire-link-interval=270
>
> source-addr-ton=1
>
> source-addr-npi=1
>
> dest-addr-ton=1
>
> dest-addr-npi=1
>
> msg-id-type=0x00
>
> log-file="/var/log/kannel/smstraffic_test.log"
>
> log-level=0
>
> priority=3

 



RE: ERROR: connect failed kannel

2016-03-11 Thread Беляев Владимир Николаевич
If you run out to the console without key "-в" messages for each program?


-Original Message-
From: christopher kamutumwa [mailto:chriskamutu...@gmail.com] 
Sent: Friday, March 11, 2016 6:44 PM
To: Беляев Владимир Николаевич
Cc: users
Subject: Re: ERROR: connect failed kannel

not working . what will resolve my issue?


On 3/11/16, Беляев Владимир Николаевич <v.bely...@sngb.ru> wrote:
> Try the script:
>
> [u3850@sms-gw ~]$ cat kannel_start
> #!/bin/bash
>
> /usr/local/sbin/bearerbox -d /etc/kannel/kannel.conf 
> /usr/local/sbin/sqlbox -d /etc/kannel/sqlbox.conf 
> /usr/local/sbin/opensmppbox -d /etc/kannel/opensmppbox.conf sleep 3 
> /usr/local/sbin/smsbox -d /etc/kannel/kannel.conf
>
>
> -Original Message-
> From: users [mailto:users-boun...@kannel.org] On Behalf Of christopher 
> kamutumwa
> Sent: Friday, March 11, 2016 5:14 PM
> To: users
> Subject: ERROR: connect failed kannel
>
> Hi
> Ive installed kannel on my ubuntu machine LTS14 and kannel starts properly.
> but fails to connect to the bearer box below is error and conf 
> file;will appreciate if this is sorted thanks
>
> 2016-03-11 11:22:24 [7362] [0] DEBUG: Started thread 5
> (gw/smsbox.c:url_result_thread)
> 2016-03-11 11:22:24 [7362] [0] DEBUG: Started thread 6
> (gw/smsbox.c:http_queue_thread)
> 2016-03-11 11:22:24 [7362] [0] ERROR: connect failed
> 2016-03-11 11:22:24 [7362] [0] ERROR: System error 111: Connection 
> refused
> 2016-03-11 11:22:24 [7362] [0] ERROR: error connecting to server `localhost'
> at port `13001'
> 2016-03-11 11:22:24 [7362] [0] PANIC: Couldn't connect to the bearerbox.
> 2016-03-11 11:22:24 [7362] [0] PANIC: /usr/sbin/smsbox(gw_panic+0x17b) 
> [0x43e14b]
> 2016-03-11 11:22:24 [7362] [0] PANIC: /usr/sbin/smsbox(main+0xcbc) 
> [0x40e0fc]
> 2016-03-11 11:22:24 [7362] [0] PANIC:
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)
> [0x7f750a6daec5]
> 2016-03-11 11:22:24 [7362] [0] PANIC: /usr/sbin/smsbox() [0x40ea35]
>
> # CORE
> group = core
> admin-port = 13000
> smsbox-port = 13001
> #admin-password = nochange
> #admin-deny-ip = "*.*.*.*"
> #admin-allow-ip = "127.0.0.1"
> log-file = /var/log/kannel/gateway.log log-level = 0 access-log = 
> /var/log/kannel/access.log store-type = file store-file = 
> /var/log/kannel/kannel.store unified-prefix = "-,+"
> #unified-prefix = "+,00"
> #store-type = spool
> #store-location = /var/spool/kannel/store #smsbox-max-pending = 100 
> #dlr-storage = mysql
>
> # SMSBOX
> group = smsbox
> smsbox-id = admin
> bearerbox-host = localhost
> sendsms-port = 13022
> bearerbox-port = 13001
> #sendsms-chars = "0123456789 +- "
> log-file = /var/log/kannel/smsbox.log
> log-level = 0
> access-log = /var/log/kannel/smsbox-access.log
>
> # the following is just standard dlr configuration
>
> group = mysql-connection
> id = mydlr
> host = localhost
> username = 
> password = x
> database = kannel
> # you can increase this upon a higher load max-connections = 100
>
> group = dlr-db
> id = mydlr
> 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
>
>  SMSC Links 
> ##
>
> group = smsc
> smsc = fake
> port = 1
> connect-allow-ip = 127.0.0.1
> denied-smsc-id = cvd
>
>
> group = smsc
> smsc-id = vbv
> smsc = smpp
> system-type = ""
> interface-version = 34
> host = xxx
> port = 2779
> #receive-port = 2779
> smsc-username = abc
> smsc-password = abc
> transceiver-mode = true
> bind-addr-ton = 1
> bind-addr-npi = 0
> source-addr-ton = 5
> source-addr-npi = 0
> dest-addr-ton = 1
> dest-addr-npi = 1
> denied-smsc-id = xyz
> denied-prefix = "26097"
> msg-id-type = 0x00
>
>
> group = smsc
> smsc-id = clx
> smsc = smpp
> system-type = ""
> interface-version = 34
> host = xxx
> port = 3600
> #receive-port = 3600
> smsc-username = abc
> smsc-password = abc
> transceiver-mode = true
> bind-addr-ton = 1
> bind-addr-npi = 0
> source-addr-ton = 5
> source-addr-npi = 0
> dest-addr-ton = 1
> dest-addr-npi = 1
> throughput = 70
> #max-pending-submit = 18
> #denied-smsc-id = xxx
> denied-smsc-id = xxx
> denied-prefix = "26097;26096"
>
> #
> # SENDSMS-USER
> group = sendsms-user
> username = smsgw
> password = pass123
> max-messages = 6
> con

RE: ERROR: connect failed kannel

2016-03-11 Thread Беляев Владимир Николаевич
Try the script:

[u3850@sms-gw ~]$ cat kannel_start
#!/bin/bash

/usr/local/sbin/bearerbox -d /etc/kannel/kannel.conf
/usr/local/sbin/sqlbox -d /etc/kannel/sqlbox.conf
/usr/local/sbin/opensmppbox -d /etc/kannel/opensmppbox.conf
sleep 3
/usr/local/sbin/smsbox -d /etc/kannel/kannel.conf


-Original Message-
From: users [mailto:users-boun...@kannel.org] On Behalf Of christopher kamutumwa
Sent: Friday, March 11, 2016 5:14 PM
To: users
Subject: ERROR: connect failed kannel

Hi
Ive installed kannel on my ubuntu machine LTS14 and kannel starts properly. but 
fails to connect to the bearer box below is error and conf file;will appreciate 
if this is sorted thanks

2016-03-11 11:22:24 [7362] [0] DEBUG: Started thread 5
(gw/smsbox.c:url_result_thread)
2016-03-11 11:22:24 [7362] [0] DEBUG: Started thread 6
(gw/smsbox.c:http_queue_thread)
2016-03-11 11:22:24 [7362] [0] ERROR: connect failed
2016-03-11 11:22:24 [7362] [0] ERROR: System error 111: Connection refused
2016-03-11 11:22:24 [7362] [0] ERROR: error connecting to server `localhost' at 
port `13001'
2016-03-11 11:22:24 [7362] [0] PANIC: Couldn't connect to the bearerbox.
2016-03-11 11:22:24 [7362] [0] PANIC: /usr/sbin/smsbox(gw_panic+0x17b) 
[0x43e14b]
2016-03-11 11:22:24 [7362] [0] PANIC: /usr/sbin/smsbox(main+0xcbc) [0x40e0fc]
2016-03-11 11:22:24 [7362] [0] PANIC:
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)
[0x7f750a6daec5]
2016-03-11 11:22:24 [7362] [0] PANIC: /usr/sbin/smsbox() [0x40ea35]

# CORE
group = core
admin-port = 13000
smsbox-port = 13001
#admin-password = nochange
#admin-deny-ip = "*.*.*.*"
#admin-allow-ip = "127.0.0.1"
log-file = /var/log/kannel/gateway.log
log-level = 0
access-log = /var/log/kannel/access.log
store-type = file
store-file = /var/log/kannel/kannel.store unified-prefix = "-,+"
#unified-prefix = "+,00"
#store-type = spool
#store-location = /var/spool/kannel/store #smsbox-max-pending = 100 
#dlr-storage = mysql

# SMSBOX
group = smsbox
smsbox-id = admin
bearerbox-host = localhost
sendsms-port = 13022
bearerbox-port = 13001
#sendsms-chars = "0123456789 +- "
log-file = /var/log/kannel/smsbox.log
log-level = 0
access-log = /var/log/kannel/smsbox-access.log

# the following is just standard dlr configuration

group = mysql-connection
id = mydlr
host = localhost
username = 
password = x
database = kannel
# you can increase this upon a higher load max-connections = 100

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

 SMSC Links ##

group = smsc
smsc = fake
port = 1
connect-allow-ip = 127.0.0.1
denied-smsc-id = cvd


group = smsc
smsc-id = vbv
smsc = smpp
system-type = ""
interface-version = 34
host = xxx
port = 2779
#receive-port = 2779
smsc-username = abc
smsc-password = abc
transceiver-mode = true
bind-addr-ton = 1
bind-addr-npi = 0
source-addr-ton = 5
source-addr-npi = 0
dest-addr-ton = 1
dest-addr-npi = 1
denied-smsc-id = xyz
denied-prefix = "26097"
msg-id-type = 0x00


group = smsc
smsc-id = clx
smsc = smpp
system-type = ""
interface-version = 34
host = xxx
port = 3600
#receive-port = 3600
smsc-username = abc
smsc-password = abc
transceiver-mode = true
bind-addr-ton = 1
bind-addr-npi = 0
source-addr-ton = 5
source-addr-npi = 0
dest-addr-ton = 1
dest-addr-npi = 1
throughput = 70
#max-pending-submit = 18
#denied-smsc-id = xxx
denied-smsc-id = xxx
denied-prefix = "26097;26096"

#
# SENDSMS-USER
group = sendsms-user
username = smsgw
password = pass123
max-messages = 6
concatenation = true
default-smsc = crs

#group = sendsms-user
#username = kannel
#password = crueT39
#user-deny-ip = "*.*.*.*"
#user-allow-ip = "usr-public-ip"
#max-messages = 6
#concatenation = true

# Default servide
#group = sms-service
#keyword = default
#text = "You have entered the wrong command. Please try again with correct 
syntax."


group = sms-service
keyword = default
get-url = 
"http://185.3.90.96/innov8/index.php?app=call=gateway=kannel=geturl=%t=%q=%a=%Q;
accept-x-kannel-headers = true
max-messages = 1000
concatenation = true
catch-all = true
text = "this is kreeper"
omit-empty = true





RE: Error in kannel-monitor - RESOLVED

2016-03-02 Thread Беляев Владимир Николаевич
Thank you!

That helped:

/usr/sbin/setsebool -P httpd_can_network_connect 1

 

 

From: Juan Luis Gómez [mailto:juanluis.go...@blipblip.com.co] 
Sent: Thursday, March 03, 2016 10:07 AM
To: Беляев Владимир Николаевич
Cc: Milan P. Stanic; users@kannel.org
Subject: Re: Error in kannel-monitor

 

Take a look at this post:


http://forums.phpfreaks.com/topic/262809-trying-to-open-url-functionfopen-failed-to-open-stream-permission-denied/
 

 

Sent from my iPhone


On Mar 2, 2016, at 23:59, Беляев Владимир Николаевич <v.bely...@sngb.ru 
<mailto:v.bely...@sngb.ru> > wrote:

[root@sms-gw u3850]# lynx http://localhost:13000/status.xml?password=

 

Kannel bearerbox version `1.5.0'. Build `Feb 5 2016 15:25:06', compiler `4.8.5 
20150623 (Red Hat 4.8.5-4)'. System Linux, release

   3.10.0-229.el7.x86_64, version #1 SMP Fri Mar 6 11:36:42 UTC 2015, machine 
x86_64. Hostname sms-gw.sngb.local, IP 172.16.0.36. Libxml version 2.9.1.

   Using OpenSSL 1.0.1e-fips 11 Feb 2013. Compiled with MySQL 5.5.44-MariaDB, 
using MySQL 5.5.44-MariaDB. Using native malloc. running, uptime 0d 0h 0m

   7s 00 00 00 00 -1 0.00,0.00,0.00 0.00,0.00,0.00 0 0 0.00,0.00,0.00 
0.00,0.00,0.00 21 mysql smsbox usersmpp 127.0.0.1 0 on-line 0d 0h 0m 7s no 
smsbox

   usersmpp 127.0.0.1 0 on-line 0d 0h 0m 4s no 2 
SMPP:194.226.179.12:2775/2775:sngbmrk_n: devino_mrk devino_mrk online 7s 00 00 
0 0

   SMPP:213.248.59.129:4442/4442:sngb:sngb4test:smpp smstraffic_test 
smstraffic_test online 7s 00 00 0 0

 

[root@sms-gw kannel-monitor]# cat config.php

 "http://127.0.0.1:13000;,

   "status_passwd" => "",

   "admin_passwd" => "",

   "name" => "Kannel 1"

 )

);

 

/* some constants */

define('MAX_QUEUE', 100); /* Maximum size of queues before displaying it in 
red */

define('DEFAULT_REFRESH', 60); /* Default refresh time for the web 
interface */

?>

 

 

 

 

 

 

From: Juan Luis Gómez [mailto:juanluis.go...@blipblip.com.co] 
Sent: Thursday, March 03, 2016 9:53 AM
To: Беляев Владимир Николаевич
Cc: Milan P. Stanic; users@kannel.org <mailto:users@kannel.org> 
Subject: Re: Error in kannel-monitor

 

Have you tried loading the url from the script 
(http://localhost:13000/status.xml?password=) directly in your browser? if so, 
was it successful? I'm inclined to think that the error has to do with the 
password you are using, which is empty in this case.

 

Can you paste your conf?

 

Thnx

Sent from my iPhone


On Mar 2, 2016, at 22:45, Беляев Владимир Николаевич <v.bely...@sngb.ru 
<mailto:v.bely...@sngb.ru> > wrote:

$url = "http://localhost/;; - This test script.
In the working script specified port

At the same error :
PHP Warning: fopen(http://localhost:13000/status.xml?password=): failed to open 
stream: Permission denied in /var/www/html/kannel-monitor/index.php

Perhaps the problem of access to the port 13000 (Kannel admin)
This all works through a browser

It is possible to fix?


-Original Message-
From: users [mailto:users-boun...@kannel.org] On Behalf Of Milan P. Stanic
Sent: Wednesday, March 02, 2016 10:31 PM
To: users@kannel.org <mailto:users@kannel.org> 
Subject: Re: Error in kannel-monitor

On Wed, 2016-03-02 at 10:49, Беляев Владимир Николаевич wrote:




This is a standard script from Kannel 

(gateway-1.5.0/contrib/kannel-monitor)

Standard script posted /var/www/html/kannel-monitor If using a test 

script, all ok http://localhost/;;

   if (($fp = fopen($url, "r"))) {

   echo "Ok";

   }

   else {

   echo "Not ok";

   }

   fclose($fp);

?>

 

Perhaps the problem of access to the port 13000 (Kannel admin)


Thanks God I didn't touched PHP in last fifteen years but from code snippet 
above it seems that you are right.
Variable $url is missing port part.
I'm not sure how to set port in php but I think it should be $url = 
"http://localhost:13000/;

Few years ago I made small Perl monitor for Kannel and defined URL (host and 
port) in that way in the script.





Kannel 1.5.0, Centos 7, Kannel independently compiled

 

 

-Original Message-

From: devel [mailto:devel-boun...@kannel.org] On Behalf Of Milan P. 

Stanic

Sent: Tuesday, March 01, 2016 5:26 PM

To: de...@kannel.org <mailto:de...@kannel.org> 

Subject: Re: Error in kannel-monitor

 

Dear Vladimir,

 

Please post your questions to users@kannel.org <mailto:users@kannel.org>  
mailing list where you have better chances to get answer. de...@kannel.org 
<mailto:de...@kannel.org>  list is for developers discussions.

 

On Tue, 2016-03-01 at 10:47, Беляев Владимир Николаевич wrote:

   $url = $config["base_url"]."/status.xml";

   $xml_data = "";

   /* open the file description to the URL */

   if (($fp = fopen($url, "r"))) {

   $

RE: Error in kannel-monitor

2016-03-02 Thread Беляев Владимир Николаевич
$url = "http://localhost/;; - This test script.
In the working script specified port

At the same error :
PHP Warning: fopen(http://localhost:13000/status.xml?password=): failed to open 
stream: Permission denied in /var/www/html/kannel-monitor/index.php

Perhaps the problem of access to the port 13000 (Kannel admin)
This all works through a browser

It is possible to fix?


-Original Message-
From: users [mailto:users-boun...@kannel.org] On Behalf Of Milan P. Stanic
Sent: Wednesday, March 02, 2016 10:31 PM
To: users@kannel.org
Subject: Re: Error in kannel-monitor

On Wed, 2016-03-02 at 10:49, Беляев Владимир Николаевич wrote:
> This is a standard script from Kannel 
> (gateway-1.5.0/contrib/kannel-monitor)
> Standard script posted /var/www/html/kannel-monitor If using a test 
> script, all ok  $url = "http://localhost/;;
> if (($fp = fopen($url, "r"))) {
> echo "Ok";
> }
> else {
> echo "Not ok";
> }
> fclose($fp);
> ?>
> 
> Perhaps the problem of access to the port 13000 (Kannel admin)

Thanks God I didn't touched PHP in last fifteen years but from code snippet 
above it seems that you are right.
Variable $url is missing port part.
I'm not sure how to set port in php but I think it should be $url = 
"http://localhost:13000/;

Few years ago I made small Perl monitor for Kannel and defined URL (host and 
port) in that way in the script.

> Kannel 1.5.0, Centos 7, Kannel independently compiled
> 
> 
> -Original Message-
> From: devel [mailto:devel-boun...@kannel.org] On Behalf Of Milan P. 
> Stanic
> Sent: Tuesday, March 01, 2016 5:26 PM
> To: de...@kannel.org
> Subject: Re: Error in kannel-monitor
> 
> Dear Vladimir,
> 
> Please post your questions to users@kannel.org mailing list where you have 
> better chances to get answer. de...@kannel.org list is for developers 
> discussions.
> 
> On Tue, 2016-03-01 at 10:47, Беляев Владимир Николаевич wrote:
> > $url = $config["base_url"]."/status.xml";
> > $xml_data = "";
> > /* open the file description to the URL */
> > if (($fp = fopen($url, "r"))) {
> > $bgcolor = 'green';
> > /* read the XML input */
> > while (!feof($fp)) {
> > $xml_data .= fread($fp, 20);
> > }
> > fclose($fp);
> > 
> > Through the browser opens the URL
> 
> It is not clear (at least to me) what you are trying to do with this php 
> script and how do invoke it. Please try to describe what you are trying to 
> achieve and how do you do that. Also describe your working environment i.e. 
> your OS and how did you installed Kannel and accompanying software.
> 
> > > When you open a kannel-monitor I get an error
> > > 
> > > [Tue Feb 09 09:50:14.899177 2016] [:error] [pid 45752] [client 
> > > 172.19.1.35:56951] PHP Warning:
> > > fopen(http://localhost:13000/status.xml?password=): failed to open stream:
> > > Permission denied in /var/www/html/kannel-monitor/index.php on 
> > > line
> > > 91
> > > 
> > > What can be wrong&
> > 
> > Message tells that the index.php cannot open something (file, socket or 
> > something else).
> > Look at line 91 in index.php script and see what file it is trying to open 
> > and check the permissions of that file and who is the owner of it.
> > 
> > Or, post your index.php script (just few lines around line 91) so someone 
> > could give you a hint.
> > 
> > 
> > 
> 
> 





RE: Error in kannel-monitor

2016-03-01 Thread Беляев Владимир Николаевич
This is a standard script from Kannel (gateway-1.5.0/contrib/kannel-monitor)
Standard script posted /var/www/html/kannel-monitor
If using a test script, all ok
http://localhost/;;
if (($fp = fopen($url, "r"))) {
echo "Ok";
}
else {
echo "Not ok";
}
fclose($fp);
?>

Perhaps the problem of access to the port 13000 (Kannel admin)

Kannel 1.5.0, Centos 7, Kannel independently compiled


-Original Message-
From: devel [mailto:devel-boun...@kannel.org] On Behalf Of Milan P. Stanic
Sent: Tuesday, March 01, 2016 5:26 PM
To: de...@kannel.org
Subject: Re: Error in kannel-monitor

Dear Vladimir,

Please post your questions to users@kannel.org mailing list where you have 
better chances to get answer. de...@kannel.org list is for developers 
discussions.

On Tue, 2016-03-01 at 10:47, Беляев Владимир Николаевич wrote:
> $url = $config["base_url"]."/status.xml";
> $xml_data = "";
> /* open the file description to the URL */
> if (($fp = fopen($url, "r"))) {
> $bgcolor = 'green';
> /* read the XML input */
> while (!feof($fp)) {
> $xml_data .= fread($fp, 20);
> }
> fclose($fp);
> 
> Through the browser opens the URL

It is not clear (at least to me) what you are trying to do with this php script 
and how do invoke it. Please try to describe what you are trying to achieve and 
how do you do that. Also describe your working environment i.e. your OS and how 
did you installed Kannel and accompanying software.

> > When you open a kannel-monitor I get an error
> > 
> > [Tue Feb 09 09:50:14.899177 2016] [:error] [pid 45752] [client 
> > 172.19.1.35:56951] PHP Warning:
> > fopen(http://localhost:13000/status.xml?password=): failed to open stream:
> > Permission denied in /var/www/html/kannel-monitor/index.php on line 
> > 91
> > 
> > What can be wrong&
> 
> Message tells that the index.php cannot open something (file, socket or 
> something else).
> Look at line 91 in index.php script and see what file it is trying to open 
> and check the permissions of that file and who is the owner of it.
> 
> Or, post your index.php script (just few lines around line 91) so someone 
> could give you a hint.
> 
> 
> 





RE: Not work "priority" in settings SMSC

2016-02-10 Thread Беляев Владимир Николаевич
While you can install one primary center and the other - a reserve that it went 
SMS only in case of unavailability of the ground?

--
С уважением,
Беляев В.Н.

-Original Message-
From: users [mailto:users-boun...@kannel.org] On Behalf Of Milan P. Stanic
Sent: Wednesday, February 10, 2016 11:05 PM
To: users@kannel.org
Subject: Re: Not work "priority" in settings SMSC

On Wed, 2016-02-10 at 16:31, Беляев Владимир Николаевич wrote:
> Option does not work "priority" in settings SMSC.
> 
> I set up the SMSC1 priority=0, SMSC2 priority=3, but SMS is 
> distributed evenly.
> 
> Why can this be?
 
I don't have time to look into the code but from memory I think that the 
priority parameter is for setting default message priority for particular SMSC 
and is not global parameter which set priorities between SMSCs. But, I could be 
wrong.

> Kannel 1.5.0
> 
> Config:
> group=smsc
> smsc=smpp
> 
> smsc-id=devino_mrk
> 
> system-type=
> 
> interface-version=34
> 
> enquire-link-interval=270
> 
> source-addr-ton=5
> 
> source-addr-npi=1
> 
> dest-addr-ton=1
> 
> dest-addr-npi=1
> 
> msg-id-type=0x00
> 
> log-file="/var/log/kannel/devino_mrk.log"
> 
> log-level=0
> 
> priority=0
> 
>  
> 
> # СМС-Трафик тест
> 
> group=smsc
> 
> smsc=smpp
> 
> smsc-id=smstraffic_test
> 
> system-type=smpp
> 
> interface-version=34
> 
> enquire-link-interval=270
> 
> source-addr-ton=1
> 
> source-addr-npi=1
> 
> dest-addr-ton=1
> 
> dest-addr-npi=1
> 
> msg-id-type=0x00
> 
> log-file="/var/log/kannel/smstraffic_test.log"
> 
> log-level=0
> 
> priority=3







RE: Not work "priority" in settings SMSC

2016-02-10 Thread Беляев Владимир Николаевич
I have 2 SMSC - the main and reserve.

It is necessary to disable SMS with the main SMSC is automatically sent through 
the backup SMSC.

After the restoration of connection with the main SMSC came sms return to it.

SMS sent via SMPP

--
С уважением,
Беляев В.Н.



From: spameden [mailto:spame...@gmail.com] 
Sent: Thursday, February 11, 2016 10:29 AM
To: Беляев Владимир Николаевич
Cc: users@kannel.org
Subject: Re: Not work "priority" in settings SMSC

 

 

 

2016-02-11 7:31 GMT+03:00 Беляев Владимир Николаевич <v.bely...@sngb.ru 
<mailto:v.bely...@sngb.ru> >:

While you can install one primary center and the other - a reserve that it went 
SMS only in case of unavailability of the ground?

 

If I got you right you want to have multiple SMSC connections and balance 
between them if ONLY one of the link goes down?

 

You can do this if you assign different smsc-id for each SMSC connection and 
specify smsc-id at your application level, e.g.:

for smsbox: http://.../sendsms?receiver=... 
<http://.../sendsms?receiver=..._id=smscid1> _id=smscid1 
sendsms?receiver=..._id=smscid2

 

or for sqlbox: you can just set smsc-id="smscid1" upon INSERT.

 

You can monitor current state of SMSC uplinks via berearebox status page.


--
С уважением,
Беляев В.Н.

-Original Message-
From: users [mailto:users-boun...@kannel.org <mailto:users-boun...@kannel.org> 
] On Behalf Of Milan P. Stanic
Sent: Wednesday, February 10, 2016 11:05 PM
To: users@kannel.org <mailto:users@kannel.org> 
Subject: Re: Not work "priority" in settings SMSC

On Wed, 2016-02-10 at 16:31, Беляев Владимир Николаевич wrote:
> Option does not work "priority" in settings SMSC.
>
> I set up the SMSC1 priority=0, SMSC2 priority=3, but SMS is
> distributed evenly.
>
> Why can this be?

I don't have time to look into the code but from memory I think that the 
priority parameter is for setting default message priority for particular SMSC 
and is not global parameter which set priorities between SMSCs. But, I could be 
wrong.

> Kannel 1.5.0
>
> Config:
> group=smsc
> smsc=smpp
>
> smsc-id=devino_mrk
>
> system-type=
>
> interface-version=34
>
> enquire-link-interval=270
>
> source-addr-ton=5
>
> source-addr-npi=1
>
> dest-addr-ton=1
>
> dest-addr-npi=1
>
> msg-id-type=0x00
>
> log-file="/var/log/kannel/devino_mrk.log"
>
> log-level=0
>
> priority=0
>
>
>
> # СМС-Трафик тест
>
> group=smsc
>
> smsc=smpp
>
> smsc-id=smstraffic_test
>
> system-type=smpp
>
> interface-version=34
>
> enquire-link-interval=270
>
> source-addr-ton=1
>
> source-addr-npi=1
>
> dest-addr-ton=1
>
> dest-addr-npi=1
>
> msg-id-type=0x00
>
> log-file="/var/log/kannel/smstraffic_test.log"
>
> log-level=0
>
> priority=3






 



RE: Delivery reports Queued

2016-02-10 Thread Беляев Владимир Николаевич

How to install dlr mask = 31?

From: users [mailto:users-boun...@kannel.org] On Behalf Of Robin C
Sent: Thursday, February 11, 2016 12:05 PM
To: spameden
Cc: kannel users@kannel.org
Subject: Re: Delivery reports Queued

 

Hi,

 

   Please find the pdu below. And we set dlr_mask = 31. Then we got the ACK 
only.  

 

 

2016-02-11 12:25:07 [30659] [6] DEBUG: SMPP[DNDP_P]: Sending PDU:

2016-02-11 12:25:07 [30659] [6] DEBUG: SMPP PDU 0x7f2cd8000a10 dump:

2016-02-11 12:25:07 [30659] [6] DEBUG:   type_name: submit_sm

2016-02-11 12:25:07 [30659] [6] DEBUG:   command_id: 4 = 0x0004

2016-02-11 12:25:07 [30659] [6] DEBUG:   command_status: 0 = 0x

2016-02-11 12:25:07 [30659] [6] DEBUG:   sequence_number: 318 = 0x013e

2016-02-11 12:25:07 [30659] [6] DEBUG:   service_type: NULL

2016-02-11 12:25:07 [30659] [6] DEBUG:   source_addr_ton: 5 = 0x0005

2016-02-11 12:25:07 [30659] [6] DEBUG:   source_addr_npi: 0 = 0x

2016-02-11 12:25:07 [30659] [6] DEBUG:   source_addr: "senderid"

2016-02-11 12:25:07 [30659] [6] DEBUG:   dest_addr_ton: 1 = 0x0001

2016-02-11 12:25:07 [30659] [6] DEBUG:   dest_addr_npi: 1 = 0x0001

2016-02-11 12:25:07 [30659] [6] DEBUG:   destination_addr: "mobilenumber"

2016-02-11 12:25:07 [30659] [6] DEBUG:   esm_class: 3 = 0x0003

2016-02-11 12:25:07 [30659] [6] DEBUG:   protocol_id: 0 = 0x

2016-02-11 12:25:07 [30659] [6] DEBUG:   priority_flag: 0 = 0x

2016-02-11 12:25:07 [30659] [6] DEBUG:   schedule_delivery_time: NULL

2016-02-11 12:25:07 [30659] [6] DEBUG:   validity_period: NULL

2016-02-11 12:25:07 [30659] [6] DEBUG:   registered_delivery: 1 = 0x0001

2016-02-11 12:25:07 [30659] [6] DEBUG:   replace_if_present_flag: 0 = 0x

2016-02-11 12:25:07 [30659] [6] DEBUG:   data_coding: 0 = 0x

2016-02-11 12:25:07 [30659] [6] DEBUG:   sm_default_msg_id: 0 = 0x

2016-02-11 12:25:07 [30659] [6] DEBUG:   sm_length: 15 = 0x000f

2016-02-11 12:25:07 [30659] [6] DEBUG:   short_message: "testing new sms"

2016-02-11 12:25:07 [30659] [6] DEBUG: SMPP PDU dump ends.

 

 



Not work "priority" in settings SMSC

2016-02-10 Thread Беляев Владимир Николаевич
Добрый день!

Option does not work "priority" in settings SMSC.

I set up the SMSC1 priority=0, SMSC2 priority=3, but SMS is distributed
evenly.

Why can this be?



Kannel 1.5.0

 

Config:

group=smsc

smsc=smpp

smsc-id=devino_mrk

system-type=

interface-version=34

enquire-link-interval=270

source-addr-ton=5

source-addr-npi=1

dest-addr-ton=1

dest-addr-npi=1

msg-id-type=0x00

log-file="/var/log/kannel/devino_mrk.log"

log-level=0

priority=0

 

# СМС-Трафик тест

group=smsc

smsc=smpp

smsc-id=smstraffic_test

system-type=smpp

interface-version=34

enquire-link-interval=270

source-addr-ton=1

source-addr-npi=1

dest-addr-ton=1

dest-addr-npi=1

msg-id-type=0x00

log-file="/var/log/kannel/smstraffic_test.log"

log-level=0

priority=3




--
С уважением,
Беляев В.Н.