This is the testing instructions page for the Apache SIP module. This module has been compiled to interpret a SIP message, recognize that it is different than an HTTP message, and pass this to a script. The script will then process the SIP message accordingly. The current script is designed to redirect an incoming call to one of two different locations, depending on a variable which can be set using a standard web server and the HTTP side of Apache, essentially duplicating a redirect server. The test involves the Apache server and 3 UAs, all running on the same machine. The first UA calls Apache, and using a web page, the user selects which of the other two UAs will be called.
Documentation is available here.
If you see a different page, or you end up at orion.com (which is what will happen if no server is running at all), then we need to start Apache on Orion. Follow the instructions below.:
ps aux | grep httpdIf you see something like:
If you see this when you type ps aux instead:root 29870 0.0 0.8 2376 1144 ? S 16:10 0:00 ./httpd -d /usr/A webuser 29871 0.0 0.9 2384 1212 ? S 16:10 0:00 ./httpd -d /usr/A webuser 29872 0.0 0.9 2384 1208 ? S 16:10 0:00 ./httpd -d /usr/A webuser 29873 0.0 0.9 2384 1160 ? S 16:10 0:00 ./httpd -d /usr/A webuser 29874 0.0 0.9 2384 1160 ? S 16:10 0:00 ./httpd -d /usr/A webuser 29875 0.0 0.9 2384 1160 ? S 16:10 0:00 ./httpd -d /usr/A webuser 29877 0.0 0.9 2384 1160 ? S 16:10 0:00 ./httpd -d /usr/A webuser 29878 0.0 0.9 2384 1160 ? S 16:10 0:00 ./httpd -d /usr/A webuser 29879 0.0 0.9 2384 1160 ? S 16:10 0:00 ./httpd -d /usr/A root 29881 0.0 0.3 1360 508 pts/17 R 16:13 0:00 grep httpdAnother server is running (for whatever reason) and needs to be killed. Kill it by sending kill (not kill -9!) to the httpd process running as root only. In this case, the command would be (in the window that is root):kill 29870
or nothing, Apache is not running at all.root 29885 0.0 0.4 1360 516 pts/17 S 16:17 0:00 grep httpd
At this point Apache should be running. Type "orion" by itself as URL and verify you see the Vovida logo and 3 options.cd /usr/APACHE_TEST_JUNE_30/server/bin ./httpd -d /usr/APACHE_TEST_JUNE_30/server/www
The -d command specifies to Apache where to look for its root. The root contains such things as the configuration file for Apache (which tells it to, among other things, enable the SIP module). the HTML files that at serves (this document, the documenation, and the redirect configuration pages), and the SIP sh script that does redirection.
This is the current ua as of 4:30 pm on Monday, June 26. The first UA window (5065) will dial out, contacting Apache. You will be able to use Apache to define which of the other two UAs you want the message redirected to.
To start the UAs, do the following (as a normal user):
cd /usr/APACHE_TEST_JUNE_30/ua ./ua -f ua.cfg.5065
cd /usr/APACHE_TEST_JUNE_30/ua ./ua -f ua.cfg.5070
or if you want, you can make this window actually ring by giving the quicknet option instead and typing:cd /usr/APACHE_TEST_JUNE_30/ua ./ua -f ua.cfg.5075
I only have one quicknet card, so one of the two UAs will just have to be an onscreen test. Each config file sets to port (5065, 5070 or 5075) and sets the UAs to TCP. The first UAs file also contains the speed dial number for Apache (set to be user 6502@192.168.22.20, port 5060. The choice of 6502 was arbitrary and 192.168.22.20 is Orion (the machine to run the test on).cd /usr/APACHE_TEST_JUNE_30/ua ./ua -f -q ua.cfg.5075