https://wiki.koozali.org/api.php?action=feedcontributions&user=Stuntshell&feedformat=atomSME Server - User contributions [en]2024-03-19T09:44:01ZUser contributionsMediaWiki 1.35.5https://wiki.koozali.org/index.php?title=File:Dahdi-chan.gif&diff=13026File:Dahdi-chan.gif2009-06-09T03:09:54Z<p>Stuntshell: </p>
<hr />
<div></div>Stuntshellhttps://wiki.koozali.org/index.php?title=BridgeInterface&diff=12699BridgeInterface2009-04-06T14:38:08Z<p>Stuntshell: /* Uninstall */</p>
<hr />
<div>{{Languages}}<br />
<br />
<br />
===Maintainer===<br />
[[User:VIP-ire|Daniel B.]]<br/><br />
[http://www.firewall-services.com Firewall Services]<br><br />
mailto:daniel@firewall-services.com<br />
<br />
=== Version ===<br />
<br />
{{ #smeversion: smeserver-bridge-interface }}<br />
<br />
=== Description ===<br />
<br />
smeserver-bridge-interface is a small package allowing you to bridge your Internal Interface with one or more virtual tap interfaces. It's main goal is to be used with the new OpenVPN-Bridge contrib, but it has been split in another contrib as it can be used in other situations (if you want to run a virtual machine on your SME Server with qemu for example).<br />
<br />
=== Requirements ===<br />
*SME Server 7.X<br />
<br />
=== Installation ===<br />
<br />
*install the rpms<br />
<br />
yum --enablerepo=smecontribs install smeserver-bridge-interface<br />
<br />
*Configure the bridge<br />
<br />
Log into your server using SSH, and configure the bridge like you want.<br />
For most installation, the default settings should be OK, but you should check it:<br />
<br />
db configuration show bridge<br />
bridge=service<br />
bridgeInterface=br0<br />
ethernetInterface=eth0<br />
status=enabled<br />
tapInterface=tap0<br />
<br />
<br />
**'''bridgeInterface''': (br0) is the name of the bridge device (usually br0)<br />
**'''ethernetInterface''': (eth0|eth1) is the real interface you want to bridge. It should already be set to your actual InternalInterface<br />
{{Warning box|The bridge contrib is not compatible with the NIC bonding option. If you're running in serveronly mode and use NIC bonding, you should disable it before starting the bridge}}<br />
**'''tapInterface''': (tap0,tap1) is a comma separated list of tap interfaces to create and add to the bridge. Usually, you'll only need one tap interface (tap0)<br />
**'''status''': (enabled|disabled) is the status of the service (should it be started automatically on boot)<br />
<br />
Once you're sure everything is ok, just start the service:<br />
<br />
/etc/init.d/bridge start<br />
<br />
And check with ifconfig that everything is OK (eth0 and tap0 should have IP 0.0.0.0 and running in promiscous mode, br0 should have the IP of your Internal Interface)<br />
<br />
You can also check the bridge is correctly configured<br />
<br />
brctl show br0<br />
<br />
Should output something like:<br />
<br />
bridge name bridge id STP enabled interfaces<br />
br0 8000.00e04c101418 no eth0<br />
tap0<br />
<br />
=== Uninstall ===<br />
If you remove this contrib while it's in use, you may have a problem shuting down br0 (waiting for br0 to become free etc...), and you'll have to hard reboot your server. To prevent this you should<br />
*Disable the service<br />
db configuration setprop bridge status disabled<br />
{{Warning box|Remember that if you disable the service, [[OpenVPN_Bridge]] will stop working, so if you have it installed, you should disable or remove it too}}<br />
*Reboot your server, the bridge wont start<br />
*Remove the rpm<br />
yum remove smeserver-bridge-interface<br />
{{Warning box|signal-event post-upgrade;signal-event reboot may be required in case the system looses the internal interface}}<br />
<br />
=== Source ===<br />
The source for this contrib can be found in the smeserver [http://smeserver.cvs.sourceforge.net/smeserver/smeserver-bridge-interface/ CVS] on sourceforge.<br />
=== Bugs ===<br />
Please raise bugs under the SME-Contribs section in [http://bugs.contribs.org/enter_bug.cgi bugzilla]<br />
and select the smeserver-bridge-interface component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-bridge-interface|title=this link}}<br />
<br />
----<br />
[[Category:Contrib]]</div>Stuntshellhttps://wiki.koozali.org/index.php?title=User:Stuntshell&diff=11738User:Stuntshell2008-12-06T12:26:29Z<p>Stuntshell: </p>
<hr />
<div>stuntshell[]gmail.com<br><br />
Brazilian born active user of SME Server with previous experience working for Mitel.</div>Stuntshellhttps://wiki.koozali.org/index.php?title=User:Stuntshell&diff=11737User:Stuntshell2008-12-06T12:25:55Z<p>Stuntshell: New page: stuntshell[]gmail.com Brazilian born active user of SME Server with previous experience working for Mitel.</p>
<hr />
<div>stuntshell[]gmail.com<br />
Brazilian born active user of SME Server with previous experience working for Mitel.</div>Stuntshellhttps://wiki.koozali.org/index.php?title=Surftrackr&diff=11544Surftrackr2008-11-16T23:37:06Z<p>Stuntshell: /* Installation */</p>
<hr />
<div>{{Languages}}<br />
{{Needs review}}<br />
{{Level|Advanced}}<br />
==Description==<br />
Surftrackr is a log file viewer for Squid and Dan's Guardian. It makes it easy for you to monitor Web usage, including the type of information accessed, the sites visited by your web users, and the amount of information downloaded. Best of all, Surftrackr is free and runs in any web browser.<br />
<br />
This is an alternative for [[Sarg]].<br />
<br />
[http://surftrackr.net Read more about Surftrackr].<br />
<br />
{{Warning box|type=PLEASE READ EVERYTHING BEFORE CONTINUE|<br />
This contribution is not a traditional adaptation, so you should know exactly what you are doing.<br />
<br />
The sticking points are:<br />
<br />
Surftracker is based on the Django framework, that despite the fact that it works correctly under python 2.3 (which come with SME 7.x), but do not get this right Surftrackr. Therefore it is necessary to upgrade to Python 2.4. But all precautions were taken so that this does not affect the natural python settings of SME 7.x<br />
<br />
Another important point is the use of mod_python. If you already use mod_python for another application, you must leave here this installation. mod_python is compiled under python 2.3, and our customized version is compiled under python 2.4, so an error will occur. <br />
<br />
You have two choices: <br />
*Uninstall your mod_python and install this customized version (be careful when using Trac or another application that makes use of mod_python). <br />
*Use FastCGI with Django instead of mod_python as described here: http://docs.djangoproject.com/en/dev/howto/deployment/fastcgi}}<br />
<br />
== Installation ==<br />
Before install rpms, you must create a new ibay named '''surftrackr'''.<br />
Then run the following commands:<br />
db accounts setprop surftrackr AllowOverride all<br />
db accounts setprop surftrackr FollowSymLinks enabled<br />
signal-event ibay-modify surftrackr<br />
{{Note box|Currently I have no time to test apache rewrite rules for install under /opt directory, because Surftrackr require a FQDN main domain. See the entire Surftrackr site and blog because have a lot of info about this. May be you can write the rewrite rules and we can install under /opt dir without a FQDN. I think it is posible if you have the know how with python code because I am a very very newbie with python. If you can do this, share with us}}<br />
Create the database '''logs'''.<br />
<br />
mysqladmin create logs --default-character-set=utf8<br />
mysql<br />
GRANT ALL PRIVILEGES ON `logs` . * TO 'logsu'@'localhost' IDENTIFIED BY 'logsp' WITH GRANT OPTION ;<br />
quit<br />
<br />
First download and install python 2.4 (skip this step if you have already Pootle or python 2.4 in your system):<br />
<br />
wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/python2.4/rpms/alternatives-0.2.0rc3-9.noarch.rpm<br />
wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/python2.4/rpms/python24-2.4.2-10.el4.pyv.i386.rpm<br />
<br />
yum localinstall *.rpm<br />
<br />
Then run:<br />
/usr/sbin/alternatives-helper --remove python24<br />
mv /usr/bin/python.alternatives_save /usr/bin/python<br />
mv /usr/share/man/man1/python.1.gz.alternatives_save /usr/share/man/man1/python.1.gz<br />
<br />
Now download the following rpms into another clean directory:<br />
wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/surftrackr/rpms/Django-0.97_pre-1.noarch.rpm<br />
wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/surftrackr/rpms/mod_python-3.1.3-5.1.custom.i386.rpm<br />
wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/surftrackr/rpms/MySQL-python-1.2.2-1.i386.rpm<br />
wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/surftrackr/rpms/pygooglechart-0.2.2-1.noarch.rpm<br />
wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/surftrackr/rpms/pyparsing-1.5.1-1.noarch.rpm<br />
wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/surftrackr/rpms/python-dateutil-1.4.1-1.noarch.rpm<br />
wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/surftrackr/rpms/setuptools-0.6c9-1.noarch.rpm<br />
wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/surftrackr/rpms/surftrackr-20080326-1.noarch.rpm<br />
wget http://mirror.contribs.org/smeserver/releases/7/smecontribs/i386/RPMS/smeserver-mod_python-0.1-1.el4.sme.noarch.rpm<br />
<br />
Install:<br />
yum localinstall *.rpm<br />
<br />
Create a new domain:<br />
In SME > Configuration > Domains 'Add Domain' surftrackr.yourdomain.com pointing to the '''surftrackr''' ibay.<br />
<br />
<br />
Into surftrackr html directory open the file '''settings.py''' and edit the following variables:<br />
<br />
*LOG_FILE - If you have danguardian, change to /var/log/dansguardian/access.log and set DG logfileformat = 3 (squid format)<br />
*DISABLE_AUTH - Look at http://surftrackr.net/blog/view/28/multi-user-surftrackr/ but leave as False<br />
*LIVE_LOGGING and DATA_FROM_LOG - Look as Surftracker site, but leave as True and False respectivelly<br />
*TIME_ZONE - It is important because set the local time to reports<br />
*MEDIA_URL - Modify this line to your IP or FQDN<br />
*SECRET_KEY - Change this key. DO NOT CHANGE THE LONGITUDE<br />
<br />
Open the file .htaccess and comment '''require valid user''' and uncomment '''require user admin''' to allow only admin access.<br />
<br />
== Usage ==<br />
You can use to LIVE logs or to proccess existing logs. The default allow to live logs in real time! <br />
<br />
cd /home/e-smith/files/ibays/surftrackr/html/utils<br />
python2.4 surftrackr-livelog.py<br />
<br />
Then go at your IP or FQDN with a browser and go to LIVE page and click at '''GO''' to see what happens.<br />
<br />
If you want to proccess existing logs change LIVE_LOGGING to False and DATA_FROM_LOG to True<br />
<br />
Then run<br />
<br />
cd /home/e-smith/files/ibays/surftrackr/html/media<br />
python2.4 logfiles.py<br />
<br />
You can set a cron job to do this at 5 or 10 minutes interval. The first time run this manually because Surftrackr will process a lot of old logs info.<br />
<br />
It is VERY IMPORTANT to run the above script with python2.4 and NOT with python. Also it is very important to change directory to the script before runing. Do NOT run as python2.4 /home/e-smith/files/ibays/surftrackr/html/media/logfiles.py. Change to dir before run.<br />
<br />
As [http://surftrackr.net/blog/view/28/multi-user-surftrackr/ this doc say], every user logged at Surftrackr is created at Django DB. So read all ST documents and blog to know all the features. Because this is not fully documented, I advice you to read all blog post entries from the first to last and download the PDF docs.<br />
<br />
== Uninstall ==<br />
<br />
yum remove Django mod_python MySQL-python pygooglechart pyparsing python-dateutil setuptools surftrackr smeserver-mod_python<br />
<br />
Remove the '''surftrackr''' ibay and the database '''logs''' and user '''logsu'''.<br />
<br />
<br />
== Conclusion ==<br />
This requiere a little effort to make this contrib easy for install, like creating the database and ibays automatically, also for remove. If you have time to do it, download the source srpms from my home directory (nhall) and send me the new ones. <br />
<br />
This contribs is not at smecontribs repository because as the top page advice say (Skill level: Advanced), it is only for advanced users and not follow the standard SME procedure to install contribs.<br />
<br />
----<br />
[[Category: Howto]]</div>Stuntshellhttps://wiki.koozali.org/index.php?title=Vnstat&diff=11350Vnstat2008-10-27T11:39:58Z<p>Stuntshell: </p>
<hr />
<div>How to install vnstat and the the PHP frontent.<br><br />
[Original post http://forums.contribs.org/index.php?topic=42444]<br><br />
Get vnstat and install:<br />
wget http://dag.wieers.com/rpm/packages/vnstat/vnstat-1.4-3.2.el4.rf.i386.rpm<br />
yum localinstall vnstat-1.4-3.2.el4.rf.i386.rpm<br />
<br />
Add the interfaces you would like to monitor:<br />
vnstat -u -i eth0<br />
vnstat -u -i eth1<br />
<br />
Get the frontend and configure:<br />
cd /home/e-smith/files/ibays/Primary/html/<br />
wget http://www.sqweek.com/sqweek/files/vnstat_php_frontend-1.4.tar.gz<br />
tar -xvzf vnstat_php_frontend-1.4.tar.gz<br />
cd vnstat_php_frontend-1.4<br />
nano config:<br><br />
Edit the information about the interfaces you would like to graph:<br />
$iface_list = array('eth0', 'ppp0');<br />
The optional names: <br />
$iface_title['eth0'] = 'Internal';<br />
$iface_title['ppp0'] = 'Internet';<br />
And finnaly set application:<br />
$vnstat_bin = '/usr/bin/vnstat';<br />
<br />
Wait and you should see the application working at http://yourserverIP/vnstat_php_frontend-1.4</div>Stuntshellhttps://wiki.koozali.org/index.php?title=Vnstat&diff=11349Vnstat2008-10-27T11:38:38Z<p>Stuntshell: </p>
<hr />
<div>How to install vnstat and the the PHP frontent.<br><br />
[Original post http://forums.contribs.org/index.php?topic=42444]<br><br />
Get vnstat and install:<br />
wget http://dag.wieers.com/rpm/packages/vnstat/vnstat-1.4-3.2.el4.rf.i386.rpm<br />
yum localinstall vnstat-1.4-3.2.el4.rf.i386.rpm<br />
<br />
Add the interfaces you would like to monitor:<br />
vnstat -u -i eth0<br />
vnstat -u -i eth1<br />
<br />
Get the frontend and configure:<br />
cd /home/e-smith/files/ibays/Primary/html/<br />
wget http://www.sqweek.com/sqweek/files/vnstat_php_frontend-1.4.tar.gz<br />
tar -xvzf vnstat_php_frontend-1.4.tar.gz<br />
cd vnstat_php_frontend-1.4<br />
nano config:<br><br />
Edit the information about the interfaces you would like to graph:<br />
$iface_list = array('eth0', 'ppp0');<br />
The optional names: <br />
$iface_title['eth0'] = 'Internal';<br />
$iface_title['ppp0'] = 'Internet';<br />
And finnaly set application:<br />
$vnstat_bin = '/usr/bin/vnstat';</div>Stuntshellhttps://wiki.koozali.org/index.php?title=Vnstat&diff=11348Vnstat2008-10-27T11:34:11Z<p>Stuntshell: </p>
<hr />
<div>How to install vnstat and the the PHP frontent.<br />
Original post<br />
Get vnstat and install:<br />
wget http://dag.wieers.com/rpm/packages/vnstat/vnstat-1.4-3.2.el4.rf.i386.rpm<br />
yum localinstall vnstat-1.4-3.2.el4.rf.i386.rpm<br />
<br />
Add the interfaces you would like to monitor:<br />
vnstat -u -i eth0<br />
vnstat -u -i eth1<br />
<br />
Get the frontend and configure:<br />
cd /home/e-smith/files/ibays/Primary/html/<br />
wget http://www.sqweek.com/sqweek/files/vnstat_php_frontend-1.4.tar.gz<br />
tar -xvzf vnstat_php_frontend-1.4.tar.gz<br />
cd vnstat_php_frontend-1.4<br />
nano config:</div>Stuntshellhttps://wiki.koozali.org/index.php?title=Vnstat&diff=11347Vnstat2008-10-27T11:32:18Z<p>Stuntshell: New page: wget http://dag.wieers.com/rpm/packages/vnstat/vnstat-1.4-3.2.el4.rf.i386.rpm yum localinstall vnstat-1.4-3.2.el4.rf.i386.rpm Add the interfaces you would like to monitor: vnstat -u -i...</p>
<hr />
<div> wget http://dag.wieers.com/rpm/packages/vnstat/vnstat-1.4-3.2.el4.rf.i386.rpm<br />
yum localinstall vnstat-1.4-3.2.el4.rf.i386.rpm<br />
<br />
Add the interfaces you would like to monitor:<br />
vnstat -u -i eth0<br />
vnstat -u -i eth1<br />
<br />
cd /home/e-smith/files/ibays/Primary/html/<br />
wget http://www.sqweek.com/sqweek/files/vnstat_php_frontend-1.4.tar.gz<br />
tar -xvzf vnstat_php_frontend-1.4.tar.gz<br />
cd vnstat_php_frontend-1.4<br />
nano config</div>Stuntshellhttps://wiki.koozali.org/index.php?title=Sail_and_LDAP&diff=10489Sail and LDAP2008-08-30T18:48:18Z<p>Stuntshell: /* Description */</p>
<hr />
<div>== SAIL and local LDAP address book lookup ==<br />
<br />
=== Description ===<br />
<br />
*This is a small howto for enabling LDAP lookup of incoming CID for your external calls. <br />
<br />
*Yes, it will show NAMES on your IP phones if it matches name/number from your LDAP.<br />
<br />
*These mods are NOT supported by Sail at the moment. <br />
<br />
*This article may contain big inaccuracies, you're more than welcome to improve and correct it <br />
<br />
*I can't be held responsible for any malfunction/damage to your system after these modifications.<br />
<br />
*Note: you need gcc,asterisk-devel and phpldap-devel in order to compile app_ldap-2<br />
<br />
yum install gcc asterisk-devel phpldap-devel<br />
<br />
=== Installation ===<br />
*Download and install phpldapadmin following instructions found here: [http://wiki.contribs.org/Phpldapadmin phpldapadmin]<br />
<br />
*Download and install app_ldap-2.0rc1<br />
<br />
mkdir -p /usr/src/app_ldap2<br />
cd /usr/src/app_ldap2<br />
wget http://www.mezzo.net/asterisk/app_ldap-2.0rc1.tgz <br />
tar zvxf app_ldap-2.0rc1.tgz <br />
make install<br />
<br />
*Note: you need gcc in order to compile app_ldap-2<br />
<br />
<br />
Then open your browser and login to sme phpldapadmin page with admin credentials<br />
<br />
For example:<br />
<br />
https://myserver/phpldapadmin<br />
<br />
Now expand the base DN which should be DC=mydomain,DC=myTLD and select "Create a new entry here"<br />
<br />
Then, choose "Address Book Entry (inetOrgPerson)" and fill in the details for adding your first contact.<br />
I usually fill in Name, Surname and Work phone fields.<br />
<br />
=== Edit ldap.conf into /etc/asterisk/ ===<br />
<br />
I edited this file in place as no template fragments seems to exist at this time.<br />
Add these lines:<br />
[cidname]<br />
host = localhost<br />
version = 3<br />
base = dc=mydomain,dc=mytld<br />
convert = UTF-8, ISO-8859-1<br />
<br />
edit mydomain and mytld to match your settings (for example: dc=contribs,dc=org)<br />
<br />
=== Create a custom app into Sail ===<br />
Create a new app in SAIL PBX -> Custom apps<br />
<br />
Unique context name: your_app_name<br />
Description: your_description<br />
Span: EXTERNAL<br />
Clutser: default<br />
<br />
Code of the app:<br />
<br />
exten=>s,1,LDAPget(MYCALLERID=cidname/${CALLERIDNUM})<br />
exten=>s,2,GoTo(7000,1)<br />
exten->s,102,GoTo(7000,1)<br />
exten=>7000,1,NoOp(${MYCALLERID})<br />
exten=>7000,2,Set(CALLERID(name)=${MYCALLERID})<br />
exten=>7000,3,agi(selintra,Alias,SIP/5001 SIP/5002 SIP/5003,${EXTEN})<br />
exten=>7000,4,Hangup<br />
<br />
Where 7000 is an alias for ringing 5001, 5002 and 5003. <br />
<br />
Please use values matching your current setup.<br />
<br />
*Now edit inbound routes in your trunklines, select the custom app you created, et voilà!<br />
<br />
=== Additional informations ===<br />
<br />
Thanks to Selintra Team that made this possible with realtime answers on forum.<br />
Related topic is [http://forums.contribs.org/index.php?topic=36533.0 http://forums.contribs.org/index.php?topic=36533.0]<br />
<br />
App_ldap can be get here: [http://www.mezzo.net/asterisk/app_ldap.html http://www.mezzo.net/asterisk/app_ldap.html]<br />
<br />
=== Tested software versions ===<br />
* SMEserver v7.1.3<br />
* selintra-sail-2.1.15-483<br />
* smeserver-asterisk-1.4.1-8<br />
* smeserver-asterisk-zappri-MPP-1.4.0-5<br />
<br />
<br />
*New Test<br />
*Asterisk 1.4.17<br />
*Sail 2.2.1<br />
----<br />
<br />
[[Category: Contrib]]</div>Stuntshellhttps://wiki.koozali.org/index.php?title=Sail_and_LDAP&diff=10488Sail and LDAP2008-08-30T18:47:31Z<p>Stuntshell: /* Description */</p>
<hr />
<div>== SAIL and local LDAP address book lookup ==<br />
<br />
=== Description ===<br />
<br />
*This is a small howto for enabling LDAP lookup of incoming CID for your external calls. <br />
<br />
*Yes, it will show NAMES on your IP phones if it matches name/number from your LDAP.<br />
<br />
*These mods are NOT supported by Sail at the moment. <br />
<br />
*This article may contain big inaccuracies, you're more than welcome to improve and correct it <br />
<br />
*I can't be held responsible for any malfunction/damage to your system after these modifications.<br />
<br />
*Note: you need gcc and the asterisk-devel in order to compile app_ldap-2<br />
<br />
yum install gcc asterisk-devel phpldap-devel<br />
<br />
=== Installation ===<br />
*Download and install phpldapadmin following instructions found here: [http://wiki.contribs.org/Phpldapadmin phpldapadmin]<br />
<br />
*Download and install app_ldap-2.0rc1<br />
<br />
mkdir -p /usr/src/app_ldap2<br />
cd /usr/src/app_ldap2<br />
wget http://www.mezzo.net/asterisk/app_ldap-2.0rc1.tgz <br />
tar zvxf app_ldap-2.0rc1.tgz <br />
make install<br />
<br />
*Note: you need gcc in order to compile app_ldap-2<br />
<br />
<br />
Then open your browser and login to sme phpldapadmin page with admin credentials<br />
<br />
For example:<br />
<br />
https://myserver/phpldapadmin<br />
<br />
Now expand the base DN which should be DC=mydomain,DC=myTLD and select "Create a new entry here"<br />
<br />
Then, choose "Address Book Entry (inetOrgPerson)" and fill in the details for adding your first contact.<br />
I usually fill in Name, Surname and Work phone fields.<br />
<br />
=== Edit ldap.conf into /etc/asterisk/ ===<br />
<br />
I edited this file in place as no template fragments seems to exist at this time.<br />
Add these lines:<br />
[cidname]<br />
host = localhost<br />
version = 3<br />
base = dc=mydomain,dc=mytld<br />
convert = UTF-8, ISO-8859-1<br />
<br />
edit mydomain and mytld to match your settings (for example: dc=contribs,dc=org)<br />
<br />
=== Create a custom app into Sail ===<br />
Create a new app in SAIL PBX -> Custom apps<br />
<br />
Unique context name: your_app_name<br />
Description: your_description<br />
Span: EXTERNAL<br />
Clutser: default<br />
<br />
Code of the app:<br />
<br />
exten=>s,1,LDAPget(MYCALLERID=cidname/${CALLERIDNUM})<br />
exten=>s,2,GoTo(7000,1)<br />
exten->s,102,GoTo(7000,1)<br />
exten=>7000,1,NoOp(${MYCALLERID})<br />
exten=>7000,2,Set(CALLERID(name)=${MYCALLERID})<br />
exten=>7000,3,agi(selintra,Alias,SIP/5001 SIP/5002 SIP/5003,${EXTEN})<br />
exten=>7000,4,Hangup<br />
<br />
Where 7000 is an alias for ringing 5001, 5002 and 5003. <br />
<br />
Please use values matching your current setup.<br />
<br />
*Now edit inbound routes in your trunklines, select the custom app you created, et voilà!<br />
<br />
=== Additional informations ===<br />
<br />
Thanks to Selintra Team that made this possible with realtime answers on forum.<br />
Related topic is [http://forums.contribs.org/index.php?topic=36533.0 http://forums.contribs.org/index.php?topic=36533.0]<br />
<br />
App_ldap can be get here: [http://www.mezzo.net/asterisk/app_ldap.html http://www.mezzo.net/asterisk/app_ldap.html]<br />
<br />
=== Tested software versions ===<br />
* SMEserver v7.1.3<br />
* selintra-sail-2.1.15-483<br />
* smeserver-asterisk-1.4.1-8<br />
* smeserver-asterisk-zappri-MPP-1.4.0-5<br />
<br />
<br />
*New Test<br />
*Asterisk 1.4.17<br />
*Sail 2.2.1<br />
----<br />
<br />
[[Category: Contrib]]</div>Stuntshellhttps://wiki.koozali.org/index.php?title=Translations&diff=9583Translations2008-05-04T16:28:44Z<p>Stuntshell: /* Outdated contribs */</p>
<hr />
<div>{{Languages|Translations}}<br />
<br />
== Translating with Pootle ==<br />
SME Server Supports a dozen languages. See http://translate.contribs.org/ for the current list.<br />
<br />
To translate to another language, [http://bugs.contribs.org/enter_bug.cgi?product=SME%20Server%20Translations raise a bug] in the bug tracker to let us know you would like to start.<br />
<br />
== Pootle for translators ==<br />
Register and login at http://translate.contribs.org and you can begin with the translations.<br />
<br />
Please '''DON'T''' use automatic nor machine generated translations. These are '''BAD''' quality. Leave human translators them make its work!<br />
<br />
=== Language Responsible's ===<br />
Because we have detected some bad edits to the existing translated languages, we resolved to restrict direct translation at the Pootle. Instead of translate (Send) you can Suggest only, and a translator responsible accept or decline the suggestions.<br />
<br />
If you want to be a language responsible, create a new bug [http://bugs.contribs.org/enter_bug.cgi?product=SME%20Server%20Translations&component=SME%20Server&version=7.3&short_desc=I%20want%20to%20be%20responsible%20translator%20of%20the%20(put%20the%20language%20here)%20language.&comment=My%20Pootle%20username%20is:%20 HERE]<br />
<br />
Then you can translate directly your strings clicking at the "Send" button, and review the suggestions made for other translators. You can accept or decline the suggestions.<br />
<br />
{{Note box|<br />
<br />
'''1.''' To be a language responsible, you must create a bug as described above. Then we will grant "translate" access for you. If you are the first language responsible, you have the responsibility to accept other language responsible people based on the quality of his or hers translations.<br />
<br />
'''2.''' '''Before''' you can request responsible access, you must add the language and projects to your account in Pootle. To make these go to "My Account" --> "Change options" and select the three projects under "My Projects" SME Server Console, SME Server Panels, and SME Contribs Panels (use ctrl key for multiple select). Then select your language under "My Languages".<br />
}}<br />
<br />
<br />
{| width="100%" border="1" cellpadding="5" cellspacing="0"<br />
!LANGUAGE<br />
!RESPONSIBLES (Pootle username)<br />
|-<br />
|'''DANISH'''<br />
|<span style="color: #EE7E1E">'''koopmann - p1ur - skovsgaard'''</span><br />
|-<br />
|'''DUTCH'''<br />
|<span style="color: #EE7E1E">'''[[User:Cactus | Cactus]] - thf - jester - skydivers'''</span><br />
|-<br />
|'''FRENCH'''<br />
|<span style="color: #EE7E1E">'''jpl - mmccarn - esibert - GrandPa - dadoudidon - Cool34000 - unnilennium'''</span><br />
|-<br />
|'''GERMAN'''<br />
|<span style="color: #EE7E1E">'''Reinhold - ente - koopmann'''</span><br />
|-<br />
|'''GREEK'''<br />
|<span style="color: #EE7E1E">'''MAuVE - pfloor'''</span><br />
|-<br />
|'''HUNGARIAN'''<br />
|<span style="color: #EE7E1E">'''tacsaby'''</span><br />
|-<br />
|'''INDONESIAN'''<br />
|<span style="color: #EE7E1E">'''thomasch'''</span><br />
|-<br />
|'''ITALIAN'''<br />
|<span style="color: #EE7E1E">'''matprova - nicolatiana - Fumetto - nenonano - filippoc'''</span><br />
|-<br />
|'''BRAZILIAN PORTUGUESE'''<br />
|<span style="color: #EE7E1E">'''jader'''</span><br />
|-<br />
|'''SLOVENIAN'''<br />
|<span style="color: #EE7E1E">'''bpivk'''</span><br />
|-<br />
|'''SPANISH'''<br />
|<span style="color: #EE7E1E">'''[[User:PicsOne | Normando]] - juanidada'''</span><br />
|-<br />
|'''SWEDISH'''<br />
|<span style="color: #EE7E1E">'''chrille'''</span><br />
|-<br />
|}<br />
<br />
=== Pootle tips ===<br />
To speed up your translation process follow these tips:<br />
<br />
Enter at "My account" and then at "Change options".<br />
<br />
Set these values:<br />
<br />
*Number of rows in translate mode = 1<br />
*Number of rows in view mode = 5<br />
*Input Height (in lines) = 10<br />
<br />
You can select your language and projects to see shortcuts at your home page.<br />
<br />
==== Untranslated words ====<br />
Click '''"Show Editing Functions"''' and finally at '''"Quick Translate"''' for each file or whole language. <br />
<br />
Also you can see the suggestions clicking at '''"Review Suggestions"'''.<br />
<br />
==== Translation Memory ====<br />
You can use the matching translations from the Pootle right side '''"related"''' strings to speed up the translation process. Make the necessary fixes for the non matching strings.<br />
<br />
==== Checks before finish your work====<br />
We generate daily a consistency verification,it´s available on http://translate.contribs.org/errors/<br />
<br />
Please run these checks before conclude your work:<br />
<br />
Under the language of your choice at root level project, click at '''"Show Editing Functions"''' and then '''"Show Checks"''' to see a list of syntax errors.<br />
<br />
See http://translate.sourceforge.net/wiki/guide/pofilter_examples and http://translate.sourceforge.net/wiki/guide/translation/commonerrors<br />
<br />
{{Note box|We need to make consistent translations. The system detect some consistence errors for all languages. You can check http://translate.contribs.org/errors/ and see your language errors. Please fix the inconsistency errors}}<br />
<br />
Example for Italian: <br />
<br />
#: root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/clamav:60(trans)<br />
#: root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/emailsettings:118(trans)<br />
#, fuzzy<br />
msgid "During office hours (8:00 AM to 6:00 PM) on weekdays"<br />
msgstr ""<br />
"#-#-#-#-# <span style="background-color: #FFFDBF">clamav.po</span> (SME Panels) #-#-#-#-#\n"<br />
"<span style="background-color: #CBD567">Durante l'orario d'ufficio (dalle 8:00 alle 18:00) giorni lavorativi</span>\n"<br />
"#-#-#-#-# <span style="background-color: #FFFDBF">emailsettings.po</span> (SME Panels) #-#-#-#-#\n"<br />
"<span style="background-color: #CBD567">Orario ufficio (8:00-18:00 Lun-Ven)</span>"<br />
<br />
You must fix the file <span style="background-color: #FFFDBF">clamav.po</span> or <span style="background-color: #FFFDBF">emailsettings.po</span> (not both) to only use one of the following translated values:<br />
<br />
Durante l'orario d'ufficio (dalle 8:00 alle 18:00) giorni lavorativi <br />
or<br />
<br />
Orario ufficio (8:00-18:00 Lun-Ven)<br />
<br />
Please ensure to remove all <nowiki>\n</nowiki> characters from end of translation and escape characters <nowiki>\</nowiki> before each <nowiki>"</nowiki> not present in english source language. ex. \"{$acct}\" should be "{$acct}". This only happens in the consistence checks.<br />
<br />
So, at equal English strings values => equal translations (Italian) values.<br />
<br />
In this example (Italian) the files <span style="background-color: #FFFDBF">clamav.po</span> and <span style="background-color: #FFFDBF">emailsettings.po</span> should have the same translated value:<br />
<br />
<span style="background-color: #CBD567">Durante l'orario d'ufficio (dalle 8:00 alle 18:00) giorni lavorativi</span> or <span style="background-color: #CBD567">Orario ufficio (8:00-18:00 Lun-Ven)</span>.<br />
<br />
==== Considerations ====<br />
<br />
* Not use colloquial terms. Only formal XXX-LANG. <br />
* Review the orthographic errors. A very simple way is to use Firefox with the installed XXX-LANG dictionary. <br />
* Verify the translation in the context. <br />
* Not to be brief words. Ej. "Ud." instead of "Usted" (Spanish example)<br />
* The subscripts "_" in Pootle indicate a space in target. <br />
* Not to add capital letters in where in English they are not it. Ej. "Web page" must be translated like "Página web" and not like "Página Web" (Spanish example). The intention is to translate and not to invent. For it we must be exact although it demands much greater time the translation. <br />
* Any discussion or doubts or interchange of ideas can be made at the tab "discussion" in the top part of this page. Indent the answers adding two points at the beginning of each new line. <br />
* IMPORTANT. If at the moment of an installation or modification of the adjustments of SME Server it detects an inexact translation or that one does not adjust to the context, please, takes note precise from the same one and in where it found it, soon to correct it. If you want you can fix at http://translate.contribs.org. Does not let save the opportunity to correct.<br />
<br />
== Pootle for developers ==<br />
Lexicons for rpms in smecontribs and smeserver are automatically added to Pootle. <br />
<br />
A patch is automatically created at http://translate.contribs.org/patches/<br />
You then apply this to the rpm to add the new translations or update the existing ones. <br />
<br />
'''We need a few volunteers to apply these patches to smecontribs''', say weekly, or more or less as the need arises, it isn't difficult and we will guide you. <br />
<br />
Language rpms for the base rpms are generated less frequently.<br />
If you would like to check your translating work you can apply the daily patch to the smeserver-locale .src.rpm to create your own rpm. Everyone has read access to smeserver cvs and you would basically follow the instructions at [[:Package_Modification]], ask if you need help.<br />
<br />
* The English locale file is used as the Pootle template. Other languages are edited/translated at Pootle.<br />
<br />
* Every time you modify, add to or remove strings from the English locale file, just re-commit to cvs. There is a daily update to apply cvs changes to Pootle<br />
<br />
* <nowiki>Make your original FM file XML strict. Always close the opened tags (<i>...</i>). Use the same caps for tags (<b> is not equal to <B>). </nowiki><br />
<br />
* Review the General lexicon, you don't need to duplicate these entries in your contrib lexicon<br />
<br />
==Outdated contribs==<br />
This is a list of contribs that need their lexicons updated, <br />
<br />
If contribs are not updated after the April 2008 updates the server-manager panels appear unsorted<br />
<br />
The easiest way to update lexicons is for the Author to import their contrib into the SME Contribs repository. Contrib authors please have a look at [[Package_Modification]] for that.<br />
<br />
Contribs known to not have translations in UTF8 format: (please confirm these have problems, if you can link to source or list maintainer etc)<br />
<br />
Temporary fix is to delete translations, eg<br />
rm /etc/e-smith/locale/LANG/etc/e-smith/web/functions/PANEL<br />
rm /etc/e-smith/locale/de/etc/e-smith/web/functions/qmh<br />
/etc/e-smith/events/actions/navigation-conf<br />
<br />
* sme-crontab_manager<br />
* smeserver-ddclient (lang de,fr panel ddclient)(being imported to smecontribs, will need testing)<br />
* smeserver-phpsysinfo <br />
* smeserver-redoma <br />
* smeserver-saco-qmHandle (lang de, panel qmh)<br />
* smeserver-squid_cache_mgt<br />
* smeserver-service_control<br />
* SMERPFax-0.8b1-1.noarch.rpm<br />
<br />
These contribs are <u>not</u> causing problems, they don't have lexicons<br />
* smeserver-affa<br />
* smeserver-ajaxterm<br />
* smeserver-asterisk<br />
* smeserver-awstats<br />
* smeserver-backup2ws<br />
* smeserver-dirty-tools<br />
* smeserver-durep-saco<br />
* smeserver-ezmlm-web + dependencies<br />
* smeserver-loginscript<br />
* smeserver-lprng-monitor<br />
* smeserver-nagios<br />
* smeserver-nagios-backup<br />
* smeserver-nagios-nrpe<br />
* smeserver-nagios-nsca<br />
* smeserver-nagiosgrapher<br />
* smeserver-mailstats <br />
* smeserver-openoffice-portable<br />
* smeserver-openvpn-bridge<br />
* smeserver-password<br />
* smeserver-phpmyadmin-multiuser <br />
* smeserver-sarg <br />
* smeserver-sme7admin<br />
* smeserver-squidproperties<br />
* smeserver-squidguard<br />
* smeserver-torrentflux<br />
* smeserver-wbl<br />
* smeserver-webshare<br />
<br />
These have updates available in [http://mirror.contribs.org/releases/7/smecontribs/i386/repodata/index.html smecontribs]<br />
* smeserver-dar2 <br />
* smeserver-fetchmail (update in smecontribs, different update available [http://www.schirrms.net/files/ here]) <br />
* smeserver-groupmembers-panel<br />
* smeserver-subversion <br />
* smeserver-sysmon <br />
* smeserver-usbdisksmanager ('''NEEDS TESTING!''')<br />
<br />
These have updates available in [http://mirror.contribs.org/releases/7/smetest/i386/repodata/index.html smetest]<br />
* e-smith-backup (w/dar) (only needed if you have installed e-smith-backup from smetest previously) <br />
<br />
<br />
=== Simple (and dirty) way to discover the incompatible contrib panel ===<br />
<br />
The following command will list all incompatible translation files.<br />
<br />
find /etc/e-smith/locale/ -type f | xargs -n1 iconv -f UTF-8 -t UTF-8 > /dev/null<br />
<br />
After finding the above files you can determine which package they belong to (if it isn't obvious) by running the following command:<br />
<br />
rpm -qf /etc/e-smith/locale/lang/etc/e-smith/web/functions/panelname<br />
<br />
And replace the "lang" and "panelname" with what the first command spits out.<br />
<br />
To fix temporally this issue, create a temporary folder in your SME, like /root/paneltemp<br />
<br />
'''MOVE''' those problematic lexicon files to your temp folder.<br />
<br />
Then run the command:<br />
<br />
/etc/e-smith/events/actions/navigation-conf<br />
<br />
=== Conversion script ===<br />
{{Warning box|If you decide to run the script '''run it only once''' and keep in mind that you run it at your own risk.}}<br />
<br />
German forum user yythoss created a nice script that can do the conversion for you, the original post is [http://forums.contribs.org/index.php?topic=40771.msg189245#msg189245 here].<br />
<br />
Please run the script after making a backup of your locale in case things turn out bad:<br />
<br />
<ol></li><li>Make a backup of your locale directory:<br />
tar cvzf /tmp/locale.tgz /etc/e-smith/locale/*<br />
</li><li>Download the script<br />
wget http://www.swt-online.de/smeserver/convert_utf-8.sh<br />
</li><li><br />
Assign the right properties so you can run it:<br />
chmod 775 convert_utf-8.sh<br />
</li><li><br />
And run the script<br />
{{Warning box|Make sure you only run this script once, running it multiple times will mess up things seriously.}}<br />
./convert_utf-8.sh<br />
After completion your server-manager should be normal again.</div>Stuntshellhttps://wiki.koozali.org/index.php?title=File:Gsm_interface.jpg&diff=8219File:Gsm interface.jpg2008-03-08T05:00:00Z<p>Stuntshell: GSM Interface</p>
<hr />
<div>GSM Interface</div>Stuntshellhttps://wiki.koozali.org/index.php?title=Service_Control&diff=7905Service Control2008-02-17T02:33:58Z<p>Stuntshell: /* Installation */</p>
<hr />
<div>{{Languages|Service_Control}}<br />
=Service_Control for SME 7.x and SME 8.x=<br />
<br />
==Maintainer==<br />
[[User:MasterSleepy|Michel Van hees]]<br/><br />
<br />
==Description==<br />
Service_Control allow you to ajust status of all services contains in the server.<br />
TCP Port can be changed for services that accept this parameter.<br />
<br />
==Installation==<br />
wget <nowiki>"http://www.vanhees.cc/index.php?name=CmodsDownload&file=index&req=getit&lid=329"</nowiki><br />
yum localinstall smeserver-service_control-2.0-1.noarch.rpm<br />
<br />
==Uninstall==<br />
yum remove smeserver-service_control<br />
<br />
==Usage==<br />
You can access Service_Control interface in the server-manager.<br />
<br />
{{Warning box|Deactivating services can leave your server in an unstable state or even unaccessible state.}}<br />
<br />
==Additional information==<br />
*[http://www.vanhees.cc/index.php?name=CmodsDownload&file=index&req=viewdownloaddetails&lid=329 MasterSleepy Web site]<br />
<br />
----<br />
[[Category: Contrib]]<br />
[[Category: Administration]]</div>Stuntshellhttps://wiki.koozali.org/index.php?title=Sail_and_LDAP&diff=7693Sail and LDAP2008-01-31T03:04:24Z<p>Stuntshell: /* Tested software versions */</p>
<hr />
<div>== SAIL and local LDAP address book lookup ==<br />
<br />
=== Description ===<br />
<br />
*This is a small howto for enabling LDAP lookup of incoming CID for your external calls. <br />
<br />
*Yes, it will show NAMES on your IP phones if it matches name/number from your LDAP.<br />
<br />
*These mods are NOT supported by Sail at the moment. <br />
<br />
*This article may contain big inaccuracies, you're more than welcome to improve and correct it <br />
<br />
*I can't be held responsible for any malfunction/damage to your system after these modifications.<br />
<br />
*Note: you need gcc and the asterisk-devel in order to compile app_ldap-2<br />
<br />
yum install gcc asterisk-devel<br />
<br />
=== Installation ===<br />
*Download and install phpldapadmin following instructions found here: [http://wiki.contribs.org/Phpldapadmin phpldapadmin]<br />
<br />
*Download and install app_ldap-2.0rc1<br />
<br />
mkdir -p /usr/src/app_ldap2<br />
cd /usr/src/app_ldap2<br />
wget http://www.mezzo.net/asterisk/app_ldap-2.0rc1.tgz <br />
tar zvxf app_ldap-2.0rc1.tgz <br />
make install<br />
<br />
*Note: you need gcc in order to compile app_ldap-2<br />
<br />
<br />
Then open your browser and login to sme phpldapadmin page with admin credentials<br />
<br />
For example:<br />
<br />
https://myserver/phpldapadmin<br />
<br />
Now expand the base DN which should be DC=mydomain,DC=myTLD and select "Create a new entry here"<br />
<br />
Then, choose "Address Book Entry (inetOrgPerson)" and fill in the details for adding your first contact.<br />
I usually fill in Name, Surname and Work phone fields.<br />
<br />
=== Edit ldap.conf into /etc/asterisk/ ===<br />
<br />
I edited this file in place as no template fragments seems to exist at this time.<br />
Add these lines:<br />
[cidname]<br />
host = localhost<br />
version = 3<br />
base = dc=mydomain,dc=mytld<br />
convert = UTF-8, ISO-8859-1<br />
<br />
edit mydomain and mytld to match your settings (for example: dc=contribs,dc=org)<br />
<br />
=== Create a custom app into Sail ===<br />
Create a new app in SAIL PBX -> Custom apps<br />
<br />
Unique context name: your_app_name<br />
Description: your_description<br />
Span: EXTERNAL<br />
Clutser: default<br />
<br />
Code of the app:<br />
<br />
exten=>s,1,LDAPget(MYCALLERID=cidname/${CALLERIDNUM})<br />
exten=>s,2,GoTo(7000,1)<br />
exten->s,102,GoTo(7000,1)<br />
exten=>7000,1,NoOp(${MYCALLERID})<br />
exten=>7000,2,Set(CALLERID(name)=${MYCALLERID})<br />
exten=>7000,3,agi(selintra,Alias,SIP/5001 SIP/5002 SIP/5003,${EXTEN})<br />
exten=>7000,4,Hangup<br />
<br />
Where 7000 is an alias for ringing 5001, 5002 and 5003. <br />
<br />
Please use values matching your current setup.<br />
<br />
*Now edit inbound routes in your trunklines, select the custom app you created, et voilà!<br />
<br />
=== Additional informations ===<br />
<br />
Thanks to Selintra Team that made this possible with realtime answers on forum.<br />
Related topic is [http://forums.contribs.org/index.php?topic=36533.0 http://forums.contribs.org/index.php?topic=36533.0]<br />
<br />
App_ldap can be get here: [http://www.mezzo.net/asterisk/app_ldap.html http://www.mezzo.net/asterisk/app_ldap.html]<br />
<br />
=== Tested software versions ===<br />
* SMEserver v7.1.3<br />
* selintra-sail-2.1.15-483<br />
* smeserver-asterisk-1.4.1-8<br />
* smeserver-asterisk-zappri-MPP-1.4.0-5<br />
<br />
<br />
*New Test<br />
*Asterisk 1.4.17<br />
*Sail 2.2.1<br />
----<br />
<br />
[[Category: Contrib]]</div>Stuntshellhttps://wiki.koozali.org/index.php?title=Sail_and_LDAP&diff=7692Sail and LDAP2008-01-31T03:04:10Z<p>Stuntshell: /* Tested software versions */</p>
<hr />
<div>== SAIL and local LDAP address book lookup ==<br />
<br />
=== Description ===<br />
<br />
*This is a small howto for enabling LDAP lookup of incoming CID for your external calls. <br />
<br />
*Yes, it will show NAMES on your IP phones if it matches name/number from your LDAP.<br />
<br />
*These mods are NOT supported by Sail at the moment. <br />
<br />
*This article may contain big inaccuracies, you're more than welcome to improve and correct it <br />
<br />
*I can't be held responsible for any malfunction/damage to your system after these modifications.<br />
<br />
*Note: you need gcc and the asterisk-devel in order to compile app_ldap-2<br />
<br />
yum install gcc asterisk-devel<br />
<br />
=== Installation ===<br />
*Download and install phpldapadmin following instructions found here: [http://wiki.contribs.org/Phpldapadmin phpldapadmin]<br />
<br />
*Download and install app_ldap-2.0rc1<br />
<br />
mkdir -p /usr/src/app_ldap2<br />
cd /usr/src/app_ldap2<br />
wget http://www.mezzo.net/asterisk/app_ldap-2.0rc1.tgz <br />
tar zvxf app_ldap-2.0rc1.tgz <br />
make install<br />
<br />
*Note: you need gcc in order to compile app_ldap-2<br />
<br />
<br />
Then open your browser and login to sme phpldapadmin page with admin credentials<br />
<br />
For example:<br />
<br />
https://myserver/phpldapadmin<br />
<br />
Now expand the base DN which should be DC=mydomain,DC=myTLD and select "Create a new entry here"<br />
<br />
Then, choose "Address Book Entry (inetOrgPerson)" and fill in the details for adding your first contact.<br />
I usually fill in Name, Surname and Work phone fields.<br />
<br />
=== Edit ldap.conf into /etc/asterisk/ ===<br />
<br />
I edited this file in place as no template fragments seems to exist at this time.<br />
Add these lines:<br />
[cidname]<br />
host = localhost<br />
version = 3<br />
base = dc=mydomain,dc=mytld<br />
convert = UTF-8, ISO-8859-1<br />
<br />
edit mydomain and mytld to match your settings (for example: dc=contribs,dc=org)<br />
<br />
=== Create a custom app into Sail ===<br />
Create a new app in SAIL PBX -> Custom apps<br />
<br />
Unique context name: your_app_name<br />
Description: your_description<br />
Span: EXTERNAL<br />
Clutser: default<br />
<br />
Code of the app:<br />
<br />
exten=>s,1,LDAPget(MYCALLERID=cidname/${CALLERIDNUM})<br />
exten=>s,2,GoTo(7000,1)<br />
exten->s,102,GoTo(7000,1)<br />
exten=>7000,1,NoOp(${MYCALLERID})<br />
exten=>7000,2,Set(CALLERID(name)=${MYCALLERID})<br />
exten=>7000,3,agi(selintra,Alias,SIP/5001 SIP/5002 SIP/5003,${EXTEN})<br />
exten=>7000,4,Hangup<br />
<br />
Where 7000 is an alias for ringing 5001, 5002 and 5003. <br />
<br />
Please use values matching your current setup.<br />
<br />
*Now edit inbound routes in your trunklines, select the custom app you created, et voilà!<br />
<br />
=== Additional informations ===<br />
<br />
Thanks to Selintra Team that made this possible with realtime answers on forum.<br />
Related topic is [http://forums.contribs.org/index.php?topic=36533.0 http://forums.contribs.org/index.php?topic=36533.0]<br />
<br />
App_ldap can be get here: [http://www.mezzo.net/asterisk/app_ldap.html http://www.mezzo.net/asterisk/app_ldap.html]<br />
<br />
=== Tested software versions ===<br />
* SMEserver v7.1.3<br />
* selintra-sail-2.1.15-483<br />
* smeserver-asterisk-1.4.1-8<br />
* smeserver-asterisk-zappri-MPP-1.4.0-5<br />
<br />
*New Test<br />
*Asterisk 1.4.17<br />
*Sail 2.2.1<br />
----<br />
<br />
[[Category: Contrib]]</div>Stuntshellhttps://wiki.koozali.org/index.php?title=Sail_and_LDAP&diff=7691Sail and LDAP2008-01-31T03:03:50Z<p>Stuntshell: /* Tested software versions */</p>
<hr />
<div>== SAIL and local LDAP address book lookup ==<br />
<br />
=== Description ===<br />
<br />
*This is a small howto for enabling LDAP lookup of incoming CID for your external calls. <br />
<br />
*Yes, it will show NAMES on your IP phones if it matches name/number from your LDAP.<br />
<br />
*These mods are NOT supported by Sail at the moment. <br />
<br />
*This article may contain big inaccuracies, you're more than welcome to improve and correct it <br />
<br />
*I can't be held responsible for any malfunction/damage to your system after these modifications.<br />
<br />
*Note: you need gcc and the asterisk-devel in order to compile app_ldap-2<br />
<br />
yum install gcc asterisk-devel<br />
<br />
=== Installation ===<br />
*Download and install phpldapadmin following instructions found here: [http://wiki.contribs.org/Phpldapadmin phpldapadmin]<br />
<br />
*Download and install app_ldap-2.0rc1<br />
<br />
mkdir -p /usr/src/app_ldap2<br />
cd /usr/src/app_ldap2<br />
wget http://www.mezzo.net/asterisk/app_ldap-2.0rc1.tgz <br />
tar zvxf app_ldap-2.0rc1.tgz <br />
make install<br />
<br />
*Note: you need gcc in order to compile app_ldap-2<br />
<br />
<br />
Then open your browser and login to sme phpldapadmin page with admin credentials<br />
<br />
For example:<br />
<br />
https://myserver/phpldapadmin<br />
<br />
Now expand the base DN which should be DC=mydomain,DC=myTLD and select "Create a new entry here"<br />
<br />
Then, choose "Address Book Entry (inetOrgPerson)" and fill in the details for adding your first contact.<br />
I usually fill in Name, Surname and Work phone fields.<br />
<br />
=== Edit ldap.conf into /etc/asterisk/ ===<br />
<br />
I edited this file in place as no template fragments seems to exist at this time.<br />
Add these lines:<br />
[cidname]<br />
host = localhost<br />
version = 3<br />
base = dc=mydomain,dc=mytld<br />
convert = UTF-8, ISO-8859-1<br />
<br />
edit mydomain and mytld to match your settings (for example: dc=contribs,dc=org)<br />
<br />
=== Create a custom app into Sail ===<br />
Create a new app in SAIL PBX -> Custom apps<br />
<br />
Unique context name: your_app_name<br />
Description: your_description<br />
Span: EXTERNAL<br />
Clutser: default<br />
<br />
Code of the app:<br />
<br />
exten=>s,1,LDAPget(MYCALLERID=cidname/${CALLERIDNUM})<br />
exten=>s,2,GoTo(7000,1)<br />
exten->s,102,GoTo(7000,1)<br />
exten=>7000,1,NoOp(${MYCALLERID})<br />
exten=>7000,2,Set(CALLERID(name)=${MYCALLERID})<br />
exten=>7000,3,agi(selintra,Alias,SIP/5001 SIP/5002 SIP/5003,${EXTEN})<br />
exten=>7000,4,Hangup<br />
<br />
Where 7000 is an alias for ringing 5001, 5002 and 5003. <br />
<br />
Please use values matching your current setup.<br />
<br />
*Now edit inbound routes in your trunklines, select the custom app you created, et voilà!<br />
<br />
=== Additional informations ===<br />
<br />
Thanks to Selintra Team that made this possible with realtime answers on forum.<br />
Related topic is [http://forums.contribs.org/index.php?topic=36533.0 http://forums.contribs.org/index.php?topic=36533.0]<br />
<br />
App_ldap can be get here: [http://www.mezzo.net/asterisk/app_ldap.html http://www.mezzo.net/asterisk/app_ldap.html]<br />
<br />
=== Tested software versions ===<br />
* SMEserver v7.1.3<br />
* selintra-sail-2.1.15-483<br />
* smeserver-asterisk-1.4.1-8<br />
* smeserver-asterisk-zappri-MPP-1.4.0-5<br />
<br />
New Test<br />
Asterisk 1.4.17<br />
Sail 2.2.1<br />
----<br />
<br />
[[Category: Contrib]]</div>Stuntshellhttps://wiki.koozali.org/index.php?title=Sail_and_LDAP&diff=7689Sail and LDAP2008-01-31T01:45:48Z<p>Stuntshell: /* Description */</p>
<hr />
<div>== SAIL and local LDAP address book lookup ==<br />
<br />
=== Description ===<br />
<br />
*This is a small howto for enabling LDAP lookup of incoming CID for your external calls. <br />
<br />
*Yes, it will show NAMES on your IP phones if it matches name/number from your LDAP.<br />
<br />
*These mods are NOT supported by Sail at the moment. <br />
<br />
*This article may contain big inaccuracies, you're more than welcome to improve and correct it <br />
<br />
*I can't be held responsible for any malfunction/damage to your system after these modifications.<br />
<br />
*Note: you need gcc and the asterisk-devel in order to compile app_ldap-2<br />
<br />
yum install gcc asterisk-devel<br />
<br />
=== Installation ===<br />
*Download and install phpldapadmin following instructions found here: [http://wiki.contribs.org/Phpldapadmin phpldapadmin]<br />
<br />
*Download and install app_ldap-2.0rc1<br />
<br />
mkdir -p /usr/src/app_ldap2<br />
cd /usr/src/app_ldap2<br />
wget http://www.mezzo.net/asterisk/app_ldap-2.0rc1.tgz <br />
tar zvxf app_ldap-2.0rc1.tgz <br />
make install<br />
<br />
*Note: you need gcc in order to compile app_ldap-2<br />
<br />
<br />
Then open your browser and login to sme phpldapadmin page with admin credentials<br />
<br />
For example:<br />
<br />
https://myserver/phpldapadmin<br />
<br />
Now expand the base DN which should be DC=mydomain,DC=myTLD and select "Create a new entry here"<br />
<br />
Then, choose "Address Book Entry (inetOrgPerson)" and fill in the details for adding your first contact.<br />
I usually fill in Name, Surname and Work phone fields.<br />
<br />
=== Edit ldap.conf into /etc/asterisk/ ===<br />
<br />
I edited this file in place as no template fragments seems to exist at this time.<br />
Add these lines:<br />
[cidname]<br />
host = localhost<br />
version = 3<br />
base = dc=mydomain,dc=mytld<br />
convert = UTF-8, ISO-8859-1<br />
<br />
edit mydomain and mytld to match your settings (for example: dc=contribs,dc=org)<br />
<br />
=== Create a custom app into Sail ===<br />
Create a new app in SAIL PBX -> Custom apps<br />
<br />
Unique context name: your_app_name<br />
Description: your_description<br />
Span: EXTERNAL<br />
Clutser: default<br />
<br />
Code of the app:<br />
<br />
exten=>s,1,LDAPget(MYCALLERID=cidname/${CALLERIDNUM})<br />
exten=>s,2,GoTo(7000,1)<br />
exten->s,102,GoTo(7000,1)<br />
exten=>7000,1,NoOp(${MYCALLERID})<br />
exten=>7000,2,Set(CALLERID(name)=${MYCALLERID})<br />
exten=>7000,3,agi(selintra,Alias,SIP/5001 SIP/5002 SIP/5003,${EXTEN})<br />
exten=>7000,4,Hangup<br />
<br />
Where 7000 is an alias for ringing 5001, 5002 and 5003. <br />
<br />
Please use values matching your current setup.<br />
<br />
*Now edit inbound routes in your trunklines, select the custom app you created, et voilà!<br />
<br />
=== Additional informations ===<br />
<br />
Thanks to Selintra Team that made this possible with realtime answers on forum.<br />
Related topic is [http://forums.contribs.org/index.php?topic=36533.0 http://forums.contribs.org/index.php?topic=36533.0]<br />
<br />
App_ldap can be get here: [http://www.mezzo.net/asterisk/app_ldap.html http://www.mezzo.net/asterisk/app_ldap.html]<br />
<br />
=== Tested software versions ===<br />
* SMEserver v7.1.3<br />
* selintra-sail-2.1.15-483<br />
* smeserver-asterisk-1.4.1-8<br />
* smeserver-asterisk-zappri-MPP-1.4.0-5<br />
----<br />
<br />
[[Category: Contrib]]</div>Stuntshellhttps://wiki.koozali.org/index.php?title=PHP&diff=7633PHP2008-01-27T00:13:31Z<p>Stuntshell: /* Modifying the PHPBaseDir setting for an ibay */</p>
<hr />
<div>===Display Error Messages===<br />
<br />
By default PHP does not display error messages on screen. Some times you get a blank page when executing PHP scripts. Usually some sort of error has occurred, but this error text will not be displayed as SME Server is configured to not display them. Instead the error messages are reported to the log files of the webserver and the general logfile of the server. <br />
<br />
Try to analyze your logfiles:<br />
/var/log/httpd/error_log and /var/log/httpd/access_log and perhaps also /var/log/messages.<br />
<br />
{{Warning box|It is strongly advised to disable display errors after you have tracked and solved the problem, as the displayed error message might provide information (like filesystem layout) that only should be known to the system administrators and not to users, let alone people with bad intentions.}}<br />
<br />
====Enable changes====<br />
If you (for debugging purposes for instance) would like to enable it you can do it with the instructions found below:<br />
<br />
mkdir -p /etc/e-smith/templates-custom/etc/php.ini<br />
cp /etc/e-smith/templates/etc/php.ini/30ErrorHandling /etc/e-smith/templates-custom/etc/php.ini<br />
<br />
After that:<br />
<br />
cd /etc/e-smith/templates-custom/etc/php.ini<br />
pico 30ErrorHandling<br />
<br />
Modify the second line to read:<br />
<br />
display_errors = On<br />
<br />
After that issue the following commands:<br />
<br />
expand-template /etc/php.ini<br />
/etc/rc7.d/S86httpd-e-smith restart<br />
<br />
Now access your page again and see what the error is.<br />
<br />
====Undo Changes====<br />
If everything works you remove the 30ErrorHandling file from the /etc/e-smith/templates-custom/etc/php.ini folder and issue the last two lines again:<br />
<br />
expand-template /etc/php.ini<br />
/etc/rc7.d/S86httpd-e-smith restart<br />
<br />
===Open basedir restriction===<br />
SME Server has a security measure in place which is called 'open basedir restriction'. This measure prevents PHP from executing or invoking other PHP scripts outside the scope of it's own tree in other words it creates a 'sandbox' or 'jail'.<br />
Overall configuration is defined in the php.ini file but you can add an override on a per ibay basis.<br />
<br />
====Error message====<br />
The PHP open basedir restriction usually present to the user like this in the /var/log/messages file:<br />
<br />
Aug 12 17:27:42 homer httpd: PHP Warning: main(): open_basedir restriction in effect. File(/tmp/test.php) is not within the allowed path(s): (/home/e-smith/files/ibays/Primary/html/) in /home/e-smith/files/ibays/Primary/html/test.php on line 2<br />
<br />
In general you will find this message in the log files only as by default PHP is configured to prevent the display of error messages to the end users. This can be changed as per [[PHP#Display_Error_Messages|this HowTo]].<br />
<br />
====Modifying the PHPBaseDir setting for an ibay====<br />
<ol><br />
<!--Please do not remove the following closing tag as a fromatting/rendering bug will kick in, for more details see: http://bugzilla.wikimedia.org/show_bug.cgi?id=10893--></li><li>Open a SME Server shell as root user and document the current setting of the PHPBaseDir directive by writing down the output of the following command:<br />
db accounts getprop ibayname PHPBaseDir <br />
Be careful to write it down to the letter as we need it in the next step<br />
For the Primary ibay the ouptut of above command would normally look like this:<br />
/home/e-smith/files/ibays/Primary/html/<br />
</li><li>Decide on what directory you would like to add and issue the following:<br />
db accounts setprop ibayname PHPBaseDir value<br />
<br />
Replace ibayname with the name of the ibay and value with the old value for the PHPBaseDir directive you have written down and a colon (:) followed by the full path to the directory you would like to add with a tailing slash (/), e.g.<br />
db accounts setprop Primary PHPBaseDir /home/e-smith/files/ibays/Primary/html/:/opt/gallery2/<br />
<br />
Above command would allow for invocation of scripts in the /opt/gallery2 path from the Primary ibay html folder by PHP.<br />
<br />
</li><li>After defining the new setting we need to reflect the change in the configuration file of the web server and have the web server reload it's configuration file. This is done by issuing the following command:<br />
signal-event ibay-modify ibayname<br />
<br />
Be sure to replace ibayname with the name of the ibay you have just modified.<br />
</li></ol><br />
<br />
===PHP 5===<br />
SME 7.x uses PHP 4, you should not upgrade this version but you can add PHP5.<br />
<br />
See this howto http://sme.firewall-services.com/spip.php?article46<br />
<br />
<br />
<br />
[[Category: Howto]]</div>Stuntshellhttps://wiki.koozali.org/index.php?title=Owl_Intranet&diff=4962Owl Intranet2007-09-01T17:59:33Z<p>Stuntshell: New page: Installation of [http://owl.sourceforge.net Owl Intranet] on [http://contribs.org SME Server] Install PDFtoText Install AntiWord wget http://www.volny.cz/zellerin/RPMS/i386/antiword-...</p>
<hr />
<div>Installation of [http://owl.sourceforge.net Owl Intranet] on [http://contribs.org SME Server]<br />
<br />
Install PDFtoText<br />
<br />
<br />
Install AntiWord<br />
wget http://www.volny.cz/zellerin/RPMS/i386/antiword-0.37-3.i586.rpm<br />
<br />
Intall Unrtf<br />
http://dag.wieers.com/rpm/packages/unrtf/unrtf-0.20.2-1.el4.rf.i386.rpm</div>Stuntshellhttps://wiki.koozali.org/index.php?title=File:Setup.gif&diff=4525File:Setup.gif2007-07-27T02:31:05Z<p>Stuntshell: </p>
<hr />
<div></div>Stuntshellhttps://wiki.koozali.org/index.php?title=File:Tftp.png&diff=4401File:Tftp.png2007-07-12T01:06:17Z<p>Stuntshell: Example of the TFTP server</p>
<hr />
<div>Example of the TFTP server</div>Stuntshell