Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: cyr on October 17, 2005, 05:12:32 PM

Title: Asterisk on SME7 (me again)
Post by: cyr on October 17, 2005, 05:12:32 PM
Hi,

Sorry for my long silence, but I tried to make the A4SME contrib more attractive.

So you'll can get the new contrib A4SME7.tar.gz at http://firewall-services.com

The news,

** the installation is based on rpm from the ate rmp repository

** You now have an uninstall script

** This contrib is derived from AAH beta4 with a newer version of AMP

** The user www is now in the group asterisk so there is no need to use an apache user with a shell.

 :hammer:
Title: Asterisk on SME7 (me again)
Post by: fpausp on October 17, 2005, 06:03:35 PM
Hi,

I have done the rpm-based installation. Now i got an error when i like to use the server-manager. The Message is:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

fpausp
Title: Asterisk on SME7 (me again)
Post by: cyr on October 17, 2005, 06:41:42 PM
what is the message in /var/log/httpd/error.log
Title: Asterisk on SME7 (me again)
Post by: cyr on October 17, 2005, 06:58:24 PM
humm I think I know what is the pb

To integrate remote server acces I had to get some db info

so if you don't activate remote network access just edit

/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/98amp

and for all part

Quote
Alias /amp /var/www/html
<Directory /var/www/html>
    AddType application/x-httpd-php .php .php3 .phtml
    AddType application/x-httpd-php-source .phps
    Options Indexes +Includes FollowSymLinks
    order deny,allow
    deny from all
    allow from { $localAccess." "./sbin/e-smith/db configuration getprop httpd-admin ValidFrom }
    php_flag magic_quotes_gpc off
    php_flag register_globals off
    AuthName "Server manager"
    AuthType Basic
    AuthExternal pwauth
    require user admin
    SetEnv IMGHDR_SRC "/server-common/server-manager.jpg"
    Satisfy all
</Directory>


delete the
Quote
." "./sbin/e-smith/db configuration getprop httpd-admin ValidFrom
in front of allow from

then you expand-template /etc/httpd/conf/httpd.conf and you 'll be able to start the httpd-e-smith service

I'll include some sort of test for that. Sorry
Title: Asterisk on SME7 (me again)
Post by: fpausp on October 17, 2005, 07:22:09 PM
Hi,

No pb, thanks for your work and fast answer. I will do a fresh install because i like to test the b5 (now b2). 2nd is to test your asterisk rpm´s.

regards
fpausp
Title: Asterisk on SME7 (me again)
Post by: cyr on October 18, 2005, 05:47:56 PM
Hi,

After a few test with sme b5, I discover a little bug in my script
This is now fix and the install is correct on b5

enjoy
Title: Asterisk on SME7 (me again)
Post by: fpausp on October 18, 2005, 09:30:22 PM
Hi,

Is it necessary to retry the download ?
Title: Asterisk on SME7 (me again)
Post by: arne on October 18, 2005, 11:03:16 PM
Hello.

Today I made two new testinatallations on my good old Compaq Armada 700 "laptop testserver" (P3/700/500).

The first one were made earlier today based on SME 7.0 beta 5. This crached with the message "Internal server error". I tried do do some trobleshooting inside the template system, but had no success with that.

Then made a new download of the rpm based Asterisk installation later to night, as I understood that there had been some revision, and also made a new installation of the SME B5.  

This time things went a bit bether, and I think/hope it is just a question of minor details before we are there.

The installation does not crach any more, but it dont work completely either. Inside the server-manager I now get this fault message when I try to go into the Asterisk managing part of it (Clicking asterisk management portal):

Software error:
Can't call method "value" on an undefined value at /etc/e-smith/web/panels/manager/cgi-bin/amp line 26.

For help, please send mail to the webmaster (admin), giving this error message and the time and date of the error.

Line 26, this should be rather precise (?!)

Are we there in a few seconds ? I think there is still some very minor bugs.

By the way, my installation were made on a SME installed as "server only" and not on a gateway.

One other thing - I think that the B5 has some "great improvements". The last B4 had some strange behaviour when running on "poor" hardware. Doing nothing it had a processor load of 10-20 % The new beta 5 does only have a processor load of 0.3 % on the same hardware, when doing nothing. (So I think it can be used on "small" hardware as well.)

Best reg Arne.
Title: Asterisk on SME7 (me again)
Post by: cyr on October 19, 2005, 06:36:29 AM
Hi Arne,

This error is because in the panel I make a simple redirection with the external ip but in fact in server only ther is no external ip. sorry.

For the moment, you can access amp by typing https://your_server/amp or if you want you can change ExternalIP by LocalIP in the file /etc/e-smith/web/function/amp and idem in /etc/e-smith/templates-custom/etc/amportal.conf/amportal.conf then expand-template amportal.conf and the pb will dissapeard.
Title: Asterisk on SME7 (me again)
Post by: cyr on October 19, 2005, 10:50:54 AM
Hi,

The problem is solve for server only mode

regards
Title: Asterisk on SME7 (me again)
Post by: arne on October 19, 2005, 11:08:29 AM
Great ! Will try to give it a new try and a feedback during the day  :pint:
Title: Asterisk on SME7 (me again)
Post by: cyr on October 19, 2005, 11:43:03 AM
thank you arne :-)
Title: Asterisk on SME7 (me again)
Post by: arne on October 19, 2005, 05:53:26 PM
*** :pint:  :pint:  :pint: It works !  :pint:  :pint: ***

One minor problem remaining left - If you try to go into PHPMyadmin via the AMP panel there is no access. You get this message:

MySQL said:  

#1045 - Access denied for user 'root'@'localhost' (using password: YES)
 
I would guess that this message is because the sme server normally use "admin" as logon for the PHPMyadmin control. I wonder if there is any way to change the SME server to use "root" or the other way to set up the Asterisk installation to use "admin"... ? (Or to set up an alternative admin account "root")

It looks like all other functions now works, including also the uninstall script (tested yesterday).

By the way .. used the rpm version on a b7 server only behind a Smoothwall nat.

Thanks for great work !

Best reg Arne
Title: Asterisk on SME7 (me again)
Post by: arne on October 19, 2005, 05:56:15 PM
Correction: SME 7 B5 on PIII/700
Title: Asterisk on SME7 (me again)
Post by: cyr on October 19, 2005, 06:11:31 PM
I'll see what I can do for that
Title: Asterisk on SME7 (me again)
Post by: cyr on October 19, 2005, 06:33:25 PM
ok,

I modified the file /var/www/html/maint/phpMyAdmin/config.inc.php with username asteriskuser and pwd amp109 for access on asterisk and asteriskcdrdb databases
Title: Asterisk on SME7 (me again)
Post by: arne on October 19, 2005, 06:55:38 PM
From root shell:

1. Went into the mysql shell: "mysql"

2. Then set new root password:
   
"/usr/bin/mysqladmin -u root password newpassword"

4. Edited the file:

/var/www/html/maint/phpMyAdmin/confic.inc.php

for new password.


Were now able to come into the phpmyadmin from the Asterisk shell, but ther is still some red remarks inside about remaining configuration .. Unforunately in norwegian for my PC:

$cfg['PmaAbsoluteUri'] variabelen MÅ være innstilt i din konfigurasjonsfil!
PHP tillegget mbstring ble ikke funnet og det ser ut til at du bruker et flerbyte tegnsett. Uten mbstring-tillegget så kan ikke phpMyAdmin splitte strenger korrekt og dette kan medføre uønskede resultater.

Something about configuration of ['PmaAbsoluteUri']

and "PHP addon mbstring" .. Missing mbstring "addon"  can not use muliple byte character set. Without "mbstring addon" ca not split strings correctely ..
Title: Asterisk on SME7 (me again)
Post by: arne on October 19, 2005, 06:57:02 PM
OK. Did not see your solution. Think that will be bether ..
Title: Asterisk on SME7 (me again)
Post by: arne on October 19, 2005, 07:03:42 PM
Both methods apeared to be equal. (I believe)

My method gave root access to all databases, yours gave access to astersik databases.

But both methods give warning about some aditional configuration ??
Title: Asterisk on SME7 (me again)
Post by: arne on October 19, 2005, 07:12:09 PM
Sat the url to this value:

https://10.0.0.4/maint/phpMyAdmin/

Seems to be working ok.

Still have one error message inside phpmyadmin (Now changed to english):

The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.
Title: Asterisk on SME7 (me again)
Post by: arne on October 19, 2005, 07:32:56 PM
Used this as an refferance:

http://www.computing.net/webdevel/wwwboard/forum/1590.html

Made this command: yum install php-mbstring

Rebooted server.

No error messages left .. I believe ..

Arne.
Title: Asterisk on SME7 (me again)
Post by: arne on October 19, 2005, 07:49:40 PM
Cyr ->

Changed back to root and rootpassword for the phpmyadmin. Now phpmyadmin seems to be working "like normal for the sme server" with full access.

As far as I can see everything is working quite ok just now. Will perform some more testing.

Once more thanks for great work !!  :hammer:


Best regards Arne.
Title: Asterisk on SME7 (me again)
Post by: cyr on October 19, 2005, 08:54:25 PM
Hello Arne,

I see that you made a great job for phpmyadmin. I'll integrate the missing package tomorrow, but for the user I think I'll not use root.
I prefer to give limited access from phpmyadmin interface, but people will be able to make their own modifications if they want a full access of their databases.

Can you tell me what you think about this and if other people are reading this, I will be happy to know what they think to.

Best regards,
Cyr
Title: Asterisk on SME7 (me again)
Post by: arne on October 19, 2005, 09:52:01 PM
Hello Cyr,

I agree. I think it will be the right and best solution to let the phpmyadmin by default configuration have access to the asterisk files only.

Then it can be left as an easy modification to the users who want this, to change access level for the phpmyadmin.

If you are running other php/mysql applications on the same server it might be essensial to have mysql root access via phpmyadmin.

The "Centos/SME/Asterisk bundle" now lookes so good and works so well, with those integrated controls, that I can hardly believe that it is true. (I just cross my fingers and hope that it will last ..)

Arne.
Title: Asterisk on SME7 (me again)
Post by: arne on October 20, 2005, 09:11:48 AM
OK .. there is one issue if this installation should run bugfree.

If you go to the Asterisk maintenace menu and klick "web mail" then it comes up with a empty page on this address:

https://10.0.0.4/cgi-bin/nwebmail

I have tried to look into the problem, but I have not found out how this should work ..
Title: Asterisk on SME7 (me again)
Post by: cyr on October 20, 2005, 10:33:05 AM
hello Arne,

Yes, this is due to the fact that I remove webmail and crm because we already have a webmail on sme and for the crm I think that if someone want a crm this is not very difficult to make a better install of SUgar or something else equivalent.
But if you want I can reinteger the webmail or smply remove the link.

Cyr
Title: Asterisk on SME7 (me again)
Post by: cyr on October 20, 2005, 10:55:39 AM
there is an other issue, the aseriskinfo section cannot return info because the user www have no shell.
I'll have to remove this section too, I think.
Title: Asterisk on SME7 (me again)
Post by: arne on October 20, 2005, 03:50:35 PM
Yes, I think it will be right to remove the extra web mail and the link if it is not needed. The essensial thing, is as I see it, that everything that is there, is working proporly and ok, so there is no dead links or other "visible errors". (Neither hidden errors either of cource.)

I think that the asteriskinfo section can be removed as all the info in that section (I believe) is available via a separate shell logon, and the standard Astersik commands.
Title: Asterisk on SME7 (me again)
Post by: cyr on October 20, 2005, 04:35:48 PM
I already remove all deadlinks and add the missing package.

Quote
I think that the asteriskinfo section can be removed as all the info in that section (I believe) is available via a separate shell logon, and the standard Astersik commands.


exactly. If you want you can test with the help of this file /var/www/html/maint/asterisk_info.php wich contain all the command used to generate the asterisk info page.
Title: Asterisk on SME7 (me again)
Post by: arne on October 20, 2005, 04:46:06 PM
Nice. Will go home to do some testing  :-)
Title: Asterisk on SME7 (me again)
Post by: arne on October 20, 2005, 08:38:36 PM
Hello Cyr !

Script for uninstall worked ok.

Script for installation of new Asterisk server on B5 also worked ok.

All menues and all functions seems to be working ok now. Have only been testing sip connections with local telephones, but I think sip and voice also works ok. Will keep on with some more testing.

Great !

Arne.
Title: Asterisk on SME7 (me again)
Post by: arne on October 20, 2005, 09:43:55 PM
A shell script for showing status and trafic for the Asterisk server (The function that were left out from the Asterisk web panel.)(Actually it is bether and more easy to use a shell script and remoote ssh/putty for this function.)


clear
echo " "
echo "*** Version:"
asterisk -r -x 'show version'
echo " "
echo "*** Uptime:"
asterisk -r -x 'show uptime'
echo " "
echo "*** Active Sip channels:"
asterisk -r -x 'sip show channels'
echo " "
echo "*** Sip Peers:"
asterisk -r -x 'sip show peers'
echo " "
echo "*** Sip Registry:"
asterisk -r -x 'sip show registry'
echo " "
echo "*** Iax2 SIP Registry:"
asterisk -r -x 'iax2 show registry'
echo " "
echo "*** Iax2 Peers:"
asterisk -r -x 'iax2 show peers'
echo " "
echo "*** Zaptel driver info:"
asterisk -r -x 'zap show channels'
echo " "
echo "*** Conference Info :"
asterisk -r -x 'meetme'
echo " "
echo "*** Voicemail Users "
asterisk -r -x 'show voicemail users'
echo " "
echo "*** NTP Peers "
ntpq -p
echo " "


If anybody have ideas for improvements, please make and post some revisions !
Title: Asterisk on SME7 (me again)
Post by: arne on October 20, 2005, 10:24:02 PM
A small script just for showing online activity:


clear
echo " "
echo "*** Asterisk online monitoring - For ending type: exit"
echo " "
asterisk -vvvvr
Title: Asterisk on SME7 (me again)
Post by: arne on October 20, 2005, 11:14:26 PM
And a small "main menu" to call the two other scripts (so there should be little to remember). Could ofcource be built further on, and improved ..

#!/bin/sh

clear
while :
do
echo " "
echo "Asterisk Menu"
echo "1. Online monitoring."
echo "2. Status."
echo "9. End."

  read INPUT_STRING
  case $INPUT_STRING in
        1)
                sh script2
                clear
                ;;
        2)      sh script1
                read INPUT_STRING
                clear
                ;;

        9)
                clear
                echo "Bye!"
                break
                ;;
  esac
done
echo
Title: Asterisk on SME7 (me again)
Post by: cyr on October 21, 2005, 12:33:19 PM
;-) good work

I'll add these scripts during the day

Cyr
Title: Asterisk on SME7 (me again)
Post by: cyr on October 21, 2005, 02:49:34 PM
Done  :hammer:
Title: Asterisk on SME7 (me again)
Post by: arne on October 22, 2005, 01:13:01 PM
I tried to test out the latest revision yesterday night. It apeared that it did not intall correctely. Looks like it does not download some software that should be downloaded during the installation process. Could it be because this web site is down: http://firewall-services.com/  ?? (Or some other web site ..)
Title: Asterisk on SME7 (me again)
Post by: arne on October 22, 2005, 09:17:29 PM
I'm sorry to say it, but I think it happend something strange with the very last revision.

I have made several attempts to install it, and also made a new installation of of the beta 5.

I find it wery strange, and I have been thinking if it could be something hardware or network related here in this end, but it looks like the Aterisk server does not install at all. The AMP panel is there but there is no service running. (Only red indication on the status panel)

If I try "asterisk -vvvvc" it just says simething like "file asterisk not found".

Every things worked OK until the last revision. Then nothing worked any more (???)

Still using a beta 5 "server only" on lan.
Title: Asterisk on SME7 (me again)
Post by: arne on October 24, 2005, 02:05:24 AM
Hello Cyr !

I have red trough the installation log, and I think I have found the error.

installing mpg123
-------------------------------------------
http://mirror.centos.org/centos/4.1/os/i386/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Not Found
Trying other mirror.
Cannot open/read repomd.xml file for repository: base
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.

....

installing Perl Mods
-------------------------------------------
http://mirror.centos.org/centos/4.1/os/i386/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Not Found
Trying other mirror.
Cannot open/read repomd.xml file for repository: base
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.

....

installing libpri driver
-------------------------------------------
http://mirror.centos.org/centos/4.1/os/i386/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Not Found
Trying other mirror.
Cannot open/read repomd.xml file for repository: base
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.

And so on. None of the files that should be downloaded and installed from centos.org are downloaded. I think I have fount the reason for this as well. Look at this:

http://mirror.centos.org/centos/4.1/readme


So it is not that there were something wrong with the last revision, it is just that by coincidence Centos has changed the web adress for their repodata.

I tried to read trough your installations scripts to se if theese before right, now incorrect url pats can be changed. It looks like it is picking up these incorrect paths at the centos site (???!!). I were not able to find any solution.


Do we have any solution for this problem ??!!


I understod less and less, because I also tried with the installations that I had tested before, and they also did not work. Then I replaced the whole PC and still, the installations that I had tested before did not work.

I think the change in adressing from the Centos might be the explanation of it all (??!!)

Best reg Arne.
Title: Asterisk on SME7 (me again)
Post by: arne on October 24, 2005, 02:48:40 AM
See also here:

[root@sme7 arne]# yum update
Setting up Update Process
Setting up Repos
smeaddons                 100% |=========================|  951 B    00:00
smeupdates                100% |=========================|  951 B    00:00
http://mirror.centos.org/centos/4.1/updates/i386/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Not Found
Trying other mirror.
Cannot open/read repomd.xml file for repository: updates
failure: repodata/repomd.xml from updates: [Errno 256] No more mirrors to try.
[root@sme7 arne]#
Title: Asterisk on SME7 (me again)
Post by: arne on October 24, 2005, 02:53:59 AM
Looks like there is a solution or a part of the solution on its way ..

http://forums.contribs.org/index.php?topic=29335.0
Title: Asterisk on SME7 (me again)
Post by: cyr on October 24, 2005, 10:39:14 AM
Hello Arne,

Thank you for the link, I think I will add a recommandation on my howto  ;-)
Title: Asterisk on SME7 (me again)
Post by: arne on October 24, 2005, 09:56:49 PM
Hello Cyr !

I changed the yum configuration of the SME server (with som "unstandard" method):

baseurl=http://mirror.centos.org/centos/4/os/$basearch

After that the installation of Asterisk went well with no visible faults. I did not change anything in the doanloaded files from
http://firewall-services.com/cgi-bin/index.pl

I think/hope/believe that everything should be ok with the "Asterisk@smeserver" installation by now  :hammer:


Best reg Arne.
Title: Asterisk on SME7 (me again)
Post by: cosy on October 25, 2005, 04:36:50 PM
Hi All,

  How do i install need the commands

Thanks.
Title: Asterisk on SME7 (me again)
Post by: arne on October 25, 2005, 10:44:08 PM
The installation guide is at the web page of mr cyr:

http://firewall-services.com/AsteriskAtHomeSME7.html

There is a problem that will affect the installation. Just now the yum update cammand does not work for the SME server. You can check this by using command "yum update". If this gives an error message, the Asterisk installation will not work.

So the sme yum configuration has to be changed the one way or the other (until it has a permanent repair.) When you get the "yum update" function to work, then you can do the Asterisk installation.

By the way Asterisk server only worked perfect and I could do abroad telephone calls for 5 % of the "normal" price.

I have now mede a new reistallation to check out how things work in the ordinary gateway mode. Will have to do the "yum reconfiguration mod" first just now ..

Will leave a message if things works ok this time too.
Title: Asterisk on SME7 (me again)
Post by: arne on October 25, 2005, 10:55:54 PM
It is certainly not the right way to do it, but I modify the files /etc/yum.conf and /home/e-smith/db/yum_respositores, and as a "quick and dirty mod" to make the Asterisk installation it seems to work.


See my post before:

Quote
I changed the yum configuration of the SME server (with som "unstandard" method):

baseurl=http://mirror.centos.org/centos/4/os/$basearch
Title: !
Post by: arne on October 26, 2005, 12:35:03 AM
Cyr ->

I have now installed your Asterisk variant on a SME 7B5 gatway as well. It works rather perfect now both for the "server only" and the "gateway" installation. Have tested with inbound and outbund telephone calls.

No bugs until now, but there is anyhow still two minor things to be mentioned.

1. Some sip telephony vendors will require a configuration with portforwarding to a "server only" or a "aditional port opening" for the gateway installation. (I guess it will not work like this for all connections, but for my two cnnected at the moment, it works like this.) I think that without this forwarding/portopening you will not be able to make other calls than local calls.

2. Then there is also the problem with the default configuration of the Asterisk@home, that is set to reject by hanging up incomming telephones by default. This requires a minor "hack" or reconfiguration.

Fir item 1 I believe that the best soulution will be some "howto description" as the needs for proper and right configuration might wary from sip telephony vendor to vendor (!!??).

For item two there might be a "howto description" or possibly that the "enable inncomming calls hack" should be included by default.

I think that there might be bether ways of doing it but I could eventually post my little hack of the extensions configuration file.

Thanks again Cyr. When I started to read your tread I knew allmost nothing about iptelephones and Asterisk vere just some strange "bussword" I had heared somwhere. Now I just got my own "allmost perfect" gateway/internet server/lan server/telephony server running.

Nice  :-D  !
Title: Asterisk on SME7 (me again)
Post by: cyr on October 26, 2005, 11:46:30 AM
Hi Arne,

I'm really happy to see that we finally obtain a rc for our contrib  :hammer:

For the pb of port oppening, there is a rpm wich seems to work with sme7, I use it for openvpn installation

http://sme.swerts-knudsen.dk/downloads/dmc-mitel-portopening-0.0.1-4.noarch.rpm

perhaps it can help you or someone else.

Now we need a Asterisk/SME community  :-D
Title: Asterisk on SME7 (me again)
Post by: fpausp on October 26, 2005, 02:00:05 PM
Is this port-opening-rpm working with a server only installation ?

I tried to install openvpn from swert-knudsen sme7b5, but i think the port 1194 is not open.

fpausp
Title: Asterisk on SME7 (me again)
Post by: cyr on October 26, 2005, 02:13:10 PM
I don't try it on server only installation but you can check

iptables -L

or check http://smeserver.sourceforge.net/sme70/FAQs
Title: Asterisk on SME7 (me again)
Post by: arne on October 26, 2005, 05:29:14 PM
Firewall configuration rpm have been tested at the gateway/Asterisk. Looks like it is working quite ok. thanks again !

