Koozali.org: home of the SME Server

SailtoSail Trunk help

Offline del

  • *
  • 765
  • +0/-0
SailtoSail Trunk help
« 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
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: SailtoSail Trunk help
« Reply #1 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

Offline del

  • *
  • 765
  • +0/-0
Re: SailtoSail Trunk help
« Reply #2 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
« Last Edit: April 01, 2012, 11:30:33 AM by del »
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown