Hello, 

I have solved this problem :) As you wrote sipp needs root rights to create
raw socket and send rtp streams. Using sudo is a good idea.

After modified "function execute_background" in exec_call.php I realized two
problems caused by using sudo.

1. "Function getNewControlPort" went wrong because output of netstat hides
the PID of sipp process. Sudo need again...

2. Screen file in /tmp/sipp... is created by root. So this file is not
writeable by www-data user it means screen file remained empty until end of
sipp process. (screen file is filled by sipp via signal and read by ajax
periodically). Sudo need again :)

It has to modify the following lines:

exec_call.php
{function execute_background}
                $ppid = shell_exec("export TERM=vt100; (nohup sudo $command
; echo $? > $exit_code_file) 2> $error_file > $output_file & echo $!");

{function getNewControlPort}
                $command = "sudo netstat -p --numeric-ports -l --udp | grep
\"".$pid."/sipp\" | grep -o \"\:".$highest2digits."[0-9]\+\" | grep -o
\"[0-9]\+\"";

get_screen.php
                exec("sudo kill -USR2 $pid");
                exec("sudo kill -USR2 $pid");

Regards,

Zsolt

--------------------------------------------------------------------------

03-24-2010, 08:38 AM

Hello,

I installed sipp web frontend and it runs normally with the standard uac
scenario on my web server. I want to use the uac_pcap scenario in order to
send RTP streams. This uac_pcap scenario runs normally with command lines
but it doesn't work with sipp web. I tried many things to succeed but
without results.
I created my own test and loaded the standard scenario uac with media. I
tried to solve my first problem (cf. fig1) with adding "sudo" ( package sudo
is installed and sudoers is configured)* in the function execute_background
(file exec_call.php) at the following line :

$ppid = shell_exec("export TERM=vt100; ( sudo nohup $command ; echo $? >
$exit_code_file) 2> $error_file > $output_file & echo $!");

Now, I see an empty scenario screen (cf.fig 2) in the 2 cases (uac and uac
with media). Sipp web doesn't display messages.

Please, can you give me some help. I really need to run uac_pcap on my web
server.

Best Regards,


Ben

N.B: I work on a CentOS with sipp-3.0.src.tar version.


------------------------------------------------------------------------------

_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to