About port opening at a server only installation - this should not give any meaning at all as the server only does not have any firewall at all. There is no need to make any openings in a wall that does not exist.

If anything shall be done for a "server only" this will be to forward the right ports via the nat router/firewall/gateeway.

You will have to open ports if the Asterisk run on a gateway and forward ports if it is on a server on lan/dmz. It's the same ports.

The little hack of my extensions.conf file:
(For opening for inbound sip telephony)

; ############################################################################
; Inbound Contexts [from]
; ############################################################################

[from-sip-external]

;give external sip users congestion and hangup
;exten => _.,1,AbsoluteTimeout(15)
;exten => _.,2,Congestion
;exten => _.,3,Hangup

exten => _X.,1,Goto(from-pstn,s,1)
# the line above is new

I don't know if this is a smart hack, but it opens for incomming calls. Possible it could have been improved. As it is it, I think it will disable some standard telephone functions. If these should work, it might be bether to use:

exten => _XXXX.,1,Goto(from-pstn,s,1)

and internal lines more than 4 digits.

Don't know for sure ..

Possible there is petrher ways of doing the hack for inbound sip telephones ??

Arne.
Title: Asterisk on SME7 (me again)
Post by: fpausp on October 26, 2005, 05:47:17 PM
yes, but if i use nmap i got this:

[root@server ~]# nmap server

Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2005-10-26 17:43 CEST
Interesting ports on server.xxxxx.xx (192.168.x.x):
(The 1642 ports scanned but not shown below are in state: closed)
PORT     STATE SERVICE
22/tcp   open  ssh
25/tcp   open  smtp
53/tcp   open  domain
80/tcp   open  http
110/tcp  open  pop3
113/tcp  open  auth
139/tcp  open  netbios-ssn
143/tcp  open  imap
389/tcp  open  ldap
443/tcp  open  https
445/tcp  open  microsoft-ds
465/tcp  open  smtps
515/tcp  open  printer
548/tcp  open  afpovertcp
993/tcp  open  imaps
995/tcp  open  pop3s
2000/tcp open  callbook
3128/tcp open  squid-http


what mean´s that ???
Title: Asterisk on SME7 (me again)
Post by: arne on October 26, 2005, 09:15:05 PM
I guess that this means you are doing a default nmap scan against a unprotected server on a lan. It shows some of the tcp ports that would be visible only on a unprotected server on lan (or using a scan against "localhost".

A default nmap scan (from the internet outside) against a sme 7 firewall/gateway/server with the firewall on (and a working Asterisk server running) givs this pattern:

[root@blackie /]# nmap xxx.exsample.dk

Starting nmap V. 2.54BETA31 ( www.insecure.org/nmap/ )
Interesting ports on xxxxxxxxx.xxxxxxxxx.com (123.123.123.123):
(The 1548 ports scanned but not shown below are in state: filtered)
Port       State       Service
22/tcp     open        ssh
25/tcp     open        smtp
80/tcp     open        http
113/tcp    closed      auth
443/tcp    open        https
465/tcp    open        smtps

I think/belive that the reason that the Asterisk server is not visible is two:

1. The port range of the Asterisk server is anyhow outside the default scan range of nmap.
2. I guess that the nmap by default scans only tcp and not udp ports.

I will try to make a nmap udp scan to se the Asterisk ports, and post the result if possible ..
Title: Asterisk on SME7 (me again)
Post by: arne on October 26, 2005, 09:41:59 PM
Well I tried to make a UDP scan, but I did not obtain the result as expected (at all):

[root@blackie /]# nmap -sU -p 5055-5065 my.domain.dk

Starting nmap V. 2.54BETA31 ( www.insecure.org/nmap/ )
Interesting ports on my.server.com (123.123.123.123):
Port       State       Service
5055/udp   open        unknown
5056/udp   open        unknown
5057/udp   open        unknown
5058/udp   open        unknown
5059/udp   open        unknown
5060/udp   open        unknown
5061/udp   open        unknown
5062/udp   open        unknown
5063/udp   open        unknown
5064/udp   open        unknown
5065/udp   open        unknown

I guess that the nmap command should make a UDP port scan in the port range 5055-5065. It should be only one port open (in this range). I dont know why it shows all ports open. (I am now using the port opening rpm). (My first guess is that the UDP scan has a number of error sources and that the indicated open ports are really not open. Will try to check on this.)
Title: Asterisk on SME7 (me again)
Post by: arne on October 26, 2005, 10:02:40 PM
As a aditional security check I tried to lock one of the Asterisk port. The Asterisk server stopped to work as it should. When the port were opened again the Asterisk server started working again. All the time it was scanned as open. (But actually it was not.)

I don't know why it is this faulty indication. Possible reasons: 1. "Incorrect" answer from bridged adsl modem or sme server 2. Incorrect use of nmap

The UDP protocol is a one way protocol that is not expected to give an answer in the same way as the TCP protocol. I guess that is the reason why many portscanners are TCP scanners only by default and that it could be a part of the explanation of the incorrect indications (??).

It's possible that a Google search on how to do a UDP scan using nmap could give something more ..
Title: Asterisk on SME7 (me again)
Post by: arne on October 26, 2005, 10:14:52 PM
OK. As an aditional check I tried to use Superscan 4.0 to do a UDP scan against the unprotected LAN interphase (od the SME7 gateway.)

The Superscan 4.0 vere not able to detect the running Asterisk server while running as a UDP port scanner.

Conclusion: A Asterisk server seems to be a server function that is not to easy to detect using a standard port scanner (but of course it can still be done.)
Title: Asterisk on SME7 (me again)
Post by: arne on October 26, 2005, 10:40:25 PM
Changing the configuration of the Superscan it showed 0 open UDP ports or all open udp ports (like the nmap). None of the sans were able to detect the Asterisk correctely.

I think this is rather nice. "Normally" I would expect a relatively new technology like IP telephony would attract a new generation of "ip telephony hackers". I guess the "expectable" way such hacking would be to do broad automated scans over huge ranges of ip adresses, and from that to pull out detected Asterisk servers for "further investigation".

But the Asterisk server will have to be visible using the right scanner eqipment. Reason: It is possible to connect from an external sip/iax client where the location is initially unknown for the server. This means that the right reqest from "the outside" will give an answer. A standard port scanner does not seem to be that equipment that will send the right request.
Title: Asterisk on SME7 (me again)
Post by: arne on October 26, 2005, 11:14:24 PM
.... Or could it work that way that only requests against registred extension names/numbers will give an anwer (??!!) If this should be the case it should be a good thing for security and make things quite more difficult for the hackers.

If this should be the case, it would be of importance to choose non standard extension numbers like "109579" and not "201" or "401".

Any how this would be a good idea as the hacker would have to guess/find a user acount and a password to be able to come in.

I think I understand why the Asterisk server has a default configuration where incomming sip connections are blocked. So if it is opened and one set up a number of test acounts 200,201,202 with password 1234 and a outgoing line you are paying for, this might be a bit dangerous situation.

By the way I found a more general report of iptelephone security that might be of some interest:
http://csrc.nist.gov/publications/nistpubs/800-58/SP800-58-final.pdf

If anybody knows something more about why a Asterisk server seems to be not so easy to detect using a scanner or other intersting things about Asterisk security, plase leave a message  :-)

I think that the security problem releted to the installation of a Asterisk server is a part of it that should not be forgotten.
Title: Asterisk on SME7 (me again)
Post by: arne on October 27, 2005, 12:23:18 AM
Im rather surpriced abouth how rather little there is about this subject Asterisk and security:

http://www.voip-info.org/wiki/view/Asterisk+security

See also this:
http://www.voip-info.org/wiki/index.php?page=Asterisk+security+dialplan

I don't know really how safe this hack is that I use for allowing incomming sip telephones:

[from-sip-external]

;give external sip users congestion and hangup
;exten => _.,1,AbsoluteTimeout(15)
;exten => _.,2,Congestion
;exten => _.,3,Hangup

exten => _X.,1,Goto(from-pstn,s,1)
# the line above is new

Anybody who got ideas about this ?

As far as I have been able to test it out it is only the internal extensions that is available for external calls.

By the way, I think the most important issue about setting up an Asterisk server with some payed "lines" is that to allways use prepaid services that will stop when the account is empty, or accounts with limited credit, that also has an "credit limit".

Hacked accounts or also something rather trivial like "hanging lines" might otherways be a rather big risk. (When testing and making some incorrect configuration my Asterisk server were hanging on the paid line for 4 hours without my knowledge, but it was a local call with only small money involved.)

I'm sorry to use a lot of the space on the forum, but I think that the security aspect of it is a rather important one, to make some investigation on.

Actually I think that a incorrect configured Asterisk server with the incorrect type of ip telephony connection (typical with unlimited credit) has the potensial of giving you some terrible problems.

First of all it should be a prepaid line or line with limited credit. Next it should be done some steps to avoid loosing those money as well.
Title: Asterisk on SME7 (me again)
Post by: arne on October 31, 2005, 08:43:18 PM
Aaterisk@sme rund just nice and without problems.
I just found a free new 350 page book about Aterisk.
It's a rather good one ..
http://voipspeak.net/index.php?option=com_content&task=view&id=33&Itemid=2

Arne.
Title: Asterisk on SME7 (me again)
Post by: cyr on November 02, 2005, 02:13:30 PM
This book seems to be really good Arne, thank you :lol:
Title: Digital Receptionist
Post by: xboxer21 on November 07, 2005, 07:58:33 PM
Hi All,
I have sucessfully installed A4SME, I wanted to upload a welcome greeting message using the digital receptionist feature in AMP, I created a wav file  with a sample rate of 8khz. I tried uploading by clicking on the upload button, the page refreshes after uploading, but when I dial *99 to hear the message, I dont hear anything back. Is anyone here having the same problem. Does anyone know the location where the File will be uploaded to, so that I can manually verify if the file is actually being uploaded.

Thanks
Title: Asterisk on SME7 (me again)
Post by: arne on November 09, 2005, 02:21:49 PM
Yes and no .. I have had parts of the same problem. Because of my own dial plans I first overided (without my knowledge) all of the numbers that begun with a star. When I realiced this I changes my plan a bit (so all digits in the plan had to have et least 5 digits (XXXXX) so there should be no conflict with the default existing numbers) After that I were able to record and play bach voice messages via the telephone adapter and the standard function of the system. I found these numbers by reading the the default configuration file and the commenst there.

You can make some testing using the echo test and line bussy test. (Did not write down there numbers, onlu used them from the configuration file.)

One other useful chech is to go into ssh shell and write the command "asterisk -vvvr". This gived a lot of info about activity.

I got the "automated receptionist function" to work with most of the tested incomming ip telephony lines. This function did not work for one ip telephony vendor that use a bit unusual format on tha register string. This norwegian wendor gave a problem with this function: http://www.televoip.no On the other hand "the line" this American vendor worked very nice:  http://iax.cc There was some bugs, but I still think this American vendor can be higly recomended.

Info just to indicate thet problems to make the automated reseptionist to work also could be related to the format of the register string og some other more vendor specific problems.

I don't remember at the moment where the sound files are stored. (I think I did find them, but just dont remember now. Will leave a msg if I see them..)

Are your Asterisk@SME running bug free ? Mine were until I decided to replace all the default configuration files with new manually edited files. It stopped working then, even though I had tested the files on a "clean" Asterisk@home.

For me Asterisk@SME have worked 100 % and without a bug as long as I used the standard configuration tools "the right way and as expected".

