[OpenSIPS-Users] Latest opensips crashed on do_routing

2019-09-03 Thread Kirill Galinurov
Hi All/ I use opensips with drouting module.
Version: opensips 3.0.0 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC,
F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
git revision: 86d83c2b5
main.c compiled on 02:42:45 Sep  4 2019 with gcc 4.8.5
if
(!do_routing(0,,,$avp(route_number),$avp(gateway_attr),$avp(carrier_attr),"*")){

}

(gdb) bt full
#0  0x7f08222c307b in ?? ()
No symbol table info available.
Cannot access memory at address 0x7ffd725e3b50
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] opensips_cp 3.0

2019-09-03 Thread johan

Bogdan,

for opensips3.0 the connector in boxes.global.inc.php should be

 json:127.0.0.1:/mi

maybe you can change this in the example in the documentation.


Br, Johan.


On 21.08.19 18:34, johan wrote:


Hi Bogdan,

netstat -tulpn on opensipsbox:



tcp    0  0 0.0.0.0: 0.0.0.0:*   LISTEN  
8881/opensips


...

opensips.cfg

 HTTPD module
loadmodule "httpd.so"
modparam("httpd", "port", )
 MI_HTTP module
loadmodule "json.so"
loadmodule "mi_http.so"


boxes.global.inc.php

// each server is a box

$box_id=0;

//  MI connector (via JSON backend):   json:host:port/json
$boxes[$box_id]['mi']['conn']="json:127.0.0.1:/JSON";


Is there something that I overlook ?


On 21.08.19 17:59, Bogdan-Andrei Iancu wrote:

Hi,

I suspect your MI connector is not properly configured in CP - check 
if it matches the one offered by MI_HTTP in opensips (also opensips 
must run)


Regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Summit 2019
   https://www.opensips.org/events/Summit-2019Amsterdam/
On 08/21/2019 06:34 PM, johan wrote:


Hi,


I installed opensips-cp 3.1.

Both uac_registrant and smpp work (thanks for that).

However, when I need to reload something there is no reply coming 
back (see below screenshot from dr_reload).


Is there something that I need to change in my opensips.cfg to make 
this working ?



Best regards,





___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Switch Statement Trouble

2019-09-03 Thread Mark Farmer
Thanks Liviu

Looks like that was the issue, $retcode was always 1, presumably due to the
if statement.

using $var(rc) seems to have resolved it :)

Thanks again
Mark.


On Tue, 3 Sep 2019 at 14:39, Mark Farmer  wrote:

> Hi Ben
>
> I think that's the problem, it should be identifying $retcode 1 at which
> point I'd see a log entry "CUSTOM_LOG: Client authenticated" but instead
> it's falling into the cases for -1, -2, -3
>
> The 2nd log line shows the return code.
>
> TIA
> Mark.
>
>
>
> On Tue, 3 Sep 2019 at 14:32, Ben Newlin  wrote:
>
>> Mark,
>>
>>
>>
>> The logs you provided don’t show the code hitting the case for 1 at all.
>> Have you verified the value of $retcode is what you think it is? You might
>> consider adding it to the log print.
>>
>>
>>
>> Ben Newlin
>>
>>
>>
>> *From: *Users  on behalf of Mark
>> Farmer 
>> *Reply-To: *OpenSIPS users mailling list 
>> *Date: *Tuesday, September 3, 2019 at 9:25 AM
>> *To: *OpenSIPS users mailling list 
>> *Subject: *[OpenSIPS-Users] Switch Statement Trouble
>>
>>
>>
>> Hi everyone, can anyone tell me what's going wrong here please?
>>
>> I'm having a problem with my switch statement in that  $retcode 1 ends up
>> falling into the processing for -1, -2, -3
>>
>>
>>
>> # If the client is not already authenticated, check the return code and
>> look for multiple failures
>>
>> www_authorize("", "subscriber");
>>
>> switch ($retcode)
>>
>> {
>>
>> case 0: # false
>>
>> xlog("CUSTOM_LOG: Client NOT
>> authenticated");
>>
>> break;
>>
>> case 1: # true
>>
>> xlog("CUSTOM_LOG: Client authenticated");
>>
>> break;
>>
>> case -3: # stale nonce
>>
>> case -2: # invalid passwd
>>
>> case -1: # no such user
>>
>> xlog("CUSTOM_LOG: Failed Authentication
>> Attempt (Return Code: $retcode) for $ru To: $tu - Checking for Dictionary
>> attack");
>>
>> # Is the attribute AuthFail_$si present
>> in cache?
>>
>> if (
>> cache_fetch("local","AuthFail_$si",$avp(failed_no)) ) {
>>
>> xlog("CUSTOM_LOG: Failure
>> Attempts for $ru ($fU) is now $avp(failed_no) (Return Code: $retcode)");
>>
>> # If so, how many failures so far?
>>
>> if ( $(avp(failed_no){s.int}) >=
>> $var(max_auth_fail) ) {
>>
>> xlog("CUSTOM_LOG:
>> SECURITY ALERT: $var(max_auth_fail) failed auth attempts for $fU from $si -
>> Blocking IP Address");
>>
>> # Looks like bad people -
>> Block the source IP
>>
>> exec("sudo /sbin/ipset
>> add $var(ipset) $$SIP_SRCIP");
>>
>> xlog("CUSTOM_LOG: $si
>> added to ipset $var(ipset))");
>>
>> exit;
>>
>> }
>>
>> # If authentication is failing,
>> increment the value of AuthFail_$si by 1
>>
>> xlog("CUSTOM_LOG: Incrementing
>> AuthFail_$si");
>>
>>
>> cache_add("local","AuthFail_$si",1,60);
>>
>> } else {
>>
>> # If the attribute AuthFail_$si
>> is not present - add it
>>
>> xlog("CUSTOM_LOG: Adding Cache
>> entry AuthFail_$si");
>>
>>
>> cache_store("local","AuthFail_$si","1",60);
>>
>> }
>>
>> break;
>>
>> default:
>>
>> # If non of the above is true, try to
>> authenticate the user
>>
>> xlog("CUSTOM_LOG: No Subscriber in
>> database for $ru ($fU) - Challenging");
>>
>> www_challenge("", 0);
>>
>> }
>>
>>
>>
>> --
>>
>>
>>
>> From my logs:
>>
>>
>>
>> CUSTOM_LOG: Failed Authentication Attempt (Return Code: 1) for
>> sip:XXX.XXX.XXX.XXX To: sip:5...@xxx.xxx.xxx.xxx - Checking for
>> Dictionary attack
>>
>> CUSTOM_LOG: Failure Attempts for sip:XXX.XXX.XXX.XXX (5003) is now 1
>> (Return Code: 1)
>>
>> CUSTOM_LOG: Incrementing AuthFail_XXX.XXX.XXX.XXX
>>
>>
>>
>> Version info:
>>
>>
>>
>> version: opensips 3.0.0 (x86_64/linux)
>>
>> flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC,
>> Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, CC_O0, FAST_LOCK-ADAPTIVE_WAIT
>>
>> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
>> MAX_URI_SIZE 1024, BUF_SIZE 65535
>>
>> poll method 

Re: [OpenSIPS-Users] Switch Statement Trouble

2019-09-03 Thread Mark Farmer
Hi Ben

I think that's the problem, it should be identifying $retcode 1 at which
point I'd see a log entry "CUSTOM_LOG: Client authenticated" but instead
it's falling into the cases for -1, -2, -3

The 2nd log line shows the return code.

TIA
Mark.



On Tue, 3 Sep 2019 at 14:32, Ben Newlin  wrote:

> Mark,
>
>
>
> The logs you provided don’t show the code hitting the case for 1 at all.
> Have you verified the value of $retcode is what you think it is? You might
> consider adding it to the log print.
>
>
>
> Ben Newlin
>
>
>
> *From: *Users  on behalf of Mark Farmer
> 
> *Reply-To: *OpenSIPS users mailling list 
> *Date: *Tuesday, September 3, 2019 at 9:25 AM
> *To: *OpenSIPS users mailling list 
> *Subject: *[OpenSIPS-Users] Switch Statement Trouble
>
>
>
> Hi everyone, can anyone tell me what's going wrong here please?
>
> I'm having a problem with my switch statement in that  $retcode 1 ends up
> falling into the processing for -1, -2, -3
>
>
>
> # If the client is not already authenticated, check the return code and
> look for multiple failures
>
> www_authorize("", "subscriber");
>
> switch ($retcode)
>
> {
>
> case 0: # false
>
> xlog("CUSTOM_LOG: Client NOT
> authenticated");
>
> break;
>
> case 1: # true
>
> xlog("CUSTOM_LOG: Client authenticated");
>
> break;
>
> case -3: # stale nonce
>
> case -2: # invalid passwd
>
> case -1: # no such user
>
> xlog("CUSTOM_LOG: Failed Authentication
> Attempt (Return Code: $retcode) for $ru To: $tu - Checking for Dictionary
> attack");
>
> # Is the attribute AuthFail_$si present in
> cache?
>
> if (
> cache_fetch("local","AuthFail_$si",$avp(failed_no)) ) {
>
> xlog("CUSTOM_LOG: Failure Attempts
> for $ru ($fU) is now $avp(failed_no) (Return Code: $retcode)");
>
> # If so, how many failures so far?
>
> if ( $(avp(failed_no){s.int}) >=
> $var(max_auth_fail) ) {
>
> xlog("CUSTOM_LOG: SECURITY
> ALERT: $var(max_auth_fail) failed auth attempts for $fU from $si - Blocking
> IP Address");
>
> # Looks like bad people -
> Block the source IP
>
> exec("sudo /sbin/ipset add
> $var(ipset) $$SIP_SRCIP");
>
> xlog("CUSTOM_LOG: $si
> added to ipset $var(ipset))");
>
> exit;
>
> }
>
> # If authentication is failing,
> increment the value of AuthFail_$si by 1
>
> xlog("CUSTOM_LOG: Incrementing
> AuthFail_$si");
>
>
> cache_add("local","AuthFail_$si",1,60);
>
> } else {
>
> # If the attribute AuthFail_$si is
> not present - add it
>
> xlog("CUSTOM_LOG: Adding Cache
> entry AuthFail_$si");
>
>
> cache_store("local","AuthFail_$si","1",60);
>
> }
>
> break;
>
> default:
>
> # If non of the above is true, try to
> authenticate the user
>
> xlog("CUSTOM_LOG: No Subscriber in
> database for $ru ($fU) - Challenging");
>
> www_challenge("", 0);
>
> }
>
>
>
> --
>
>
>
> From my logs:
>
>
>
> CUSTOM_LOG: Failed Authentication Attempt (Return Code: 1) for
> sip:XXX.XXX.XXX.XXX To: sip:5...@xxx.xxx.xxx.xxx - Checking for
> Dictionary attack
>
> CUSTOM_LOG: Failure Attempts for sip:XXX.XXX.XXX.XXX (5003) is now 1
> (Return Code: 1)
>
> CUSTOM_LOG: Incrementing AuthFail_XXX.XXX.XXX.XXX
>
>
>
> Version info:
>
>
>
> version: opensips 3.0.0 (x86_64/linux)
>
> flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC,
> Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, CC_O0, FAST_LOCK-ADAPTIVE_WAIT
>
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
> MAX_URI_SIZE 1024, BUF_SIZE 65535
>
> poll method support: poll, epoll, sigio_rt, select.
>
> git revision: 435890a06
>
> main.c compiled on 13:19:25 Jun 21 2019 with gcc 7
>
>
>
> Many thanks
>
> Mark.
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 
Mark Farmer
farm...@gmail.com
___
Users 

Re: [OpenSIPS-Users] Switch Statement Trouble

2019-09-03 Thread Liviu Chircu

Hi Mark,

Be _very_ careful when manipulating the "$retcode" variable, as it might 
get overwritten more often
than you think.  I've seen "if" statements which override it to 1 
(success), so maybe the "case" is

behaving similarly.

I suggest you first back it up, as such:

$var(rc) = www_authorize("", "subscriber");
switch ($var(rc)) {
    ...
}

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 03.09.2019 16:24, Mark Farmer wrote:

From my logs:

CUSTOM_LOG: Failed Authentication Attempt (Return Code: 1) for 
sip:XXX.XXX.XXX.XXX To: sip:5...@xxx.xxx.xxx.xxx - Checking for 
Dictionary attack


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Switch Statement Trouble

2019-09-03 Thread Mark Farmer
Hi everyone, can anyone tell me what's going wrong here please?
I'm having a problem with my switch statement in that  $retcode 1 ends up
falling into the processing for -1, -2, -3

# If the client is not already authenticated, check the return code and
look for multiple failures
www_authorize("", "subscriber");
switch ($retcode)
{
case 0: # false
xlog("CUSTOM_LOG: Client NOT
authenticated");
break;
case 1: # true
xlog("CUSTOM_LOG: Client authenticated");
break;
case -3: # stale nonce
case -2: # invalid passwd
case -1: # no such user
xlog("CUSTOM_LOG: Failed Authentication
Attempt (Return Code: $retcode) for $ru To: $tu - Checking for Dictionary
attack");
# Is the attribute AuthFail_$si present in
cache?
if (
cache_fetch("local","AuthFail_$si",$avp(failed_no)) ) {
xlog("CUSTOM_LOG: Failure Attempts
for $ru ($fU) is now $avp(failed_no) (Return Code: $retcode)");
# If so, how many failures so far?
if ( $(avp(failed_no){s.int}) >=
$var(max_auth_fail) ) {
xlog("CUSTOM_LOG: SECURITY
ALERT: $var(max_auth_fail) failed auth attempts for $fU from $si - Blocking
IP Address");
# Looks like bad people -
Block the source IP
exec("sudo /sbin/ipset add
$var(ipset) $$SIP_SRCIP");
xlog("CUSTOM_LOG: $si added
to ipset $var(ipset))");
exit;
}
# If authentication is failing,
increment the value of AuthFail_$si by 1
xlog("CUSTOM_LOG: Incrementing
AuthFail_$si");

cache_add("local","AuthFail_$si",1,60);
} else {
# If the attribute AuthFail_$si is
not present - add it
xlog("CUSTOM_LOG: Adding Cache
entry AuthFail_$si");

cache_store("local","AuthFail_$si","1",60);
}
break;
default:
# If non of the above is true, try to
authenticate the user
xlog("CUSTOM_LOG: No Subscriber in database
for $ru ($fU) - Challenging");
www_challenge("", 0);
}

--

>From my logs:

CUSTOM_LOG: Failed Authentication Attempt (Return Code: 1) for
sip:XXX.XXX.XXX.XXX To: sip:5...@xxx.xxx.xxx.xxx - Checking for Dictionary
attack
CUSTOM_LOG: Failure Attempts for sip:XXX.XXX.XXX.XXX (5003) is now 1
(Return Code: 1)
CUSTOM_LOG: Incrementing AuthFail_XXX.XXX.XXX.XXX

Version info:

version: opensips 3.0.0 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC,
F_MALLOC, HP_MALLOC, DBG_MALLOC, CC_O0, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
git revision: 435890a06
main.c compiled on 13:19:25 Jun 21 2019 with gcc 7

Many thanks
Mark.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Switch Statement Trouble

2019-09-03 Thread Ben Newlin
Mark,

The logs you provided don’t show the code hitting the case for 1 at all. Have 
you verified the value of $retcode is what you think it is? You might consider 
adding it to the log print.

Ben Newlin

From: Users  on behalf of Mark Farmer 

Reply-To: OpenSIPS users mailling list 
Date: Tuesday, September 3, 2019 at 9:25 AM
To: OpenSIPS users mailling list 
Subject: [OpenSIPS-Users] Switch Statement Trouble

Hi everyone, can anyone tell me what's going wrong here please?
I'm having a problem with my switch statement in that  $retcode 1 ends up 
falling into the processing for -1, -2, -3

# If the client is not already authenticated, check the return code and look 
for multiple failures
www_authorize("", "subscriber");
switch ($retcode)
{
case 0: # false
xlog("CUSTOM_LOG: Client NOT authenticated");
break;
case 1: # true
xlog("CUSTOM_LOG: Client authenticated");
break;
case -3: # stale nonce
case -2: # invalid passwd
case -1: # no such user
xlog("CUSTOM_LOG: Failed Authentication Attempt 
(Return Code: $retcode) for $ru To: $tu - Checking for Dictionary attack");
# Is the attribute AuthFail_$si present in 
cache?
if ( 
cache_fetch("local","AuthFail_$si",$avp(failed_no)) ) {
xlog("CUSTOM_LOG: Failure Attempts for 
$ru ($fU) is now $avp(failed_no) (Return Code: $retcode)");
# If so, how many failures so far?
if ( 
$(avp(failed_no){s.int}) >= $var(max_auth_fail) ) {
xlog("CUSTOM_LOG: SECURITY 
ALERT: $var(max_auth_fail) failed auth attempts for $fU from $si - Blocking IP 
Address");
# Looks like bad people - Block 
the source IP
exec("sudo /sbin/ipset add 
$var(ipset) $$SIP_SRCIP");
xlog("CUSTOM_LOG: $si added to 
ipset $var(ipset))");
exit;
}
# If authentication is failing, 
increment the value of AuthFail_$si by 1
xlog("CUSTOM_LOG: Incrementing 
AuthFail_$si");
cache_add("local","AuthFail_$si",1,60);
} else {
# If the attribute AuthFail_$si is not 
present - add it
xlog("CUSTOM_LOG: Adding Cache entry 
AuthFail_$si");

cache_store("local","AuthFail_$si","1",60);
}
break;
default:
# If non of the above is true, try to 
authenticate the user
xlog("CUSTOM_LOG: No Subscriber in database for 
$ru ($fU) - Challenging");
www_challenge("", 0);
}

--

From my logs:

CUSTOM_LOG: Failed Authentication Attempt (Return Code: 1) for 
sip:XXX.XXX.XXX.XXX To: sip:5...@xxx.xxx.xxx.xxx - Checking for Dictionary 
attack
CUSTOM_LOG: Failure Attempts for sip:XXX.XXX.XXX.XXX (5003) is now 1 (Return 
Code: 1)
CUSTOM_LOG: Incrementing AuthFail_XXX.XXX.XXX.XXX

Version info:

version: opensips 3.0.0 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, 
F_MALLOC, HP_MALLOC, DBG_MALLOC, CC_O0, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
git revision: 435890a06
main.c compiled on 13:19:25 Jun 21 2019 with gcc 7

Many thanks
Mark.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] function message

2019-09-03 Thread johan

Hello,


does there exist a method in opensips to create a MESSAGE to a contact ?


BR, Johan.


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] misterious error on receive smpp message causing a rebind while the session is up.

2019-09-03 Thread johan

Hello,


using opensips3.0.

Opensips is on ip 10.3.0.150, smpp relay is on 80.84.24.81.

They are connected with a trx link.

33662124034 is a mobile number

33757936414 is a user on opensips, this user is connected on TLS.

Upon receiving a message from the smpp relay I find below in the logs.

Sep  3 09:22:48 hendrix /data/opensips/sbin/opensips[3111]: 
DBG:proto_smpp:handle_submit_or_deliver_cmd: Received SMPP 
message#012FROM:#01101 01 33662124034#012TO:#01101 01 
33757936414#012LEN:#01110#012Test11resp
Sep  3 09:22:48 hendrix /data/opensips/sbin/opensips[3111]: 
DBG:core:tcp_conn_get: con found in state 0
Sep  3 09:22:48 hendrix /data/opensips/sbin/opensips[3111]: 
DBG:core:tcp_conn_get: tcp connection found (0x7fbe9a97bb50) already in 
this process ( 15 ) , fd = 5
Sep  3 09:22:48 hendrix /data/opensips/sbin/opensips[3111]: 
ERROR:core:tsend_stream: tsend_stream: failed to send: (14) Bad address
Sep  3 09:22:48 hendrix /data/opensips/sbin/opensips[3111]: 
ERROR:proto_smpp:smpp_send_msg: failed to send data!



Net result of this eror is that opensips thinks that the smpp link is 
down and hence sends a new bindtransceiver request 3 seconds later.  The 
smpp relay rejects this with reason "ESME already in bound state".


Sep  3 09:22:51 hendrix /data/opensips/sbin/opensips[3101]: 
DBG:tm:wait_handler: done
Sep  3 09:22:51 hendrix /data/opensips/sbin/opensips[3103]: 
INFO:proto_smpp:send_bind: binding session with system_id "BELDUSTMO"
Sep  3 09:22:51 hendrix /data/opensips/sbin/opensips[3103]: 
DBG:core:probe_max_sock_buff: getsockopt: snd is initially 16384
Sep  3 09:22:51 hendrix /data/opensips/sbin/opensips[3103]: 
INFO:core:probe_max_sock_buff: using snd buffer of 416 kb
Sep  3 09:22:51 hendrix /data/opensips/sbin/opensips[3103]: 
INFO:core:init_sock_keepalive: TCP keepalive enabled on socket 130
Sep  3 09:22:51 hendrix /data/opensips/sbin/opensips[3100]: 
DBG:db_mysql:mysql_raise_event: MySQL status has not changed: connected
Sep  3 09:22:51 hendrix /data/opensips/sbin/opensips[3103]: 
DBG:core:print_ip: tcpconn_new: new tcp connection to: 80.84.24.81
Sep  3 09:22:51 hendrix /data/opensips/sbin/opensips[3103]: 
DBG:core:tcpconn_new: on port 2775, proto 10
Sep  3 09:22:51 hendrix /data/opensips/sbin/opensips[3103]: 
INFO:proto_smpp:smpp_conn_init: smpp_conn_init called
Sep  3 09:22:51 hendrix /data/opensips/sbin/opensips[3103]: 
DBG:proto_smpp:send_bind: sent 43 bytes on smpp connection 0x7fbe9a946268
Sep  3 09:22:51 hendrix /data/opensips/sbin/opensips[3103]: 
DBG:proto_smpp:bind_session: succsessfully bound BICS
Sep  3 09:22:51 hendrix /data/opensips/sbin/opensips[3103]: 
ERROR:proto_smpp:smpp_send_msg: cannot fetch connection for BICS (0)
Sep  3 09:22:51 hendrix /data/opensips/sbin/opensips[3119]: 
DBG:core:handle_worker: read response= 7fbe9a946268, 2, fd 302 from 7 (3103)
Sep  3 09:22:51 hendrix /data/opensips/sbin/opensips[3119]: 
DBG:core:tcpconn_add: hashes: 647, 160
Sep  3 09:22:51 hendrix /data/opensips/sbin/opensips[3119]: 
DBG:core:io_watch_add: [TCP_main] io_watch_add op (302 on 5) 
(0x5575c03fc700, 302, 19, 0x7fbe9a946268,1), fd_no=34/1024
Sep  3 09:22:53 hendrix /data/opensips/sbin/opensips[3119]: 
DBG:core:handle_tcpconn_ev: data available on 0x7fbe9a946268 302
Sep  3 09:22:53 hendrix /data/opensips/sbin/opensips[3119]: 
DBG:core:io_watch_del: [TCP_main] io_watch_del op on index 3 302 
(0x5575c03fc700, 302, 3, 0x0,0x1) fd_no=35 called
Sep  3 09:22:53 hendrix /data/opensips/sbin/opensips[3119]: 
DBG:core:send2worker: to tcp worker 1 (0), 0x7fbe9a946268 rw 1
Sep  3 09:22:53 hendrix /data/opensips/sbin/opensips[3111]: 
DBG:core:handle_io: We have received conn 0x7fbe9a946268 with rw 1 on fd 5
Sep  3 09:22:53 hendrix /data/opensips/sbin/opensips[3111]: 
DBG:core:io_watch_add: [TCP_worker] io_watch_add op (5 on 88) 
(0x5575c03fc700, 5, 19, 0x7fbe9a946268,1), fd_no=4/1024
Sep  3 09:22:53 hendrix /data/opensips/sbin/opensips[3111]: 
DBG:proto_smpp:smpp_read_req: Using the global ( per process ) buff
Sep  3 09:22:53 hendrix /data/opensips/sbin/opensips[3111]: 
DBG:proto_smpp:smpp_parse_headers: received a complete message
Sep  3 09:22:53 hendrix /data/opensips/sbin/opensips[3111]: 
DBG:proto_smpp:smpp_handle_req: completely received a message
Sep  3 09:22:53 hendrix /data/opensips/sbin/opensips[3111]: 
DBG:proto_smpp:smpp_handle_req: Nothing more to read on TCP conn 
0x7fbe9a946268, currently in state 0
Sep  3 09:22:53 hendrix /data/opensips/sbin/opensips[3111]: 
DBG:proto_smpp:handle_smpp_msg: Received SMPP command 8009
Sep  3 09:22:53 hendrix /data/opensips/sbin/opensips[3111]: 
DBG:proto_smpp:handle_bind_transceiver_resp_cmd: Received 
bind_transceiver_resp command
Sep  3 09:22:53 hendrix /data/opensips/sbin/opensips[3111]: 
ERROR:proto_smpp:handle_bind_transceiver_resp_cmd: Error in 
bind_transceiver_resp 0005
Sep  3 09:22:53 hendrix /data/opensips/sbin/opensips[3111]: 
DBG:proto_smpp:smpp_read_req: tcp_read_req end
Sep  3 09:22:53 hendrix /data/opensips/sbin/opensips[3111]: 

Re: [OpenSIPS-Users] Need some reference to run opensips-cli commands .

2019-09-03 Thread Sasmita Panda
Yes , I got it . I have already tried and its working . I got the info what
I was looking for .  Thank you so much for helping me out .


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Tue, Sep 3, 2019 at 2:31 PM Alexey Kazantsev via Users <
users@lists.opensips.org> wrote:

> Hi Sasmita,
>
> in spite of some python-related warnings, your commands are working
> (running 3.0).
>
> Try like this:
>
>
>  root@vds1261:~# opensips-cli -x mi get_statistics tm:
>
>  /usr/local/lib/python3.5/dist-packages/sqlalchemy/sql/functions.py:68:
> SAWarning: The GenericFunction 'array_agg' is already registered and is
> going to be overriden.
>"is going to be overriden.".format(identifier))
>  tm:received_replies: 0
>  tm:relayed_replies: 0
>  tm:local_replies: 0
>  tm:UAS_transactions: 0
>  tm:UAC_transactions: 0
>  tm:2xx_transactions: 0
>  tm:3xx_transactions: 0
>  tm:4xx_transactions: 0
>  tm:5xx_transactions: 0
>  tm:6xx_transactions: 0
>  tm:inuse_transactions: 0
>
>
>
> ---
> BR, Alexey
> http://alexeyka.zantsev.com/
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need some reference to run opensips-cli commands .

2019-09-03 Thread Giovanni Maruzzelli
for shmem: (note the colon after shmem):

(opensips-cli): mi get_statistics shmem:
{
"shmem:total_size": 268435456,
"shmem:max_used_size": 4546936,
"shmem:free_size": 263955152,
"shmem:used_size": 4314256,
"shmem:real_used_size": 4480304,
"shmem:fragments": 1093
}



On Tue, Sep 3, 2019 at 11:03 AM Alexey Kazantsev via Users <
users@lists.opensips.org> wrote:

> Hi Sasmita,
>
> in spite of some python-related warnings, your commands are working
> (running 3.0).
>
> Try like this:
>
>
>  root@vds1261:~# opensips-cli -x mi get_statistics tm:
>
>  /usr/local/lib/python3.5/dist-packages/sqlalchemy/sql/functions.py:68:
> SAWarning: The GenericFunction 'array_agg' is already registered and is
> going to be overriden.
>"is going to be overriden.".format(identifier))
>  tm:received_replies: 0
>  tm:relayed_replies: 0
>  tm:local_replies: 0
>  tm:UAS_transactions: 0
>  tm:UAC_transactions: 0
>  tm:2xx_transactions: 0
>  tm:3xx_transactions: 0
>  tm:4xx_transactions: 0
>  tm:5xx_transactions: 0
>  tm:6xx_transactions: 0
>  tm:inuse_transactions: 0
>
>
>
> ---
> BR, Alexey
> http://alexeyka.zantsev.com/
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 
Sincerely,

Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need some reference to run opensips-cli commands .

2019-09-03 Thread Alexey Kazantsev via Users
Hi Sasmita,

in spite of some python-related warnings, your commands are working (running 
3.0).

Try like this:


 root@vds1261:~# opensips-cli -x mi get_statistics tm:
 /usr/local/lib/python3.5/dist-packages/sqlalchemy/sql/functions.py:68: 
SAWarning: The GenericFunction 'array_agg' is already registered and is going 
to be overriden.
   "is going to be overriden.".format(identifier))
 tm:received_replies: 0
 tm:relayed_replies: 0
 tm:local_replies: 0
 tm:UAS_transactions: 0
 tm:UAC_transactions: 0
 tm:2xx_transactions: 0
 tm:3xx_transactions: 0
 tm:4xx_transactions: 0
 tm:5xx_transactions: 0
 tm:6xx_transactions: 0
 tm:inuse_transactions: 0



---
BR, Alexey
http://alexeyka.zantsev.com/
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need some reference to run opensips-cli commands .

2019-09-03 Thread Sasmita Panda
Thank you Giovanni.


*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Tue, Sep 3, 2019 at 1:48 PM Giovanni Maruzzelli 
wrote:

> Sasmita,
>
> are you sure you try hard enough before writing to M-L?
>
> I never used this command, I tried three times, and found how.
>
> Maybe you don't try enough?
>
> (opensips-cli): mi get_statistics statistics=all
>
>
> -giovanni
>
> On Tue, Sep 3, 2019 at 10:10 AM Sasmita Panda  wrote:
>
>> If I am running this command it giving me below output .
>>
>> (opensips-cli): mi mem_pkg_dump log_level=4 pid=13019
>> "OK"
>>
>> (opensips-cli): mi mem_shm_dump
>> "OK"
>>
>> What should I do with this .  I need the output like how much memory
>> getting used at that time .
>>
>> This is the output through opensipsctl in opensips-1.11 which I was using
>> earlier .
>> [root@sip spanda]# /usr/local/sbin/opensipsctl fifo get_statistics shmem:
>> shmem:total_size = 4294967296
>> shmem:used_size = 5113048
>> shmem:real_used_size = 15605976
>> shmem:max_used_size = 735486296
>> shmem:free_size = 4279361320
>> shmem:fragments = 624271
>>
>> I need such output . How I will get this ?
>>
>> *Thanks & Regards*
>> *Sasmita Panda*
>> *Senior Network Testing and Software Engineer*
>> *3CLogic , ph:07827611765*
>>
>>
>> On Tue, Sep 3, 2019 at 1:29 PM Giovanni Maruzzelli 
>> wrote:
>>
>>> then for each command, if you press "tab" it will give you what
>>> arguments are needed (if any)
>>>
>>> (opensips-cli): mi mem_pkg_dump
>>> ERROR: command 'mem_pkg_dump' returned: -32602: Invalid params
>>>
>>> (opensips-cli): mi mem_pkg_dump (->TAB)
>>> log_level=  pid=
>>>
>>>
>>> On Tue, Sep 3, 2019 at 9:54 AM Giovanni Maruzzelli 
>>> wrote:
>>>
 Sasmita,

 execute opensips-cli witouth arguments, then, from inside opensips-cli
 shell, type "mi"and enter

 You will see available command,

 then for each of them, you can see possible arguments

 (opensips-cli): mi
 ERROR: module 'mi' expects the following commands: get_statistics,
 list_statistics, reset_statistics, uptime, version, pwd, arg, which, ps,
 kill, log_level, xlog_level, shm_check, cache_store, cache_fetch,
 cache_remove, event_subscribe, events_list, subscribers_list,
 list_tcp_conns, mem_pkg_dump, mem_shm_dump, mem_rpm_dump, reload_routes,
 help, list_blacklists, t_uac_dlg, t_uac_cancel, t_hash, t_reply,
 clusterer_reload, clusterer_set_status, clusterer_list,
 clusterer_list_topology, cluster_send_mi, cluster_broadcast_mi,
 clusterer_list_cap, clusterer_list_shtags, clusterer_shtag_set_active,
 ds_set_state, ds_list, ds_reload, domain_reload, domain_dump, dlg_list,
 dlg_list_ctx, dlg_end_dlg, dlg_db_sync, dlg_restore_db, dlg_cluster_sync,
 profile_get_size, profile_list_dlgs, profile_get_values, list_all_profiles,
 profile_end_dlgs, dlg_push_var, dlg_send_sequential, rtpengine_enable,
 rtpengine_show, rtpengine_reload, teardown, trace, trace_start, trace_stop











 On Tue, Sep 3, 2019 at 7:17 AM Sasmita Panda 
 wrote:

> Hi All ,
>
> Some commands giving proper output but some are giving error . I am
> not getting any document where its mention how to run these commands .
>
> opensips-cli -x mi "get_statistics"
>
> *SQLAlchemy version:  1.3.3ERROR: command 'get_statistics' returned:
> -32602: Invalid params*
>
> opensips-cli -x mi "list_statistics"
>
> *SQLAlchemy version:  1.3.3ERROR: command 'list_statistics' returned:
> -32000: Server error*
>
>  opensips-cli -x mi "mem_pkg_dump"
>
> *SQLAlchemy version:  1.3.3ERROR: command 'mem_pkg_dump' returned:
> -32602: Invalid params*
>
>
> How I will run these commands ? I need to check the package memory and
> shared memory getting used while stress testing . Please do help me .
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


 --
 Sincerely,

 Giovanni Maruzzelli
 OpenTelecom.IT
 cell: +39 347 266 56 18


>>>
>>> --
>>> Sincerely,
>>>
>>> Giovanni Maruzzelli
>>> OpenTelecom.IT
>>> cell: +39 347 266 56 18
>>>
>>> ___
>>> Users mailing list
>>> Users@lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>
>
> --
> Sincerely,
>
> Giovanni Maruzzelli
> OpenTelecom.IT
> cell: +39 347 266 56 18
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users 

Re: [OpenSIPS-Users] Need some reference to run opensips-cli commands .

2019-09-03 Thread Giovanni Maruzzelli
Sasmita,

are you sure you try hard enough before writing to M-L?

I never used this command, I tried three times, and found how.

Maybe you don't try enough?

(opensips-cli): mi get_statistics statistics=all


-giovanni

On Tue, Sep 3, 2019 at 10:10 AM Sasmita Panda  wrote:

> If I am running this command it giving me below output .
>
> (opensips-cli): mi mem_pkg_dump log_level=4 pid=13019
> "OK"
>
> (opensips-cli): mi mem_shm_dump
> "OK"
>
> What should I do with this .  I need the output like how much memory
> getting used at that time .
>
> This is the output through opensipsctl in opensips-1.11 which I was using
> earlier .
> [root@sip spanda]# /usr/local/sbin/opensipsctl fifo get_statistics shmem:
> shmem:total_size = 4294967296
> shmem:used_size = 5113048
> shmem:real_used_size = 15605976
> shmem:max_used_size = 735486296
> shmem:free_size = 4279361320
> shmem:fragments = 624271
>
> I need such output . How I will get this ?
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Tue, Sep 3, 2019 at 1:29 PM Giovanni Maruzzelli 
> wrote:
>
>> then for each command, if you press "tab" it will give you what arguments
>> are needed (if any)
>>
>> (opensips-cli): mi mem_pkg_dump
>> ERROR: command 'mem_pkg_dump' returned: -32602: Invalid params
>>
>> (opensips-cli): mi mem_pkg_dump (->TAB)
>> log_level=  pid=
>>
>>
>> On Tue, Sep 3, 2019 at 9:54 AM Giovanni Maruzzelli 
>> wrote:
>>
>>> Sasmita,
>>>
>>> execute opensips-cli witouth arguments, then, from inside opensips-cli
>>> shell, type "mi"and enter
>>>
>>> You will see available command,
>>>
>>> then for each of them, you can see possible arguments
>>>
>>> (opensips-cli): mi
>>> ERROR: module 'mi' expects the following commands: get_statistics,
>>> list_statistics, reset_statistics, uptime, version, pwd, arg, which, ps,
>>> kill, log_level, xlog_level, shm_check, cache_store, cache_fetch,
>>> cache_remove, event_subscribe, events_list, subscribers_list,
>>> list_tcp_conns, mem_pkg_dump, mem_shm_dump, mem_rpm_dump, reload_routes,
>>> help, list_blacklists, t_uac_dlg, t_uac_cancel, t_hash, t_reply,
>>> clusterer_reload, clusterer_set_status, clusterer_list,
>>> clusterer_list_topology, cluster_send_mi, cluster_broadcast_mi,
>>> clusterer_list_cap, clusterer_list_shtags, clusterer_shtag_set_active,
>>> ds_set_state, ds_list, ds_reload, domain_reload, domain_dump, dlg_list,
>>> dlg_list_ctx, dlg_end_dlg, dlg_db_sync, dlg_restore_db, dlg_cluster_sync,
>>> profile_get_size, profile_list_dlgs, profile_get_values, list_all_profiles,
>>> profile_end_dlgs, dlg_push_var, dlg_send_sequential, rtpengine_enable,
>>> rtpengine_show, rtpengine_reload, teardown, trace, trace_start, trace_stop
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Tue, Sep 3, 2019 at 7:17 AM Sasmita Panda  wrote:
>>>
 Hi All ,

 Some commands giving proper output but some are giving error . I am not
 getting any document where its mention how to run these commands .

 opensips-cli -x mi "get_statistics"

 *SQLAlchemy version:  1.3.3ERROR: command 'get_statistics' returned:
 -32602: Invalid params*

 opensips-cli -x mi "list_statistics"

 *SQLAlchemy version:  1.3.3ERROR: command 'list_statistics' returned:
 -32000: Server error*

  opensips-cli -x mi "mem_pkg_dump"

 *SQLAlchemy version:  1.3.3ERROR: command 'mem_pkg_dump' returned:
 -32602: Invalid params*


 How I will run these commands ? I need to check the package memory and
 shared memory getting used while stress testing . Please do help me .


 *Thanks & Regards*
 *Sasmita Panda*
 *Senior Network Testing and Software Engineer*
 *3CLogic , ph:07827611765*
 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users

>>>
>>>
>>> --
>>> Sincerely,
>>>
>>> Giovanni Maruzzelli
>>> OpenTelecom.IT
>>> cell: +39 347 266 56 18
>>>
>>>
>>
>> --
>> Sincerely,
>>
>> Giovanni Maruzzelli
>> OpenTelecom.IT
>> cell: +39 347 266 56 18
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>

-- 
Sincerely,

Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need some reference to run opensips-cli commands .

2019-09-03 Thread Sasmita Panda
If I am running this command it giving me below output .

(opensips-cli): mi mem_pkg_dump log_level=4 pid=13019
"OK"

(opensips-cli): mi mem_shm_dump
"OK"

What should I do with this .  I need the output like how much memory
getting used at that time .

This is the output through opensipsctl in opensips-1.11 which I was using
earlier .
[root@sip spanda]# /usr/local/sbin/opensipsctl fifo get_statistics shmem:
shmem:total_size = 4294967296
shmem:used_size = 5113048
shmem:real_used_size = 15605976
shmem:max_used_size = 735486296
shmem:free_size = 4279361320
shmem:fragments = 624271

I need such output . How I will get this ?

*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*


On Tue, Sep 3, 2019 at 1:29 PM Giovanni Maruzzelli 
wrote:

> then for each command, if you press "tab" it will give you what arguments
> are needed (if any)
>
> (opensips-cli): mi mem_pkg_dump
> ERROR: command 'mem_pkg_dump' returned: -32602: Invalid params
>
> (opensips-cli): mi mem_pkg_dump (->TAB)
> log_level=  pid=
>
>
> On Tue, Sep 3, 2019 at 9:54 AM Giovanni Maruzzelli 
> wrote:
>
>> Sasmita,
>>
>> execute opensips-cli witouth arguments, then, from inside opensips-cli
>> shell, type "mi"and enter
>>
>> You will see available command,
>>
>> then for each of them, you can see possible arguments
>>
>> (opensips-cli): mi
>> ERROR: module 'mi' expects the following commands: get_statistics,
>> list_statistics, reset_statistics, uptime, version, pwd, arg, which, ps,
>> kill, log_level, xlog_level, shm_check, cache_store, cache_fetch,
>> cache_remove, event_subscribe, events_list, subscribers_list,
>> list_tcp_conns, mem_pkg_dump, mem_shm_dump, mem_rpm_dump, reload_routes,
>> help, list_blacklists, t_uac_dlg, t_uac_cancel, t_hash, t_reply,
>> clusterer_reload, clusterer_set_status, clusterer_list,
>> clusterer_list_topology, cluster_send_mi, cluster_broadcast_mi,
>> clusterer_list_cap, clusterer_list_shtags, clusterer_shtag_set_active,
>> ds_set_state, ds_list, ds_reload, domain_reload, domain_dump, dlg_list,
>> dlg_list_ctx, dlg_end_dlg, dlg_db_sync, dlg_restore_db, dlg_cluster_sync,
>> profile_get_size, profile_list_dlgs, profile_get_values, list_all_profiles,
>> profile_end_dlgs, dlg_push_var, dlg_send_sequential, rtpengine_enable,
>> rtpengine_show, rtpengine_reload, teardown, trace, trace_start, trace_stop
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Tue, Sep 3, 2019 at 7:17 AM Sasmita Panda  wrote:
>>
>>> Hi All ,
>>>
>>> Some commands giving proper output but some are giving error . I am not
>>> getting any document where its mention how to run these commands .
>>>
>>> opensips-cli -x mi "get_statistics"
>>>
>>> *SQLAlchemy version:  1.3.3ERROR: command 'get_statistics' returned:
>>> -32602: Invalid params*
>>>
>>> opensips-cli -x mi "list_statistics"
>>>
>>> *SQLAlchemy version:  1.3.3ERROR: command 'list_statistics' returned:
>>> -32000: Server error*
>>>
>>>  opensips-cli -x mi "mem_pkg_dump"
>>>
>>> *SQLAlchemy version:  1.3.3ERROR: command 'mem_pkg_dump' returned:
>>> -32602: Invalid params*
>>>
>>>
>>> How I will run these commands ? I need to check the package memory and
>>> shared memory getting used while stress testing . Please do help me .
>>>
>>>
>>> *Thanks & Regards*
>>> *Sasmita Panda*
>>> *Senior Network Testing and Software Engineer*
>>> *3CLogic , ph:07827611765*
>>> ___
>>> Users mailing list
>>> Users@lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>
>>
>> --
>> Sincerely,
>>
>> Giovanni Maruzzelli
>> OpenTelecom.IT
>> cell: +39 347 266 56 18
>>
>>
>
> --
> Sincerely,
>
> Giovanni Maruzzelli
> OpenTelecom.IT
> cell: +39 347 266 56 18
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need some reference to run opensips-cli commands .

2019-09-03 Thread Giovanni Maruzzelli
then for each command, if you press "tab" it will give you what arguments
are needed (if any)

(opensips-cli): mi mem_pkg_dump
ERROR: command 'mem_pkg_dump' returned: -32602: Invalid params

(opensips-cli): mi mem_pkg_dump (->TAB)
log_level=  pid=


On Tue, Sep 3, 2019 at 9:54 AM Giovanni Maruzzelli 
wrote:

> Sasmita,
>
> execute opensips-cli witouth arguments, then, from inside opensips-cli
> shell, type "mi"and enter
>
> You will see available command,
>
> then for each of them, you can see possible arguments
>
> (opensips-cli): mi
> ERROR: module 'mi' expects the following commands: get_statistics,
> list_statistics, reset_statistics, uptime, version, pwd, arg, which, ps,
> kill, log_level, xlog_level, shm_check, cache_store, cache_fetch,
> cache_remove, event_subscribe, events_list, subscribers_list,
> list_tcp_conns, mem_pkg_dump, mem_shm_dump, mem_rpm_dump, reload_routes,
> help, list_blacklists, t_uac_dlg, t_uac_cancel, t_hash, t_reply,
> clusterer_reload, clusterer_set_status, clusterer_list,
> clusterer_list_topology, cluster_send_mi, cluster_broadcast_mi,
> clusterer_list_cap, clusterer_list_shtags, clusterer_shtag_set_active,
> ds_set_state, ds_list, ds_reload, domain_reload, domain_dump, dlg_list,
> dlg_list_ctx, dlg_end_dlg, dlg_db_sync, dlg_restore_db, dlg_cluster_sync,
> profile_get_size, profile_list_dlgs, profile_get_values, list_all_profiles,
> profile_end_dlgs, dlg_push_var, dlg_send_sequential, rtpengine_enable,
> rtpengine_show, rtpengine_reload, teardown, trace, trace_start, trace_stop
>
>
>
>
>
>
>
>
>
>
>
> On Tue, Sep 3, 2019 at 7:17 AM Sasmita Panda  wrote:
>
>> Hi All ,
>>
>> Some commands giving proper output but some are giving error . I am not
>> getting any document where its mention how to run these commands .
>>
>> opensips-cli -x mi "get_statistics"
>>
>> *SQLAlchemy version:  1.3.3ERROR: command 'get_statistics' returned:
>> -32602: Invalid params*
>>
>> opensips-cli -x mi "list_statistics"
>>
>> *SQLAlchemy version:  1.3.3ERROR: command 'list_statistics' returned:
>> -32000: Server error*
>>
>>  opensips-cli -x mi "mem_pkg_dump"
>>
>> *SQLAlchemy version:  1.3.3ERROR: command 'mem_pkg_dump' returned:
>> -32602: Invalid params*
>>
>>
>> How I will run these commands ? I need to check the package memory and
>> shared memory getting used while stress testing . Please do help me .
>>
>>
>> *Thanks & Regards*
>> *Sasmita Panda*
>> *Senior Network Testing and Software Engineer*
>> *3CLogic , ph:07827611765*
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
> --
> Sincerely,
>
> Giovanni Maruzzelli
> OpenTelecom.IT
> cell: +39 347 266 56 18
>
>

-- 
Sincerely,

Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Need some reference to run opensips-cli commands .

2019-09-03 Thread Giovanni Maruzzelli
Sasmita,

execute opensips-cli witouth arguments, then, from inside opensips-cli
shell, type "mi"and enter

You will see available command,

then for each of them, you can see possible arguments

(opensips-cli): mi
ERROR: module 'mi' expects the following commands: get_statistics,
list_statistics, reset_statistics, uptime, version, pwd, arg, which, ps,
kill, log_level, xlog_level, shm_check, cache_store, cache_fetch,
cache_remove, event_subscribe, events_list, subscribers_list,
list_tcp_conns, mem_pkg_dump, mem_shm_dump, mem_rpm_dump, reload_routes,
help, list_blacklists, t_uac_dlg, t_uac_cancel, t_hash, t_reply,
clusterer_reload, clusterer_set_status, clusterer_list,
clusterer_list_topology, cluster_send_mi, cluster_broadcast_mi,
clusterer_list_cap, clusterer_list_shtags, clusterer_shtag_set_active,
ds_set_state, ds_list, ds_reload, domain_reload, domain_dump, dlg_list,
dlg_list_ctx, dlg_end_dlg, dlg_db_sync, dlg_restore_db, dlg_cluster_sync,
profile_get_size, profile_list_dlgs, profile_get_values, list_all_profiles,
profile_end_dlgs, dlg_push_var, dlg_send_sequential, rtpengine_enable,
rtpengine_show, rtpengine_reload, teardown, trace, trace_start, trace_stop











On Tue, Sep 3, 2019 at 7:17 AM Sasmita Panda  wrote:

> Hi All ,
>
> Some commands giving proper output but some are giving error . I am not
> getting any document where its mention how to run these commands .
>
> opensips-cli -x mi "get_statistics"
>
> *SQLAlchemy version:  1.3.3ERROR: command 'get_statistics' returned:
> -32602: Invalid params*
>
> opensips-cli -x mi "list_statistics"
>
> *SQLAlchemy version:  1.3.3ERROR: command 'list_statistics' returned:
> -32000: Server error*
>
>  opensips-cli -x mi "mem_pkg_dump"
>
> *SQLAlchemy version:  1.3.3ERROR: command 'mem_pkg_dump' returned: -32602:
> Invalid params*
>
>
> How I will run these commands ? I need to check the package memory and
> shared memory getting used while stress testing . Please do help me .
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 
Sincerely,

Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] counter for SCTP

2019-09-03 Thread Олег Подгуйко via Users
Hello everyone!
In my project I'm using SCTP protocol. It's working fine
I would like to have some statistics about SCTP protocol.

Here ( https://www.opensips.org/Documentation/Interface-CoreStatistics-2-4 ) at 
the "Net Class" I see TLS, UDP, TCP.
Is there any way to get statistics about SCTP protocol?


Thanks
--  Олег Подгуйко___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users