Koozali.org: home of the SME Server

Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: del on March 30, 2012, 07:17:48 PM

Title: SailtoSail Trunk help
Post by: del on March 30, 2012, 07:17:48 PM
Hi All,

I am trying to setup a sailtosail trunk on two servers within my local network (I want to do it for 2 servers in different locations but thought I would try locally first) and have been following the SARK Manual, based on 3.1.0-125 so I'm assuming everything is the same as I'm running 3.1.0-128 on one server and 3.1.0.145 on the other one. Anyhow what I'm struggling with is the hostname. One server is called sark-pbx and the other sail-pbx but when I put these in and try to save it comes up with the following error "desc Failed validation with sark-pbxsail-pbx" on the 3.1.0-145 machine and "desc Failed validation" on the 3.1.0-128 machine. Am I understanding what the hostname is? I am getting this info from the Globals panel from each machine respectively. Thanks in advance.

Kind regards,
Del
Title: Re: SailtoSail Trunk help
Post by: SARK devs on March 30, 2012, 10:36:50 PM
it doesn't like hostnames with hyphens in 'em I'm afraid.  Here is a fix for you to try

edit the file /opt/sark/www/cgi-bin/sarktrunk.pl

at or around line 184 you will find a line which looks like this

      "desc"       => qr/^([\w\s~]{3,30})$/,

 replace it with this

      "desc"       => qr/^([\w\s~-]{3,30})$/,

That should allow your hyphens
 
Let me know how you get on with it.

S
Title: Re: SailtoSail Trunk help
Post by: del on April 01, 2012, 11:21:49 AM
Hi Selintra,

That worked fine, thanks for your help. Only thing is it doesn't show the trunk as connected on either server, it still shows a red X not a tick, but it still works fine.

Kind regards,
Del