By the way .. has reinstalled it again.

Best reg Arne.
Title: Asterisk on SME7 (me again)
Post by: chris burnat on November 09, 2005, 02:43:05 PM
they could be here:
[root@kiwi ~]# ls -la /var/lib/asterisk/
total 152
drwxr-xr-x  10 root root  4096 Dec 11  2004 .
drwxr-xr-x  18 root root  4096 Dec 11  2004 ..
drwx------   2 root root  4096 Sep 17 20:42 agi-bin
-rw-r--r--   1 root root  8192 Nov  9 21:31 astdb
drwx------   3 root root  4096 Sep 17 20:42 firmware
drwx------   2 root root  4096 Sep 17 20:42 images
drwx------   2 root root  4096 Sep 17 20:42 keys
drwxr-xr-x   2 root root  4096 Oct  8 16:12 licenses
drwx------   2 root root  4096 Sep 17 20:42 mohmp3
drwxr-xr-x  10 root root 69632 Oct 20 00:10 sounds  <---    
drwxr-xr-x   6 root root 36864 Oct  9 13:37 sounds.po
Thanks to Stephen Noble who just pass this information tonight.
Title: Asterisk@SME
Post by: xboxer21 on November 09, 2005, 04:18:09 PM
Hello Arne,
I have not completely tested by using any VOIP service provider yet, I was trying to simulate an incoming call by dialing 7777 from an extension.
I will try changing the extensions to 5 digits and retest, will let you know how it goes. So have you replaced your iax.conf, sip.conf & extension.conf manually?

Thanks
Title: Asterisk on SME7 (me again)
Post by: arne on November 09, 2005, 11:26:26 PM
xboxer21 ->

Yes, I replaced the iax.conf, sip.conf & extension.conf with manually edited files on a ordinary Asterisk@home installation. This worked without a problem. Actually I just made a temperary renaming of the orginal files so it was just to rename back again to restore the orginal configuration.

When I tried to do the same on the Asterisk@SME the installation just crached. I don't know why. Could be just by coincidence.

Arne.
Title: Asterisk on SME7 (me again)
Post by: arne on November 10, 2005, 03:18:28 AM
burnat ->

Thanks for your info. This is from a Asterisk@home as I just have some problems with the Asterisk@SME (but this is due to some rather irregular testing.)

In the Asterisk@home installation I found the sound file from the digital receptionist here:

/var/lib/asterisk/sounds/custom/

Your info helped me to start the search on the right place.


Best reg Arne.
Title: Digital receptionist..
Post by: xboxer21 on November 11, 2005, 04:42:50 PM
Arne,
I only see a audrey.wav file inside /var/lib/asterisk/sounds/custom/ folder. Do you have any other files in your installation of a@h in the same folder?.
By the way I have signed up for Broadvoice, I will configure my asterisk@SME box to work with broadvoice and let you know how it goes.

Thanks
Title: Can't modify Config files using PHPCONFIG
Post by: xboxer21 on November 11, 2005, 10:01:31 PM
I tried modifying the extensions_custom.conf using phpconfig for Asterisk but I get an error message when I try to save the file. Its says Write failed.
Any idea why is this happening?

Thanks
Title: Asterisk on SME7 (me again)
Post by: arne on November 12, 2005, 12:05:20 AM
xboxer21 ->

/var/lib/asterisk/sounds/custom/  .. only one file inside that one (and then also some 44 byte template ore sometingg named .wav)

"I have signed up for Broadvoice" I have tried them. Technically it worked very nice. No problems. On the other hand, I did not like their security concept. When I maild them and commented this they only said that they did not concider security to be a problem. I do, so I ended my account.

So security was my reason for changing from Broadvoice to iax.cc By the way, the Broadvoice people treated me very nice, and I got all my money back. I guess that Broadvoice technically might be a slightely bether (more stable) service than iax.cc but I like the security concept of iax.cc very much. (You fill up you account with 20 dollar, and if someone is hacking your account it stops at 0 dollar. Really not much to worry about.)

"I tried modifying the extensions_custom.conf .."

I think the reason why this do not work is because this script is maintained by automated routines. If you try to edit the exctensions.conf in the bottom end, I guess there is a bether chance. (At the Asterisk@home and the Asterisk@SME, I believe this is a more static file that can be edited.)

Best reg Arne
Title: Broadvoice Config files.
Post by: xboxer21 on November 12, 2005, 02:42:13 AM
Hi Arne,
could you please post your config files for broadvoice,or did you use AMP to configure. Is there anything special we would have to do if my asterisk box is behind a router.

Thanks again
Title: Asterisk on SME7 (me again)
Post by: arne on November 12, 2005, 10:16:00 AM
xboxer21 ->

Broadvoice is for me now history, I don't have that configuration any more, but I think (believe) I used this guide:

http://geekgazette.com/index.php?option=com_content&task=view&id=20&Itemid=26

Special .. Yes, you will have to forward the right ports. I think default is UDP 5060 and all the UDP range 10000:20000

By the way I have now been able to crash my Asterisk@home as well, so it apear, that if one does enough "incorrect configuration" of any Asterisk server it is possible to destroy it. I think the reason that it crashed were that I tried to edit some of those files that is configured using automated procedures (but I will reinstall it again.)

There has been no crash or problems at all neither with the Asterisk@home or the Asterisk@sme as long as configuration and use have been "acording to the book". "To much" experimenting some times makes the need for reinstalling it all, even though there is no "visible" faults. It just stop working.

I think I did the Broadvoice configuration using the automated and manual configuration at Asterisk@home while the Asterisk@SME only worked with the automated AMP configuration.

There is by the way also a sip_nat configuration file if you want to have the internal extension numbers accessable over the internet. Might be a bit dangerous to use and is not required for basic operation.

Arne
Title: Broadvoice Dial plan
Post by: xboxer21 on November 12, 2005, 05:25:26 PM
Arne,
I did exactly what was mentioned in the link you posted, I can now recieve incoming calls, but cant make outbound calls, My guess is, i need to add a dialplan to the extensions.conf, I found a dialplan on the broadvoice website i will give it a shot & post my results later today. So far i haven't done anything that extensive with my config files so my asterisk has not crashed yet.
and thanks for all your help.
Title: Asterisk on SME7 (me again)
Post by: arne on November 12, 2005, 05:54:20 PM
Yyr go to the outbound routing. For instance if you make a route 01|. you just will have to 01 in front of the telephone number and it will go out (Trough thar certain "trunk".)

The inbound connection use to be more difficult and tricky than the outbound connection, so I think you have passed the most difficult part of it already.

Arne.
Title: Asterisk on SME
Post by: meanlocha on November 14, 2005, 06:12:07 AM
I much prefer the idea of not loading up an
Asterisk/AMP (A@H) server on top of SME.  It seems much simpler (to me :)  to run the two independently and portforward the SIP ports to A@H.  I got Broadvoice
working by a) collecting and setting the parameters
correctly from the Broadvoice account b) portforwarding
UDP on ports 69, 5060:5082, 10000:20000 to the A@H server.

