Hello list,
In kamailio 1.5.0 there is one command called 'ps'. Which when executed produces an output similar to: Process:: ID=0 PID=29533 Type=attendant Process:: ID=1 PID=29537 Type=SIP receiver udp:192.168.166.75:5060 Process:: ID=2 PID=29538 Type=SIP receiver udp:192.168.166.75:5060 Process:: ID=3 PID=29539 Type=SIP receiver udp:192.168.166.75:5060 Process:: ID=4 PID=29540 Type=SIP receiver udp:192.168.166.75:5060 Process:: ID=5 PID=29541 Type=timer Process:: ID=6 PID=29542 Type=timer Process:: ID=7 PID=29543 Type=MI FIFO Process:: ID=8 PID=29544 Type=TCP receiver Process:: ID=9 PID=29545 Type=TCP receiver Process:: ID=10 PID=29546 Type=TCP receiver Process:: ID=11 PID=29547 Type=TCP receiver Process:: ID=12 PID=29548 Type=TCP main
In kamailio 3.1.2, I get the following output: *500 command 'ps' not available
*Is there any equivalent for *kamctl ps* in version 3.1.2?
Regards,
Hello,
it should be there, do you have kex module loaded? Can you look at the output of:
'kamctl fifo which'
There is also an alternative, via sercmd tool -- start sercmd and then you have ps command or just run 'sercmd ps'. But again, the command should be in kamctl as well.
Cheers, Daniel
On 4/13/12 2:19 PM, Renan Capaverde wrote:
Thanks for the reply,
I do not have kex module loaded on kamailio 3.1.2 and neither on kamailio 1.5.0 but in 1.5.0 '*kamctl ps*' works just fine.
The output of 'kamctl fifo which' is:
*500 command 'which' not available
*And the output of 'sercmd ps' is:
*ERROR: connect_unix_sock: connect(/tmp/ser_ctl): No such file or directory [2]*
Then, i created the file with 'touch /tmp/ser_ctl' and got the following output:
*ERROR: connect_unix_sock: connect(/tmp/ser_ctl): Connection refused [111]
*So, loading the kex module will provide the ps feature on kamailio 3.1.2? Because in version 1.5.0 I don't use it and kamctl ps works.
Regards,
* *Em 14/4/2012 05:18, Daniel-Constantin Mierla escreveu:
Hello,
it is a change starting with 3.0.0, several MI commands were moved in kex module, so you need to load it.
For sercmd you have to load the ctl module. kamctl requires mi_fifo module.
Cheers, Daniel
On 4/16/12 4:53 PM, Renan Capaverde wrote:
Thank you very much, that worked.
Em 16/4/2012 12:17, Daniel-Constantin Mierla escreveu: