Using and Updating a XiVO gallifrey repository

The gallifrey repository was updated with the changes introduced since May 23rd, 2011. The 1.2.41 version of packaging-farm was published with more documentation and a bug fix related to the generation of the dependency graph. Nicolas Hicher independently installed a working XiVO virtual machine using the repository. The same repository was used to setup a dedicated XiVO for one OVH phone.

Updating the repository

To figure out what needs updating, a query is made on the git repositories.

cd /var/cache/packaging-farm/VCS/sources/xivo-gallifrey
git fetch
git log --stat=2000,2000 ..origin/master

The –stat option shows which files are modified and the numbers after it ensure that they are not truncated. The first component of the file name designate the directory of interest. For instance

 chan_sccp/patches/fix_forward_on_bad_numbers       |   13 ++
 chan_sccp/patches/fix_useless_channel_unlocks      |  155 ++++++++++++++++++++

says that we need to re-submit as follows:

packaging-farm DIRECTORY=chan_sccp submit

The same should be done for the git repository of the debian packages

cd /var/cache/packaging-farm/VCS/debian/lenny-xivo-gallifrey
git fetch
git log --stat=2000,2000 ..origin/master

There was a need to re-submit the following:

for dir in web-interface chan_sccp ctiservers
  packaging-farm DIRECTORY=$dir submit

and the repository was updated with:

packaging-farm gallifrey

after checking what would be done with

packaging-farm -n gallifrey

The -n flag semantic can be found in the GNU make documentation. The packaging-farm command wraps the make command.

Packaging farm release

The 1.2.41 version of packaging-farm
contains documentation improvements ( packaging-farm and packaging-farm.conf manual pages ) about troubleshooting a process that prevents a directory to umount and using RSYNC options to control what is being copied when building the package (for instance to ensure that the symbolic link target is copied instead of the symbolic link).
The dependency graph failed to build the required packages: although it was accurate, in some cases it missed the corresponding action. As a consequence the child of the graph were updated but not the topmost parents.

Using XiVO with OVH

A virtual machine was setup using the gallifrey repository and the following command:

apt-get install pf-xivo

The host firewall was configured to send the 5060 port to the virtual machine and forward the https port to the nginx proxy:

--- a/shorewall/params
+++ b/shorewall/params
@@ -28,4 +28,5 @@ IP_FAILOVER=
diff --git a/shorewall/rules b/shorewall/rules
index 3a7ea65..66161c0 100644
--- a/shorewall/rules
+++ b/shorewall/rules
@@ -39,11 +39,15 @@ ACCEPT              $FW             net             icmp

 SSH(ACCEPT)    net             $FW
 HTTP(ACCEPT)   net             $FW
+HTTPS(ACCEPT)  net             $FW
 # VNC ganeti
 ACCEPT         net             $FW             tcp     11000:11010
 # VNC libvirt
 ACCEPT         net             $FW             tcp     5900:5910

+DNAT           net             loc:$VM_GALLIFREY_TEST1 tcp            5060           -       $IP_FAILOVER
+DNAT           net             loc:$VM_GALLIFREY_TEST1 udp            5060           -       $IP_FAILOVER
 # SSH remap
 DNAT           net             loc:$VM_DEV_DACHARY:22 tcp            22001           -       $IP_FAILOVER
 DNAT           net             loc:$VM_SKARO_XIVO:22 tcp             22002           -       $IP_FAILOVER

The nginx proxy was configured to reverse proxy https:

diff --git a/nginx/sites-available/ b/nginx/sites-available/
new file mode 100644
index 0000000..2525ff9
--- /dev/null
+++ b/nginx/sites-available/
@@ -0,0 +1,13 @@
+server {
+ ssl on;
+ listen 443;
+ server_name;
+ access_log  /var/log/nginx/;
+ ssl_certificate /etc/nginx/server.crt;
+ ssl_certificate_key /etc/nginx/server.key;
+ location / {
+  proxy_pass;
+#  proxy_set_header Host $host;
+ }

And the corresponding certificates created as instructed in the nginx documentation.
The IPPI instructions were followed to connect the XiVO just created with an OVH phone number. All of the instructiosn listed for IPPI apply to OVH because they use the same system (Cirpack). The values for DTMF were left unchanged and NAT set to Yes.
Debugging was made convenient with the asterisk console

$ asterisk -rvvvvv
gallifrey-test1*CLI> sip show registry
Host                            Username       Refresh State                Reg.Time                003384452800       105 Registered           Mon, 23 May 2011 11:38:12

And the actual SIP requests could be viewed with

gallifrey-test1*CLI> set debug peer trunk_ovh

which was most convenient to submit the problems to and

Independent install of XiVO

Nicolas Hicher installed XiVO using

deb gallifrey-lenny main


apt-get install pf-xivo

and reported success

(11:53:20 AM) atarakt: Installation successful !!!
(11:53:24 AM) atarakt: excellent =)
(11:54:28 AM) atarakt: j'ai un xivo qui tourne
(11:57:37 AM) dachary: oO
(11:57:50 AM) ***dachary débouche le champagne