Koozali.org formerly Contribs.org

Asterisk on SME7

Offline Franco

  • *
  • 1,171
    • http://contribs.org
Asterisk on SME7
« Reply #60 on: October 10, 2005, 07:25:24 AM »
Quote from: "jester"
I've heard/read a view times that A@H has some security issues due to AMP.
Has anyone considered just installing Asterisk and using IPManager and
IPSwitchBoard (http://ipmanager.thorben.dk/) from a WinDoze-PC ?!

Regards,
Jester.


This is great @jester!!!
It's not yet perfect and lacks database support, but for basic configuration It makes it very easy!

Thanks,

Offline arne

  • ****
  • 1,116
Asterisk on SME7
« Reply #61 on: October 16, 2005, 02:05:31 AM »
Just as an experiment, I tried to rename the two main configuration files (that AMP is making) and then to try to edit some easy configuration by hand.

My idea were just, if there were som "more easy and light" Asterisk installation available, rpm based or whatever, without all that owerhead of configuration things that is in Asterisk@home, possibly such a installation could be fitted into the sme server without to much "noise", and then the configuration could be some more "easy framework" edited by hand.

I just tried some testing on the Asterisk@home with these two files, setting up one external telephone line and 3 internal extensions. The 3 internal extensions can call each other. When a call is received from the outside all the telephones are ringing.

Have not been testing to much, but I think it works at least "by part".


sip.conf

[general]
port = 5060
bindaddr = 0.0.0.0
context = sip_guest
srvlookup = yes
language = no

register=>20202020:123456@213.160.242.135/20202020

[400]
accountcode=400
callerid = "navn" <400>
type = friend
host = dynamic  
username = 400
secret = 1234  
context = fra_40X
dtfmode = rfc2833

[401]
accountcode=401
callerid = "navn" <401>
type = friend
host = dynamic  
username = 401
secret = 1234  
context = fra_40X
dtfmode = rfc2833

[402]
accountcode=402
callerid = "navn" <402>
type = friend
host = dynamic  
username = 402
secret = 1234  
context = fra_40X
dtfmode = rfc2833

 
[ip24_utgaaende]
type=friend
secret=password
username=20202020
host=213.160.242.135
fromuser=20202020
insecure=very
fromdomain=213.160.242.135  
dtmfmode=rfc2833  

[ip24_inngaaende]  
type=peer
host=213.160.242.135
insecure=very
canreinvite=no
context=fra_ip24
dtmfmode=inband  
disallow=all
allow=alaw



extensions.conf

[fra_ip24]
exten => 52907527,1,Dial(SIP/400&SIP/401&SIP/402,,)  

[fra_40X]
exten => 400,1,Dial(SIP/400,1,)
exten => 401,1,Dial(SIP/401,1,)
exten => 402,1,Dial(SIP/402,1,)
exten => _XXXX./400,1,Dial(SIP/${EXTEN}@ip24_utgaaende,,)  


By the way, made with some help from some other norwegian discussion forum.


Doea anyone know some "small and easy Asterisk variant" with "manual configuration" that eventually can be fitted into the SME server without to much trouble. Does it for instance exist a Centos 4.1 variant ??

Such an "easy installation" might not be able to do all the things that Asterisk@home are able to, but it might be able to do some of the basic things about ip-telephony ? With some "premade" configuration files that should be developed further on, it should be able to do some basicc things.


Best reg Arne.
......

Offline arne

  • ****
  • 1,116
Asterisk on SME7
« Reply #62 on: October 16, 2005, 02:13:36 AM »
"Does it for instance exist a Centos 4.1 variant ??"  .. Well I did not think about the Asterisk@home this time ..
......

Offline arne

  • ****
  • 1,116
Asterisk on SME7
« Reply #63 on: October 16, 2005, 02:22:22 AM »
Could this be such a "easy one" maintaning some basic functionality afer some manual configuration ???

http://dag.wieers.com/packages/asterisk/

Anybody who knows ??
......

Offline Franco

  • *
  • 1,171
    • http://contribs.org
Asterisk on SME7
« Reply #64 on: October 16, 2005, 05:26:36 AM »
oh no,
if you want that way look for either Duncan's packages & how-to (CVS and RPM), or Dungog's rpm. If you're talking 7B, then yum will do.

Offline arne

  • ****
  • 1,116
Asterisk on SME7
« Reply #65 on: October 16, 2005, 12:00:49 PM »
OK. Yum will do .. I will try that.

The problem with the "Asterisk@home into sme server" modification is that it don't give you the functionality of Asterisk@home and the SME server. It still seem to leave the system in a rather unstable and buggy condition. (That might not be a problem for an "experimental homeserver")

The interesting thing, as I would see it, vere if it were possible to collect some of the functionality of the Asterisk server, while still keeping ordinary functions and ordinary stability for the SME sever itself.
......

Offline arne

  • ****
  • 1,116
Asterisk on SME7
« Reply #66 on: October 16, 2005, 12:11:12 PM »
"Duncan's packages & how-to (CVS and RPM), or Dungog's rpm."

Do you have a link ? Would be interesting to take a look as these as well.
......

Offline Franco

  • *
  • 1,171
    • http://contribs.org
Asterisk on SME7
« Reply #67 on: October 16, 2005, 09:00:56 PM »
http://mirror.contribs.org/smeserver/contribs/

Duncan=dthomas

These will be for 6 and 6.5. Dungog sells the interface that will modify Asterisk like AMP does.

Offline arne

  • ****
  • 1,116
Asterisk on SME7
« Reply #68 on: October 17, 2005, 12:19:47 AM »
Thanks. I tried the dungog variant. It did install, but I wer not able to get it started. (Tried different config but it just crached every time.)

I also tried the dthomas variant, but it did not install because of C3 processor on the PC.

The dthomas variant looks promicing so I will try it on another P3 tomorrow.
......

cyr

Asterisk on SME7
« Reply #69 on: October 17, 2005, 11:27:21 AM »
Hi,

Sorry for my long silence, but I tried to make a contrib for SME 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.

Offline arne

  • ****
  • 1,116
Asterisk on SME7
« Reply #70 on: October 18, 2005, 01:08:13 AM »
I have now made a test installation of actually all of those variants that is mentioned above, inkluding the last two rpm and sourcecode based variants.

For the testing I have been using my rateher old "Linux test boxes" 1. P III/700/512 laptob 2. AMD K6-II/450/512 3. C3/1000/512 4. Duron 1200/512 (Also have some newer hardware, if required.)

I were not able to make one single reliable and stable installation for any of the available asterisk variants for the SME server.

On the other hand all test installation of the Asterisk@home/Centos 3.5 bundle has been working perfectly on the P3 Laptop and the Duron 1200. It also did apear, as far as I can see it, that the it is rather easy to disable the graphical interphase of Asterisk@home and turn it over to be a manual configurated Asterisk installation.

The last two new "Asterisk for the sme server" variants were tested on the P III laptop with SME 7.0 B4 for some minuttes ago. (Have just downloaded B 5 now.)

It apeared that the rpm based version of the new asterisk installation crashed the server-manager panel. Uninstall worked but did not bring back the server-manager panel. The source code based variant did not crash anything, but the asterisk server were not able to start up.

When it comes to the problems with the two newest "Asterisk for the SME" server variants, I would guess that this might be related to the hardware that I used, a P III Laptop, that might not be the most typical server hardware. (Even thouh this runns Asterisk@home without a problem.)

If any of you get the new "asterisk for SME server" to work well enough could you please send a post and inform about hardware. (If it's a good chance for success I will find another and betther PC). A fully working SME server with a fully working Asterisk server would be really a nice "thing"  :hammer:

Until now my conclusion will have to be that if you use two PC's you can have a stable and nice working SME "multiserver" and stable and really flexible Asterisk@home telephony server. If you try to run it on the same hardwere it will not work. (Sorry, I don't like this conclusion at all. Will proceed the testing imidiately if I can see a chance for success.)

Best reg Arne.
......

cyr

Asterisk on SME7
« Reply #71 on: October 18, 2005, 10:26:05 AM »
for the crash goto http://forums.contribs.org/index.php?topic=29275.0

I'll try to make a fix today

cyr

Asterisk on SME7
« Reply #72 on: October 18, 2005, 05:54:09 PM »
bug fixed

enjoy

cyr

Asterisk on SME7
« Reply #73 on: October 18, 2005, 06:08:39 PM »
Jester said :
Quote
A@H has some security issues due to AMP


I think that is because in A@H they used a httpd user with a shell.
But it is not necessary.
In my first contrib, because of that, I used the admin user which is the httpd-admin user and I encounter a lot of trouble with amp link in the server manager.
However, in my new contrib A4SME7, I just create a user and group asterisk wich is the user of the asterisk deamon and I add the user www in the group asterisk.
I know this is just a start but I think AMP is a really good interface to manage asterisk ;-)