Anthony
Title: Asterisk@SME
Post by: xboxer21 on November 14, 2005, 04:17:05 PM
Arne,
Finally got Asterisk to work, Incoming as well as outbound using Broadvoice, I was sucessfully able to achieve same exact results on both Asterisk@SME as well as a@h, However I could not get the digital receptionist to work on both :(
I was able to upload wav files using AMP and set some rules, I was bale to see the wav files being played in the asterisk CLI, but could not hear them when I tried calling.
I think I need to do some more more reading.
Thanks again.
Title: Digital Receptionist
Post by: xboxer21 on November 16, 2005, 10:45:30 PM
Finally got the digital receptionist in AMP to work :)
When ever we record a message to be played back by asterisk, I could see asterisk trying to playback the
custom/aa_1 sound file in the asterisk CLI but could not hear anything, The Custom folder was empty as well. I then created  a 8Khz 16Bit a wav file using Audacity(http://audacity.sourceforge.net/) on a windows machine and copied it over to the Sounds directory in Asterisk@SME. I then installed SOX (sox.sf.net) on the SME box and converted the wav file to a gsm file, Then changed the extensions_additional.conf file to play the new gsm file, and this time it worked.

has anyone experienced a similar menu recording problem using A@H or A4SME??

Thanks
Title: Asterisk on SME7 (me again)
Post by: fpausp on November 18, 2005, 06:43:08 PM
Hi All,

Have the asterisk@home beta 4 from http://firewall-services.com/AsteriskAtHomeSME7.html on my sme7b6 installed and like to use a avm-isdn controller can anyone help me please ?

regards
fpausp
Title: Asterisk on SME7 (me again)
Post by: timlitw on November 24, 2005, 03:36:46 AM
Any Idea when this will get updated with the latest beta - or are we waiting for release now?
Title: I've installed this version on beta8
Post by: timlitw on November 25, 2005, 04:52:49 AM
I had to install dev tools so I could run rebuild_zaptel.

but now I can't get my generic phone interface card to work.  It works fine in my asterisk at home 1.1 install that I've been using for 6 months.
Title: Asterisk on SME7 (me again)
Post by: arne on November 27, 2005, 12:02:31 PM
I use the ip telephony format (sip/iax) only so I know rather little about the Zaptel functions.

One thing I'm courios about .. is there any reson to do the ip-telephony to "plain old telephony lines" bridging/termination yourself ?

I think I can buy it bether and cheaper from a sip telephony vendor, so why do the termination youself ? (Unless the prices in other countries are different. For me it is much more cheaper to buy the termination from an sip telephony vendor.)

Just courious if there should be some arguments that I have missed or forgotten .. reliability might be one - an "plain old telephony line" might be very reliable .. some other arguments or reasons ?

(For me the prinsipple of buing the termination from external vendors redused my basic monthly bill to zero, and then only a very low rate per minute. Telephony bills are now only a fraction of what it used to be.

Next project: Is there any of you that have an idea how to make a Asterisk to mobile telephony bridge ?

Possible a item for a new qestion or to far away for the sme server forum ?
Title: Asterisk on SME7 (me again)
Post by: timlitw on November 27, 2005, 04:06:55 PM
Because we can't get a local number from any sip providers here in central Kansas.  

and long distance is expensive enough that friends won't call as much if they have to pay long distance to call us.

We use outgoing voip providers for our long distance so that takes care of it for us. But we aren't willing to write off incoming local phone calls.
Title: Asterisk on SME7 (me again)
Post by: arne on November 27, 2005, 05:01:03 PM
Ok, this argument I understand. Actually I use myself a local number from a neibour city, and people is sometimes confused about that. But the price for calling is exactely the same.

I have been thinking about setting up a traditional telephony for incomming calls and for redudancy. Until now I have not because the Asterisk server has been running without any big problems.

In this country it is possible to buy some mobile telephone cards with zero rate for calls within the same group/company/family. If it were possible to set up a gsm mobiltelephony gateway on your Asterisk server, I think it could be possible to call you to your mobile telephone for allmost nothing and vise versa. You will also be able to call out for allmost nothing.
Title: Re: I've installed this version on beta8
Post by: xboxer21 on November 29, 2005, 07:14:58 PM
Quote from: "timlitw"
I had to install dev tools so I could run rebuild_zaptel.

but now I can't get my generic phone interface card to work.  It works fine in my asterisk at home 1.1 install that I've been using for 6 months.


I got it to work by doing the following.

cd /usr/src
export CVSROOT=:pserver:anoncvs@cvs.digium.com:/usr/cvsroot
cvs login            - the password is anoncvs.
cvs checkout zaptel
rebuild_zaptel
reboot
genzaptelconf

Thanks
Title: Bad Yum repository?
Post by: centreit on December 05, 2005, 07:46:24 AM
I have tried installing the script on SME7 Beta8 but it fails and reports the following errors in the install log

http://centos.ate.info/yam/cnt4-i386/RPMS.ate/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
Cannot open/read repomd.xml file for repository: ate
failure: repodata/repomd.xml from ate: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from ate: [Errno 256] No more mirrors to try.

it does this for every RPM it tries to download. I have read through this forum and tried a number of things but can't get it to work.

Thanks,

Daniel
Title: Asterisk on SME7 (me again)
Post by: arne on January 04, 2006, 03:12:28 AM
Cyr ->

Look at this tread at the asterisk@home forum:

http://sourceforge.net/forum/forum.php?thread_id=1413329&forum_id=420324

Do you think it is possible to give your asterisk@sme installation a revision so it can install at the newest sme server ?


Best reg Arne
Title: Asterisk on SME7 (me again)
Post by: cyr on January 05, 2006, 08:23:48 PM
Hello and happy new year,

I have infortunately a bad news, I will not be able to work on the contrib A@SME anymore due to the fact that my professional situation had chaged recently. I'll try to help anyone who would like to take the project if of course someone want to take his chance with it.

Best regards,

Cyr
Title: Asterisk on SME7 (me again)
Post by: Drifting on January 08, 2006, 03:53:04 PM
I assume then that this is now dead in the water?

After my 3rd install I still cannot get it to complete succesfully.

Paul.
Title: A@H4SME7 not dead.
Post by: RvLardin on January 10, 2006, 11:05:09 AM
Cyr did a great job in integrating A@H in our SME.
We all have to thanks him.
The contrib he did is fully usable, we use it in production on 3 sites without installation pb (just 'sh install.sh').
We plan to commercially use this feature as a top one in 2006 and we won't surrender in supporting Asterisk on SME7.
For the moment, SME is in Beta stage, as the Asterisk@Home we use on it. The final version will include the stables versions of each.

We are looking for a student that will spend a few weeks on this project. If a foreigner is interresting in spending a year in Bordeaux (France), we have a lot of other jobs to do on SME ...

So, don't hesitate to go on using it, for me it's really a goal to succed in this integration, at the end the SME Gateway will manage files, mail, phone & fax integrated in a web-based CRM ...


@+,
RV.
Title: Asterisk on SME7 (me again)
Post by: Drifting on January 10, 2006, 07:20:19 PM
RV.

I too think this would be the killer app server of all time!

Bordeaux, Mmmm Whens the wine season :) If only I was a programmer, I would bite your hand off for the opportunity.

The comment about foreigners made me chuckle, reminds me of the time I arrived in Los Angeles, where upon a very small but pleasant chinese lady said "Ah your an Alien?" "No" I resonded "I'm British and from Earth, or did you Americans not know that? Little did she know my mother is American, so I suppose I am an abductee?

Paul.
Title: Asterisk on SME7 (me again)
Post by: arne on January 15, 2006, 11:51:06 PM
Cyr ->

The things I remember from the installation is that it was quite automated with quite a number of downloads, so it was only the end configuration left back for us "the users".

Could it be possible to let this materiall and possible some short technical descriptionto be available for download at some web site so we could look into it ?

It think it will be rather difficult for anybody to just take over such a difficult and compicated project, .. but possibly, if it is a question of making revisions and updates of things of things that have ben done before, it might be at least a lot more easy than to do it all from the scratch.

I would find it rather interesting to look into it, how it can work. I have no idea if I'm clever enough to look into some revision, but anyhow it would be interesting to take a look.

In some way, the integration of the sme server and the asterisk@home is a very logical step. A internet server used to be basically mail, web, mail and ftp, but at things are now developing it should be rather clear that ip telephony will be one of the basic internet services most companies (and homes) will use. So if the sme server should continue to be the "all inn one server" it will have to get ip telephony included.

Argument against is that hardware tends to get cheaper and that two different boxes will make installations and troubleshooting a bit more easy.

But still in the long run .. a intergration of the asterisk@home into the sme server is a very elegant solution.

So it would be a very nice thing if documentation and material from the first sme server and asterisk@home project could be left open for further use and further development.

Best reg Arne.
Title: dosen't work on 7pre1
Post by: dazza76 on January 18, 2006, 06:21:59 AM
tried to install it on 7pre1 fresh install
creation of yum ate did not work had to change it manually
Title: Asterisk on SME7 (me again)
Post by: madadam on January 22, 2006, 12:12:50 PM
Has anyone had any luck using this script with a fresh v7 pre1 installation?

I get a heap of errors about directory creation, dependancies and Asterisk fails to start.

Cheers,

Adam
Title: Asterisk on SME7 (me again)
Post by: frank3427 on January 22, 2006, 10:08:15 PM
xboxer21

Can you share your Broadvoice configuration, I am having difficulty getting it to work.

Frank
Title: Asterisk on SME7 (me again)
Post by: dennyhalim on January 23, 2006, 11:12:12 AM
same thing here.

imho, some one need to update the installer script to support pre1

Quote from: "madadam"
Has anyone had any luck using this script with a fresh v7 pre1 installation?

I get a heap of errors about directory creation, dependancies and Asterisk fails to start.

Cheers,

Adam
Title: Asterisk on SME7 (me again)
Post by: dennyhalim on January 24, 2006, 05:12:21 AM
i'm thinking on cheating a little bit...

some said it's installed fine on sme7b9

so, i think... if i re-install the whole system with sme7b9,
then install asterisk@home,
then upgrade to sme7pre1.

can this works?
i want to take the risk. where can i get sme7b9??

tia
dny
Title: asterisk on sme7pre1
Post by: kabouterrace on January 25, 2006, 09:40:06 PM
Hi, i also installed sme7pre1 and like to have asterisk running on this server.
has anybody got this working.
Before i used asterisk@home. But to use a pc only as voip server is not a good solution for me.

Help!!!

Paul
Title: Asterisk on SME7 (me again)
Post by: dennyhalim on January 26, 2006, 09:22:11 AM
so i try...

fresh install sme7b8 and install a@h

same thing. same error.
asterisk is not even installed...

anything news on asterisk? anyone take over & fix the code yet?

rgds
dny
Title: Asterisk on SME7 (me again)
Post by: Franco on January 26, 2006, 12:53:33 PM
It would be smart to wait till the final release before modifying to fit a particular beta, since we know from this thread that the code breaks in between releases.
Title: Asterisk on SME7 (me again)
Post by: arne on January 30, 2006, 07:20:36 PM
Possible we could do it in a just a little bit other way:

1. First install the sme server the ordinary way.
2. Then install the orginal Asterisk@home server on top on the sme server.
3. Modifying the sme server so they work ok together.

(Possibly it will be an idea to change step 2 and 3, don't know yet.)

Have done the Asterisk@home installation on a number of Linux distros and could try to give some ifo if anybody wold like to start up with the hard work. (I have already 3 different asterisk@home servers running just now, and I dont want to pull any of them down yet.) (By the way, the hard work on the sme server is not so hard as quite much of the installation is automated.)
Title: Asterisk on SME7 (me again)
Post by: girkers on February 01, 2006, 01:07:46 AM
I am looking at installing Astericks on my SME7Pre1 server, was just waiting for confirmation that it worked first.  As this is my home server I am willing to give it a try.

Email me if you like.
Title: Asterisk on SME7 (me again)
Post by: Franco on February 01, 2006, 02:35:39 AM
I have it working on 7pre1, it won't work by running the script, but it will the manual way.
Like I said before, I think it would be good to wait for a final distro, then recreate the script fixing the broken pieces.
Title: Asterisk on SME7 (me again)
Post by: arne on February 02, 2006, 08:55:18 AM
Is it possible to say a few words about how you did it ?

I have testinstalled it on a number of distros including Clarkconnect and it went stright in without a problem. (But I am not a to big fan of ClarkConnect.)

Afeter all there is not that big difference between a "manual" installation and a "automaded installation via script". The downloadable AAH for "manual installation" is also based on a script.

What I can see is likely to be a problem is that the AAH installation script will install the htpl pages inside the var directory and not in the "primary ibay" or some other good places for the sme server.

It would be intersting to know a few words about how to handle this.

By the way, I have red a number of "warnings" about installing the AAH server together with things like x-win and other server function, as it is clamed that the Asterisk server is a realtime application that easily can get "disturbed" by running other applications on the same server.

I guess that this is not a problem in the real life, if it is a question of a sme server running with just a small load ?
Title: Asterisk on SME7 (me again)
Post by: arne on February 02, 2006, 09:02:50 AM
"will install the htpl pages "

Correct spelling is obviosly (?) not my strongest side. Hope you can bear over with us "non english" trying to type English.

What I tried to say is that I believe that the web pages for AMP and etc will come on a incorrect location for the sme server (??)
Title: Asterisk on SME7 (me again)
Post by: Franco on February 02, 2006, 02:17:25 PM
Quote from: "arne"
Afeter all there is not that big difference between a "manual" installation and a "automaded installation via script"

Yes, there's a difference there:
One does not work  :-D
Quote from: "arne"
I have testinstalled it on a number of distros including Clarkconnect and it went stright in without a problem. (But I am not a to big fan of ClarkConnect.)

What's up with Clark? Do you use it? 5 or 6 users limit?
Quote from: "arne"
What I can see is likely to be a problem is that the AAH installation script will install the htpl pages inside the var directory and not in the "primary ibay" or some other good places for the sme server.
And so is a lot of the contributions we have, no problems there. In this case is actually a good thing, since the Primary Ibay is world readable.
Title: Asterisk on SME7 (me again)
Post by: arne on February 02, 2006, 05:49:55 PM
About the Clarkconnect.. I have only tested on the free dowloadable home edition. Of course no one got the right to complanin about something that is free. Also actually, I think that the developers of the CC has done realy a great job trough the last revisions. It's only a mather of "taste". For me the CC apear to be something a little bit "Microsoft alike" (But it might not be fair to say that at all, and it might not be right.)

When I think it over. You are right that there is some Contribs that put the web things on some unstandard places. (I don't now at all how to handle this at the moment, but it might not be to difficult ?)

But then it might not be to difficult at all to install the newest A@H to the SME server ?? (For the CC Home 3.2 it went just right in. No problems at all.)

By the way, I'm testing one other asterisk variant now, astlinux. It can run from a 32 MB Flash memory. Really a impressive piece of software. It might not be obvious that the ip telephony and the web server should be on the same box. Don't know. http://www.astlinux.org/ (But astlinux requires manual configuration of the asterisk server.)
Title: Asterisk on SME7 (me again)
Post by: NickCritten on February 08, 2006, 12:59:43 PM
Hi Everyone..

Is there any chance some lovely person could summarise all this good information into the pre-prepared WIKI for asterisk here: http://no.longer.valid/phpwiki/index.php/Asterisk%20on%20SME%20Server

I'd love to install asterisk, but i just don't have the time to wade through 8 Pages of forum!  :-)

Failing this, is there a Howto somewhere, or would anyone be willing to provide help and I will be happy to produce a howto for everyone else?
Title: Asterisk on SME7 (me again)
Post by: raymondw on February 11, 2006, 11:49:58 AM
oké, after watching this forum for some time this will be my first post ;-)

After a night with  :pint: i was ready to do some brainless a@s troubleshooting.
Starting with the script install and looking at the logs i've created a working install script.
After all very simple...  :-?

What I did:
============================
enable the standard centos yum repository
- vi /etc/yum.conf
Change
- [base]
- enabled=0 to 1
run script
============================

After adding the standard yum rep the install finished WITHOUT a error.

Have fun and hope this helps others  :hammer:

/edit 1
Used PRE1 in a VM, which I upgraded to PRE2 after the install

/edit 2
To be sure I did a fresh install of Pre2 and it gave a couple of errors.
Looks like a yum problem, will test a couple of things.... again....   :-(
Title: Asterisk on SME7 (me again)
Post by: raymondw on February 12, 2006, 01:41:37 PM
After a couple of test installs and a cups of coffee : tada.wav ;-)
It works  :-P

You can save the code parts to the A7SME7 dir and run the install.sh
No need to change other files!


Here are the scripts

INSTALL.SH
Code: [Select]
#!/bin/sh
# Install all

echo ""
echo " --------------------------------------------------------"
echo "|   Installing Asterisk                                  |"
echo "|                                                        |"
echo "|   This can take some time...                           |"
echo "|   This install may need some files from the Internet   |"
echo " --------------------------------------------------------"
echo ""

echo "Installing Asterisk dependencies..."

# Add ate repository to sme db
if ! /sbin/e-smith/db yum_repositories show | grep "ate=repository" >/dev/null 2>&1; then
db yum_repositories set ate repository \
 BaseURL http://centos.ate.info/yam/cnt4-i386/RPMS.ate \
 EnableGroups 1\
 GPGCheck 0 \
 Name 'ate RPM Repository fo Centos 4.1' \
 status disabled
fi
/sbin/e-smith/db yum_repositories setprop ate status enabled
/sbin/e-smith/db yum_repositories setprop base status enabled
/sbin/e-smith/expand-template /etc/yum.conf

echo "" 2>&1 | tee /root/install_asterisk.log
echo "Installing Asterisk@Home..." 2>&1 | tee -a /root/install_asterisk.log
echo "" 2>&1 | tee -a /root/install_asterisk.log
date 2>&1 | tee -a /root/install_asterisk.log
echo "" 2>&1 | tee -a /root/install_asterisk.log

sh install_parts.sh 2>&1 | tee -a /root/install_asterisk.log


INSTALL_PARTS.SH
Code: [Select]
#!/bin/bash
LOAD_LOC=pwd
echo "*********************************************************"
echo "** install addon ****************************************"
echo "*********************************************************"

echo "-------------------------------------------"
echo "installing misc RPM"
echo "-------------------------------------------"

rpm --import $LOAD_LOC/RPM-GPG-KEY-CentOS-4.1
rpm -i lame-3.96.1-2.2.el4.rf.i386.rpm
rpm -i ngrep-1.43-1.2.el4.rf.i386.rpm
yum -y install festival

echo "-------------------------------------------"
echo "installing Web Voicemail"
echo "-------------------------------------------"

#load web voicemail access
cp $LOAD_LOC/vmail.cgi /var/www/cgi-bin/
chmod 4755 /var/www/cgi-bin/vmail.cgi

echo "-------------------------------------------"
echo "installing Web GUI"
echo "-------------------------------------------"

#load Asterisk Web UI
cd /var/www/html
mkdir /var/www/upload
chmod 777 /var/www/upload
tar xzvf $LOAD_LOC/webapps.tar.gz
cp $LOAD_LOC/asterisk.reload /bin
chmod 777 /bin/asterisk.reload

echo "-------------------------------------------"
echo "installing Asterisk Perl"
echo "-------------------------------------------"

#install astersik-perl
cd /usr/src
tar xzvf $LOAD_LOC/asterisk-perl-0.08.tar.gz
cd /usr/src/asterisk-perl-0.08
perl Makefile.PL
make all
make install

echo "-------------------------------------------"
echo "Configuring MySQL"
echo "-------------------------------------------"

#create SQL table for storing CDRs
/usr/bin/mysqladmin create asteriskcdrdb
/usr/bin/mysql < $LOAD_LOC/asteriskcdr.sql

echo "-------------------------------------------"
echo "installing mpg123"
echo "-------------------------------------------"

yum -y install mpg123

echo "-------------------------------------------"
echo "installing scripts"
echo "-------------------------------------------"

cd /usr/local/sbin
tar xvfz $LOAD_LOC/scripts.tar.gz
ln -s /usr/local/sbin/backup_asteriskathome.sh /etc/cron.daily/backup

#echo "-------------------------------------------"
#echo "installing sipsak"
#echo "-------------------------------------------"

#cd /usr/src
#tar zxf $LOAD_LOC/sipsak-0.8.11.tar.gz
#cd /usr/src/sipsak-0.8.11
#./configure
#make install

#cp $LOAD_LOC/resetmwi /usr/local/bin
#chmod 777 /usr/local/bin/resetmwi

echo "-------------------------------------------"
echo "installing Perl Mods"
echo "-------------------------------------------"

yum -y install perl-Data-UUID

# install mime-construct
cd /usr/src
tar xzvf $LOAD_LOC/mime-construct-1.8.tar.gz
cd /usr/src/mime-construct-1.8
perl Makefile.PL
make install

echo "*********************************************************"
echo "** install Asterisk *************************************"
echo "*********************************************************"

echo "-------------------------------------------"
echo "installing Asterisk and sub components"
echo "-------------------------------------------"
groupadd asterisk
useradd -c "Asterisk PBX" -d /var/lib/asterisk -u 5060 -g asterisk asterisk
usermod -Gasterisk www

echo "-------------------------------------------"
echo "installing Zaptel Driver"
echo "-------------------------------------------"

yum -y install zaptel

echo "" > /etc/udev/permissions.d/60-zaptel.permissions
echo "# zaptel devices -- set permissions to run Asterisk as user asterisk" >> /etc/udev/permissions.d/60-zaptel.permissions
echo "zap/*:asterisk:asterisk:660" >> /etc/udev/permissions.d/60-zaptel.permissions

rm -f /etc/zaptel.conf
cp $LOAD_LOC/zaptel.conf /etc/
rm -f /etc/sysconfig/zaptel.conf
cp $LOAD_LOC/zaptel /etc/sysconfig/
ln -s /etc/rc.d/init.d/zaptel /etc/rc7.d/S41zaptel

echo "-------------------------------------------"
echo "installing libpri driver"
echo "-------------------------------------------"

yum -y install libpri

echo "-------------------------------------------"
echo "installing Asterisk with FAX support..."
echo "-------------------------------------------"

yum -y install spandsp

yum -y install asterisk

chmod 775 /var/lib/asterisk/sounds
mkdir /var/spool/asterisk/fax
chown asterisk:asterisk /var/spool/asterisk/fax
chown asterisk:asterisk /usr/sbin/asterisk
chown -R asterisk:asterisk /usr/lib/asterisk
mkdir /var/run/asterisk
chown -R asterisk:asterisk /var/run/asterisk
chmod 775 /usr/sbin/safe_asterisk

echo "-------------------------------------------"
echo "installing Asterisk Addons"
echo "-------------------------------------------"

yum -y install asterisk-addons

echo "-------------------------------------------"
echo "Loading Asterisk@Home config files"
echo "-------------------------------------------"

mv /etc/asterisk* /etc/asterisk
mkdir /etc/asterisk/default
mv /etc/asterisk/* /etc/asterisk/default
cd /etc/asterisk
tar xvf $LOAD_LOC/asterisk_config.tar

chmod 775 /etc/asterisk/*
chown -R asterisk:asterisk /etc/asterisk/*

echo "-------------------------------------------"
echo "installing voicepulse pub cert"
echo "-------------------------------------------"

cp $LOAD_LOC/voicepulse01.pub /var/lib/asterisk/keys

echo "-------------------------------------------"
echo "installing AGI scripts"
echo "-------------------------------------------"

mv /usr/local/sbin/festival-weather-script.pl /var/lib/asterisk/agi-bin/
mv /usr/local/sbin/festival-script.pl /var/lib/asterisk/agi-bin/
mv /usr/local/sbin/weather.agi /var/lib/asterisk/agi-bin/


chown -R asterisk:asterisk /var/lib/asterisk/agi-bin/
chmod u+x /var/lib/asterisk/agi-bin/*.agi
chmod u+x /var/lib/asterisk/agi-bin/*.pl

mkdir /var/lib/asterisk/sounds/tts
chmod 775 /var/lib/asterisk/sounds/tts

echo "-------------------------------------------"
echo "setup log rotation"
echo "-------------------------------------------"

cp $LOAD_LOC/asterisk.logrotate /etc/logrotate.d/asterisk

echo "-------------------------------------------"
echo "Asterisk install Done."
echo "-------------------------------------------"

chown -R asterisk:asterisk /var/lib/asterisk
chmod -R 775 /var/lib/asterisk
chown -R asterisk:asterisk /etc/asterisk
chmod -R 775 /etc/asterisk
chown -R asterisk:asterisk /usr/lib/asterisk
chmod -R 775 /usr/lib/asterisk
chown -R asterisk:asterisk /var/lib/asterisk
chmod -R 775 /var/lib/asterisk
chown -R asterisk:asterisk /var/spool/asterisk
chmod -R 775 /var/spool/asterisk
chown -R asterisk:asterisk /var/run/asterisk
chmod -R 775 /var/run/asterisk
chown -R asterisk:asterisk /var/log/asterisk
chmod -R 775 /var/log/asterisk
/usr/sbin/safe_asterisk -U asterisk -G asterisk

echo "*********************************************************"
echo "** install addon 2***************************************"
echo "*********************************************************"

echo "-------------------------------------------"
echo "installing xPL stuff"
echo "-------------------------------------------"

#Install xPL hub
mkdir /usr/src/xplhub
cd /usr/src/xplhub
tar xvf $LOAD_LOC/xplhub.tar
./install.sh
ln -s /etc/rc.d/init.d/xplhub /etc/rc7.d/S55xplhub

#Install xPL Software
cd /usr/src/
tar xvfz $LOAD_LOC/xplast.tar.gz
/etc/init.d/xplhub start

echo "-------------------------------------------"
echo "installing Wakeup call"
echo "-------------------------------------------"

mkdir /var/spool/asterisk/wakeups
chown -R asterisk:asterisk /var/spool/asterisk/wakeups

mv /usr/local/sbin/wakeup.php /var/lib/asterisk/agi-bin/
mv /usr/local/sbin/wakeup-ext.php /var/lib/asterisk/agi-bin/
mv /usr/local/sbin/run_wakeups /var/lib/asterisk/agi-bin/
chmod +x /var/lib/asterisk/agi-bin/*
chown asterisk:asterisk /var/lib/asterisk/agi-bin/*

if ! grep run_wakeups /etc/crontab >/dev/null 2>&1; then
mkdir -p /etc/e-smith/templates-custom/etc/crontab
echo "* * * * * root /var/lib/asterisk/agi-bin/run_wakeups" >> /etc/e-smith/templates-custom/etc/crontab/70run_wakeups
/sbin/e-smith/expand-template /etc/crontab
fi

echo "*********************************************************"
echo "** install AMP ******************************************"
echo "*********************************************************"

echo ""
echo "*** Installing AMP dependencies"

#install IPC-Signal
cd /usr/src
tar xzvf $LOAD_LOC/IPC-Signal-1.00.tar.gz
cd /usr/src/IPC-Signal-1.00
perl Makefile.PL
make install

#install Net-Telnet
cd /usr/src
tar xzvf $LOAD_LOC/Net-Telnet-3.03.tar.gz
cd /usr/src/Net-Telnet-3.03
perl Makefile.PL
make install

#install Proc-WaitStat
cd /usr/src
tar xzvf $LOAD_LOC/Proc-WaitStat-1.00.tar.gz
cd /usr/src/Proc-WaitStat-1.00
perl Makefile.PL
make install

#untaring AMP
echo " *** untaring AMP"
cd /usr/src
tar xzvf $LOAD_LOC/AMP.tar.gz
cd /usr/src/AMP

#create SQL table for AMP
/usr/bin/mysqladmin create asterisk

#Setting Permissions

/usr/bin/mysql < $LOAD_LOC/permissions_amp.sql

#install asterisk db
echo " *** loading asterisk db in MySQL"
mysql asterisk < /usr/src/AMP/SQL/newinstall.sql

echo " *** Installing AMP app"
mkdir -p /etc/e-smith/templates-custom/etc/amportal.conf
cp $LOAD_LOC/amportal.conf /etc/e-smith/templates-custom/etc/amportal.conf/
/sbin/e-smith/expand-template /etc/amportal.conf


./install_amp

mkdir /var/lib/asterisk/sounds/custom

touch /var/www/html/panel/op_buttons_additional.cfg
touch /var/www/html/panel/op_buttons_custom.cfg

echo " *** setting permissions and default values"
sh apply_conf.sh

cp $LOAD_LOC/op_server.cfg /var/www/html/panel

touch /var/log/asterisk/cdr-csv/Master.csv
chmod 777  /var/log/asterisk/cdr-csv/Master.csv

if ! grep amportal /etc/rc.d/rc.local >/dev/null 2>&1; then
echo "/usr/sbin/amportal start" >> /etc/rc.d/rc.local
fi

echo "-----------------------------------------------------"
echo "AMP Installed."
echo "-----------------------------------------------------"

echo "-------------------------------------------"
echo "installing Asterisk extra sounds"
echo "-------------------------------------------"

yum -y install asterisk-sounds php-mbstring

echo "*********************************************************"
echo "** Post Install *****************************************"
echo "*********************************************************"
echo ""

echo "-------------------------------------------"
echo "Set permissions"
echo "-------------------------------------------"

chmod 664 /etc/zaptel.conf
chmod 664 /etc/amportal.conf

chown -R asterisk:asterisk /var/www/html/
chown -R asterisk:asterisk /etc/asterisk
chown -R asterisk:asterisk /usr/lib/asterisk/modules
chown -R asterisk:asterisk /var/lib/asterisk
chown -R asterisk:asterisk /var/lib/asterisk/agi-bin
chown -R asterisk:asterisk /var/spool/asterisk
chown -R asterisk:asterisk /var/run/asterisk
chown -R asterisk:asterisk /var/log/asterisk

echo "-------------------------------------------"
echo "install e-smith specific files"
echo "-------------------------------------------"

cp $LOAD_LOC/amp /etc/e-smith/web/functions/
cd /etc/e-smith/web/panels/manager/cgi-bin
ln -s ../../../functions/amp amp
cd /etc/e-smith/web/functions
chown root:admin amp
chmod 4750 amp

mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
cp $LOAD_LOC/98amp /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
chown root:root *
chmod 644 *
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf

echo "-------------------------------------------"
echo "Clean up"
echo "-------------------------------------------"
/usr/local/sbin/backup_asteriskathome.sh

echo "-------------------------------------------"
echo "Auto-config Hardware"
echo "-------------------------------------------"

/usr/local/sbin/genzaptelconf

echo "** Cleanup done."
echo "-------------------------------------------"
echo "Installation done."
echo ""
/sbin/e-smith/db yum_repositories setprop ate status disabled
/sbin/e-smith/db yum_repositories setprop base status disabled
/sbin/e-smith/expand-template /etc/yum.conf
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot
Title: Asterisk on SME7 (me again)
Post by: arne on February 12, 2006, 03:22:39 PM
Wery nice and very cool  :-D

I think I will try it as soon as I have some time.

I try to read the script, and I think I understand a little of it, but absolutely not everything.

One or two things I am vondering about ..

1. There will not be any permanent change in the sme yum repositories, so the update of the sme server will work like normal after the installation of the AAH ?! Right !?

2. Where does the script actually download the asterisk server iself from (which line in the script) ? It is a download of sorce code packages that will be compiled during the installation or what ? I also wonder which revision of the asterisk server it will install (I try to read the script, but I don't undersand it on that point.)

3. I have installed Asteris@Home at a Clarkconnect server. On this one I had to download diverse aditional software before I was able to compile the asterisk source code. It this installation according to the script based on precompiled rpms or what ? (And then which AAH revision ??)

I will try to find time to do a test installation myself, but until then I would be very interested in any information (to make things more easy to unserstand.)  :-)
Title: Asterisk on SME7 (me again)
Post by: arne on February 12, 2006, 03:26:41 PM
Qustion 3 were if it is based on rpms or source codes and eventuelally which revision og the rpms (and then one hidden question: how to upgrade later on.)
Title: Asterisk on SME7 (me again)
Post by: raymondw on February 12, 2006, 05:30:44 PM
All,
It is the script from cyr tweaked to install on SME7 PreX

1. True, after the install every yum change will be undone.

2. The RPM is comming from the *ate* (http://centos.ate.info/yam/cnt4-i386/RPMS.ate/) repository.

3. The RPM is created from CVS 08-08-2005, more info can be found *here* (http://www.laimbock.com/asterisk/)

Asterisk "show version" gives the following output
Asterisk CVS-HEAD built by patrick@pbx.puzzled.xs4all.nl on a i686 running Linux on 2005-08-08

Future upgrade's is something i'm asking myself also...
I think well see what happens when SME7 goes Gold...
Title: Asterisk on SME7 (me again)
Post by: arne on February 12, 2006, 07:54:58 PM
Thanks for great work. I had some thought about trying to something like that but I did not have the guts even to try ..

One other and different way for a future solution might be to modfy the original installation script from the asterisk@home download (the tar.gz file) so it will fit with the script above and the sme server.

Just an idea .. If such a mod vere possible (and to install via source code), then the asterisk@sme installation could easily follow the revisions of the asterisk@home project, .. just an idea.

(Such an installation (asterisk@home from new sourccode) works by default on a Clarkconnect server (after installing some aditional software to make it possible to compile the asterisk software), and I believe that with some of the adjustments contained in your script above, it could also work on a sme server.)

Once more thanks for the mod, so it is now possible to make a reasonable updated asterisk installation on the sme server  :-)
Title: Asterisk on SME7 (me again)
Post by: raymondw on February 12, 2006, 10:47:35 PM
Quote from: "arne"

Just an idea .. If such a mod vere possible (and to install via source code), then the asterisk@sme installation could easily follow the revisions of the asterisk@home project, .. just an idea.


That is not a big problem, the install scripts are adepted easily.
The thing is that I would like to keep my install as clean as possible.
If I compile it from source I need a lot more files, don't think that will be a good idea... :-?

A other option is using a other RPM. I've allready tried a few, without any luck.
Title: Missing files in raymondw script
Post by: organetic on February 15, 2006, 07:49:28 PM
Hi raymondw!

You've done a nice job on the script.
I'm just trying to use it but it seems that some files are missing at the repository you indicated.
This is not a big deal, since I've found most part of missing files on other repositories. The ones i can't find, are the specific SME configuration files for AMP:

permissions_amp.sql
amp
98amp

Could you please post a place were we can get them or send me an email?

Regards,
Organetic
Title: Asterisk on SME7 (me again)
Post by: raymondw on February 15, 2006, 09:27:07 PM
Organetic,
Did you only use my script or did you also downloaded the original file?
My script only a installer working on 7 PreX installations.

The original file can be found here : *LINK* (http://firewall-services.com/AsteriskAtHomeSME7.html)
And is created by cyr (http://forums.contribs.org/index.php?action=profile;u=6189)

Replace the files in the script with my files.  :-D
Title: Raymondw Install script for Asterisk on SME7
Post by: organetic on February 16, 2006, 06:39:30 PM
Hi raymondw,

I don't understand what you mean with "PreX". Do you refer to a tweaked version of SME7 with X installed or just any Pre-Release version?

Regarding your script, I've just downloaded the file stated on cyr website.
Now, I just don't know wich path should I take. Should I follow cyr instructions or use the files together with your script? Is there any difference at all?

Oh, about the repository you use on your script. Some files simply aren't there no more. I managed to find most of them, but not these ones :

permissions_amp.sql
amp
98amp

Regards,

org
Title: Asterisk on SME7 (me again)
Post by: raymondw on February 16, 2006, 07:26:13 PM
Organetic,
Here is a short howto :-)

- Install SME7 Pre-release 1,2 or 3
- unpack A4SME7 tar from Cyr
- Replace the install.sh and install_parts.sh with my files
- start the Asterisk install by running "sh install.sh"

I tried it here and there is no file missing  8-)
Title: Asterisk on SME7 (me again)
Post by: Franco on February 16, 2006, 08:48:19 PM
Quote from: "raymondw"
Organetic,
Here is a short howto :-)

- Install SME7 Pre-release 1,2 or 3
- unpack A4SME7 tar from Cyr
- Replace the install.sh and install_parts.sh with my files
- start the Asterisk install by running "sh install.sh"

I tried it here and there is no file missing  8-)


There are missing pieces, and maybe your system is configured to check other yum repositories that have these files.
Title: Asterisk on SME7 (me again)
Post by: raymondw on February 16, 2006, 09:42:25 PM
:hammer:   :roll:
I've seen the errors....

Looks like a DNS problem, think my SME has a cached DNS resolver.

I'm working on a "local" mirror...

edit
Oke, it was a long day for me...
Made a couple of mistakes and not happy anymore....

I'm going to bed and look at the script over the weekend.
Was thinking about upgrading the script to Asterisk 1.2.4 mayby a good time to begin with that.  :roll:
Title: Asterisk on SME7 (me again)
Post by: Tib on February 18, 2006, 02:27:28 PM
Hello raymondw,

Great job ... tried out your script and all worked great ... I didn't seem to have any files missing ... everything seems to be working. How would I know if those files are missing.

Actually loaded A4SME on the machine on Monday and all seemed fine ... the second time arround anyway ... the first time I tried I forgot to unpack the A4SME7 tar file but the second try did the trick.

I did notice that the asterisk ver is 2.0 b4 ... how hard would it be to update to ver 2.5 ... is there a lot involved?

Regards,

Tib.
Title: Module zaptel does not exist in /proc/modules
Post by: ATMLogic on February 20, 2006, 09:48:37 PM
Soo... I made the change in Yum from 0 to 1, and I changed the install.sh and install_parts.sh  (then I edited the files again to make sure it was not cutting things to a new line (oops))  

I don't see much for any errors, but getting zap errors and  Module zaptel does not exist in /proc/modules  etc, and well, its just not working out for me :)

Also filling my inbox with /bin/bash: /var/lib/asterisk/agi-bin/run_wakeups: No such file or directory

So, I just tried the uninstal (now that's kewl! thinkin')
Any thoughts on this...  I can dump the server and start again from scratch... Also I tried this with the Digium TDM400P and the Ambient "Wildcard" no change with either card in the box.

Thanks
Title: original script patched
Post by: RvLardin on February 22, 2006, 06:07:24 PM
At least !
 :oops:
I've updated the archive with the script patched by Raymondw.

Thanks a lot to you, Raymondw for getting into the code to guess what was wrong.
.. and thank also to GPL that help us to get pgm up-to-date even if we weren't the original authors.

By the way, thanks to all contributors who have posted in this thread and specially to Arne that encourage and help us by his early testing.

If I'm not wrong, the proposed patch was to enable the CentOS 'base' repository at the beginning and disable it at the end. In the same time, the 'ate' repository is added, and also enabled then disabled.

That are the two lines I've added to the script, from the raymondw's patch :
install.sh (begining):
# /sbin/e-smith/db yum_repositories setprop base status enabled
install_parts.sh (end):
#/sbin/e-smith/db yum_repositories setprop base status disabled

Is it OK, Raymondw ?

The problem that I can't resolve is that the installation is done with yum, i.e. :
# yum -y install asterisk

How can we be sure that the base and/or the ate repository will maintain the 'good' version of the binaries we need for SME7 ?
Won't it be more sure to use the old-style 'rpm -uvH' install, specifying the place and version of the file we need ?
I'm wondering and thinking about copying the 'good' version to our server.
...

BTW, we have created a new page for sme stuff :
sme.firewall-services.com
Take a moment to have a look at the new version of SME7admin, entirely re-coded by the original author, Landry, really amazing for the poor sysadmin we are.


For the moment, I have three customer's SME servers that are using Asterisk@Home for SME7 but I'm getting lot of difficulties to find the good VoIP service provider.
We use BroadVoice & Wengo trunks but it's not giving us the services we are looking for.
BroadVoice is ok to phone to US & Canada but we can't use it for calling to France (allways busy) ...

Did you get more success with other services providers ?
Please advise here and don't hesitate to detail your trunks configurations.
Did anyone tested 'Annatel' services (http://www.annatel.net/) ?

Thanks again to all of you.

RV.
Title: SME 7pre3 Asterisk
Post by: ATMLogic on February 22, 2006, 06:54:44 PM
Ok... so... If I am understanding this correctly... this should work on a clean SME 7.pre3 install, with a Digium Card (2fxo, 2fxs), just download the new tar file from 'ftp://anonymous@firewall-services.com/Asterisk/A4SME7.tar.gz'

run 'tar zxvf A4SME.tar.gz'

then sh install.sh and hold onto the cable modem and wait?

?  Also, if I have installed, uninstalled, then reinstalled, then uninstalled...  should I try again, or kill the system and restart... so far everything works just fine, however I have Zap errors, and Asterisk does not start (but I have the panel etc)

I do have a dedicated Asterisk@home thats ... working perfectly, but a SME with Asterisk would be just WAY too kewl to pass up  :)
Title: Asterisk on SME7 (me again)
Post by: raymondw on February 22, 2006, 11:20:37 PM
@ATMLogic
I allways take a fresh machine to test with.
For me it is simple as I just copy the VMware harddisk back ;-)

@RvLardin
The lines are correct.
I copied the whole script to the site so nobody could do a wrong copy paste ;-)

@someoneelsewhowantstoknow
I'm busy with a 1.2.4 upgrade, so far so good....
I will post a new/my script when it installs without problems, atm i've got a couple :-(
Title: SME Script for A@H 2.6
Post by: xboxer21 on March 01, 2006, 05:36:26 PM
There is an A@H SME script now in the new A@H 2.6 release.
Will install it and post my results later today.

Thanks
Title: Error during installtion
Post by: xboxer21 on March 01, 2006, 11:05:22 PM
I tried installing A@H using the install_sme.sh script on a freshly installed SME server, but I had a lot of errors. I will have to go through the install logs to see what went wrong.
I noticed that the script installs dev tools, for which it needs to enable certain yum repos. The script did not enable the repositories sucessfully, therefore i manually enabled the repos and rerun the script. I still wasn't able to start asterisk after installation.
Has anyone tried installing it???
Title: Asterisk on SME7 (me again)
Post by: JonB on March 01, 2006, 11:23:14 PM
I noticed yesterday that A@H 2.6 has SME7 install scripts. I was planning on having a go at installing it today.

Jon
Title: Asterisk on SME7 (me again)
Post by: jazbokes on March 02, 2006, 01:13:00 AM
to enable yum repo..  add --enablerepo=xxx
#yum --enablerepo=base --enablerepo=updates -y install xxxx xxxx
Title: What is the user name & password for Asterisk on SME7
Post by: fixit on March 02, 2006, 10:36:55 AM
I recently downloaded Asterisk (A4SME7.tar.gz) from http://firewall-services.com

The installation went good, but I have 1 problem, and that is with the user name & password.

What is it????

If you could supply me with a password & user name that would be great

Thanks, Russell
Title: Re: What is the user name & password for Asterisk on SME
Post by: raymondw on March 02, 2006, 02:16:08 PM
Quote from: "fixit"
I recently downloaded Asterisk (A4SME7.tar.gz) from http://firewall-services.com

The installation went good, but I have 1 problem, and that is with the user name & password.

What is it????

If you could supply me with a password & user name that would be great

Thanks, Russell


The same as your SME login....
user admin : admin
passwd : yoursmepassword

What user did you try?
Title: Asterisk on SME7 (me again)
Post by: Tib on March 10, 2006, 12:52:39 PM
Something for others to try ...

I loaded the asterisk ver off firewall-services on my machine ... ver 2.0b4 then I found that asterisk@home has an sme_install.sh in it now ... so I used it to upgrade the install form firewall-services and it workes ... mine is now ver2.6 and all pages still work as they should.

I still need to do some more testing but all looks fine so far ... maybe someone else would like to try it out ... on a test server only ... and see if I am correct.

Regards,

Tib
Title: Asterisk@home 2.7 on SME
Post by: RvLardin on March 29, 2006, 12:24:24 PM
Tib said :
Quote

I loaded the asterisk ver off firewall-services on my machine ... ver 2.0b4 then I found that asterisk@home has an sme_install.sh in it now ... so I used it to upgrade the install form firewall-services and it workes ... mine is now ver2.6 and all pages still work as they should.


Thanks a lot, Tib for this tweak... that I just discover  :hammer:
It's really a good news to see that there's a sme_install script in the last A@Home version, thks to them :pint:
We are on the way to update our version, it's really cool to hear this good news.

The installation of the dev-tools is not a good thing on prod's servers, due to security issues, but it may be a good thing to use it to compile the needed files and then put the compiled files on our site for D/L.

We are also looking in the best way to better integrate SugarCRM in SME, and, if *very* lucky, using the sme LDAP for authentification and configuration of the extensions.
If anyone could pry ...
:)

BTW, we still have pbs to find good VoIp-to-PSTN providers, it seems that there is a new category : DID providers. Any returns ?

RV.
NB : Could the contrib's site admin switch this thread to SME7-contribs forum ?
THX.
Title: Asterisk on SME7 (me again)
Post by: kangkc on March 30, 2006, 11:56:51 AM
I have tried to install  AAH 2.7 on SME 7 RC1 but failed. I suspect it's due to Yum repository.

How do I do the modification to allow Yum install/update for AAH installation?

Some one mentioned about doing this:
to enable yum repo.. add --enablerepo=xxx
#yum --enablerepo=base --enablerepo=updates -y install xxxx xxxx

Does that mean I have to enable all the packages in AAH?
Title: Asterisk on SME7 (me again)
Post by: RvLardin on March 30, 2006, 12:05:52 PM
kangkc wrote :
Quote

I have tried to install AAH 2.7 on SME 7 RC1 but failed

Did you respect the Tib's procedure/tweak :
1) install A@H4SME from our site (sme.firewall-services.com)
2) Donwload & expand the A@H 2.7 and run the sme_install script ?
Title: Asterisk on SME7 (me again)
Post by: kangkc on March 30, 2006, 02:02:57 PM
That's what I did. It's a fresh SME7 RC1 installation without any contribs or addon.

Install A4SME7, upon verifying that Asterisk is running, download 2.7 and run install_sme.sh

At the end of the installation and reboot, Asterisk failed to start.

I may just try 2.6 and see how it goes.
Title: Asterisk on SME7 (me again)
Post by: kangkc on March 30, 2006, 03:29:41 PM
Just tried 2.6, same result as 2.7.

Tib, anything I must change or do to get the install_SME.sh working after successful installtion of A4SME7 ? Things like Software Installer options, or install script?

It's a fresh SME7 RC1 installation fresh from the oven.
Title: Asterisk on SME7 (me again)
Post by: Tib on March 31, 2006, 05:34:45 AM
Hi kangkc,
You have to enable all the yum update sites described in the firewall-services.com setup ... install it then once you check everything out  enable all the yum update sites in the asterisk help file then install that one.

I haven't got it installed on my system any longer but I will try and install it onto my test server over the weekend.

just remember every time you re-boot your server the yum repositories revert back to default ... as they should.

Read the instructions from the asterisk site ... if you down load the zip version and unzip it you will find it in there ... I can't remember where exactly but it's there.

When I get home from work I will have a look.

Regards,

Tib
Title: Asterisk on SME7 (me again)
Post by: Tib on April 02, 2006, 01:19:32 PM
Hello,

Haven't had a chance to load it up on my test machine yet ... but one thing comes to mind.

did you create an aah_load dir under /var and untar all the files into that dir.

[edit]

I just checked one of the notes files ... you have to make a dir as I stated above ... copy the file to that dir and then do ...  tar xvfz asteriskathome-2.7.tar.gz ... then sh install_sme.sh

[edit]

that part is a must I think ... I remember reading it in the howto install part.

I will try to load it on soon.

Regards,

Tib
Title: Asterisk on SME7 (me again)
Post by: Tib on April 04, 2006, 02:57:31 AM
kangkc

Check this tread out ... someone has figured out the setp for asterisk.

http://forums.contribs.org/index.php?topic=31446.0

So now you don't have to load on A4SME7 ... just load on the latest asterisk.

I'll have to test that installation out on my test server as well.

Regards,

Tib
Title: Asterisk on SME7 (me again)
Post by: kangkc on April 06, 2006, 03:32:15 AM
Hi Tib,

Any luck on your end.

Doesn't seem too good here. I have tried 2.8beta1, have a few errors on FOP and Maintenance Screen. It's was lat night so didn't look at the install log to find out the cause.

Tried 2.7 as well and Asterisk doesn't come up.

I guess I may spend the weekend going through the install log and solve the problem one at a time.

Or I may just use Selintra rpms which works pretty well for a basic VoIP setup.
Title: Asterisk on SME7 (me again)
Post by: Tib on April 09, 2006, 02:48:23 PM
kangkc

Sorry I haven't had time to re try this install ... I'll have to re-load SME7 and then try the latest setup ... some one has already modified the script to suit the SME7 a bit better

http://forums.contribs.org/index.php?topic=31446.0

Might want to try that one as well.

I'm using the Sail one for my home use.

Regards,

Tib
Title: A@H on SME
Post by: RvLardin on April 11, 2006, 09:33:08 AM
I suggest that we move from this forum to the "SME7-contribs", for this thread.
Let's continue on the discussion under :
http://forums.contribs.org/index.php?topic=31446.0

A+,
RV.