[SR-Users] Help required in sipwise rtpengine-ng-client and rtpengine-ctl

Richard Fuchs rfuchs at sipwise.com
Fri Jan 22 13:57:40 CET 2021


On 21/01/2021 00.32, mahesh prasad behera wrote:
> Hi Team,
>
> We are using sipwise rtpengine on platform centos 7. To get call 
> related statistics from rtpengine. We tried to use utils 
> "rtpengine-ng-client" and "rtpengine-ctl". But for us both of them are 
> not working.
>
> *Rtpengine process status:*
> [root at ctl utils]# ps -ef |grep rtpengine
> root      3924   668  0 00:11 pts/0    00:00:00 grep --color=auto 
> rtpengine
> root     20502 20499  0 Jan19 ?        00:10:02 ../sbin/rtpengine -f 
> --num-threads 4 -i pub/10.211.160.132 <http://10.211.160.132> -i 
> priv/10.211.160.132 <http://10.211.160.132> -n 127.0.0.1:8500 
> <http://127.0.0.1:8500> -c 127.0.0.1:8500 <http://127.0.0.1:8500> -m 
> 32001 -M 32500 -T 184 -o 90 -d 4 -s 900 -p /var/run/rtpengine1.pid 
> --scheduling rr --priority 37
> [root at ctl utils]#
>
> * rtpengine-ng-client:*
> When i ran rtpengine-ng-client, I was getting Bencode.pm missing so I 
> have manually installed perl bencode library 
> "perl-Convert-Bencode-1.03-9.el7.noarch.rpm"
> Now when i ran rtpengine-ng-client i am getting below error
> [root at ctl utils]# ./rtpengine-ng-client list
> *Undefined subroutine &Bencode::bencode called at 
> /usr/local/lib64/perl5/NGCP/Rtpengine.pm line 33. *
>
That's a different Perl module (Convert::Bencode instead of Bencode). If 
there's no RPM for the Bencode module, you should be able to install it 
through CPAN.
> *rtpengine-ctl:*
> When i ran  ./rtpengine-ctl -ip 127.0.0.1:8500 <http://127.0.0.1:8500> 
> list , We are not getting any valid response from rtpengine.
> [root at ctl utils]# ./rtpengine-ctl -ip 127.0.0.1:8500 
> <http://127.0.0.1:8500> list
> *Inside do while after call socket->recv(response, 1024*1024*10)*

Not sure what this is about, but `list` is not a complete CLI command. 
Try `list sessions all`. You can also talk to the CLI port with 
something like netcat, e.g. `echo list sessions all | nc localhost 8500`

Cheers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210122/8d248095/attachment.htm>


More information about the sr-users mailing list