SAIL Community Supported PBX

SAIL Forums => Debian => Topic started by: apmuthu on April 24, 2016, 03:23:59 PM

Title: SAIL 4.1-12 user desc > 7 in extensions display
Post by: apmuthu on April 24, 2016, 03:23:59 PM
The display of the user in Endpoints => Extensions menu shows upto 7 characters user but if longer, it truncates it to 5 characters and a period. This can be extended to display upto 12 characters by editing /opt/sark/php/sarkextension/view.php line 206:

if ( strlen($row['desc']) > 7 ) {

to

if ( strlen($row['desc']) > 12 ) {


A similar truncation is done for display of device name at the 8th character in line 215 of the same file.

For OpenVZ like shared containers, we need a sleep(1) before returning from the routine that stops asterisk.

All changes needed are attached in this post.


Title: Re: SAIL 4.1-12 user desc > 7 in extensions display
Post by: sysadmin on April 24, 2016, 09:39:46 PM
Hi apmuthu

To answer your points. 

The truncation is deliberate because without it the tables can be thrown out of alignment.   However, you can still see the full name by hovering your curser over the cell you wish to inspect.  It will appear in a speech bubble above the cell.

The requirement for a sleep patch seems to be a quirk of OpenVZ since we don't see the issue in either KVM or LXC.  Being primarily a Debian distro, we don't test with OpenVZ because its use is discouraged by the Debian maintainers, in fact I think it has been removed from the Debian libraries since 7.0.   However, on the face of it, a one second delay is no big deal so I'll look at taking it into the mainline.

Kind Regards
Title: Re: SAIL 4.1-12 user desc > 7 in extensions display
Post by: apmuthu on April 26, 2016, 05:45:37 AM
Thanks for the info:
Quote.... see the full name by hovering your curser over the cell you wish to inspect.  It will appear in a speech bubble above the cell.
and future inclusion of the 1 sec delay:
Quote.... a one second delay is no big deal so I'll look at taking it into the mainline.
Removal of OpenVZ from Debian has forced many a data center relying on OpenVZ to stay put at Wheezy. Default inclusion of PHP7 in Ubuntu 16.04 has had the same effect on upgradation.

Is there any GitHub repo you have created for SARK/SAIL code? Atleast the web interface / php portion? If not, is it okay to start one? I'd rather you, being the founding dev of SARK, start it and we all fork it.
Title: Re: SAIL 4.1-12 user desc > 7 in extensions display
Post by: sysadmin on April 26, 2016, 08:49:29 AM
It has been up on GiT for a long time.  Look for aelintra or SAIL.
Title: Re: SAIL 4.1-12 user desc > 7 in extensions display
Post by: apmuthu on April 28, 2016, 04:42:19 PM
Thanks for the info.

https://github.com/aelintra/sail