Koozali.org: home of the SME Server

AsteriskPBX

Anonymous

AsteriskPBX
« Reply #45 on: May 19, 2004, 08:10:50 PM »
One thing i've noticed...


asterisk -r doesn't work from anywhere, even /usr/src/asterisk  .  but, if you go to /usr/src/asterisk   , then type:

./asterisk

hit enter, then type asterisk -r.  it connects like this:


Asterisk CVS-HEAD-05/19/04-20:01:14, Copyright (C) 1999-2004 Digium.
Written by Mark Spencer <markster@digium.com>
=========================================================================
Connected to Asterisk CVS-HEAD-05/19/04-20:01:14 currently running on centralserver (pid = 2923)
centralserver*CLI>



I have no idea how to get this to work all the time.  Perhaps you could create a link from /usr/src/asterisk to /usr/bin/asterisk  ??

duncan

AsteriskPBX
« Reply #46 on: May 20, 2004, 12:26:58 AM »
Ok,

Sounds like it didnt install properly. Do a 'make clean' 'make install' in the asterisk directory and see where it flakes out. It should end and say something about running 'make samples'.

cydonia

AsteriskPBX
« Reply #47 on: May 20, 2004, 07:13:44 AM »
Quote from: "duncan"
Ok,

Sounds like it didnt install properly. Do a 'make clean' 'make install' in the asterisk directory and see where it flakes out. It should end and say something about running 'make samples'.


Hmmm.  i think that fixed it:D.  I had done it before. but i did "make clean ; make install".  Weird.  Now, afterwards, when i did 'asterisk -vvvc'  I got:

Asterisk already running on /var/run/asterisk.ctl.  Use 'asterisk -r' to connect.

I havn't even done this part:

cp /usr/src/asterisk/contrib/init.d/rc.redhat.asterisk /etc/rc.d/init.d/asterisk
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S93asterisk

/sbin/e-smith/db configuration setprop asterisk status enabled
/sbin/e-smith/signal-event console-save
/sbin/reboot


I guess the links are there from the previous times i tried.  Will reboot and see if it works.

Thanks alot Duncan.

cydonia

AsteriskPBX
« Reply #48 on: May 20, 2004, 07:33:07 AM »
Ok,

After reboot, "asterisk -r" doesn't work.  But "asterisk -vvvvc" works from anywhere in my dir structure.

I'm thinking its a problem to do with this part of my install process:

cp /usr/src/asterisk/contrib/init.d/rc.redhat.asterisk /etc/rc.d/init.d/asterisk
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S93asterisk

/sbin/e-smith/db configuration setprop asterisk status enabled
/sbin/e-smith/signal-event console-save
/sbin/reboot



Is yours installed on a 6.0.1 box?  Maybe the structure is slightly different for me(on a 6.0.1 box).  
EDIT:
"This is for 5.6 – you may need to adjust things if you are running something else"

Ok, so there is my problem, just gotta work out the correct way to add asterisk to the start up.  If i wasn't such a newb with linux i'm sure the solution would be clear to me :P.

Cheers and thanks for all the help.  I will have to keep tinkering around.  Anybody out there installed Asterisk on a 6.0.1 box that can offer some advise?

duncan

AsteriskPBX
« Reply #49 on: May 20, 2004, 12:34:58 PM »
I am now running on 6.0.1. Pretty well followed the howto word for word. After looking at my setup - I reckon the commands should work as is.

Watch it during the boot sequence (near the end) to see what happens.

cydonia

AsteriskPBX
« Reply #50 on: May 20, 2004, 02:48:45 PM »
Quote from: "duncan"

Watch it during the boot sequence (near the end) to see what happens.


Thanks for the tip, getting closer:).

It says:
Starting Asterisk:          [DISABLED]


SO all i have to do is enable it. How do i do that?

Cheers.
Tristan

btw. have you looked into www.atp.org.au?   they lok quite good.

organetic

Makefile:73: No such file or directory
« Reply #51 on: May 21, 2004, 07:44:58 PM »
Even following the guide for 5.2 step by step I'm still having the same problem:

Makefile:73: No such file or directory.

What about a step by step guide on the compilation for the latest asterisk CVS and SME 6.0.1?

Best regards to all contributors,
Organetic

cydonia

AsteriskPBX
« Reply #52 on: May 21, 2004, 11:56:21 PM »
Well, i havn't figured out how to get asterisk to start on boot yet(havn't really tried:P).  

But, i did install X-Lite and make my first call using the asterisk server:D.  Called Digium HQ.  something like:
-------
Tristan:  Hey, sorry i've just installed asterisk i was just testing it.

Digium:  no problems.  it seems to work.  have a good day.

-------


This is great.  only voice chat i've ever done before was with msn.  cant wait to set this up more, with voicemail etc.

duncan

AsteriskPBX
« Reply #53 on: May 24, 2004, 01:29:14 PM »
You could remove the /etc/rc.d/rc7.d/S93asterisk link and simply link to the program ie

ln -s /etc/rc.d/init.d/asterisk /etc/rc.d/rc7.d/S93asterisk

I like doing it the other way as it easy to enable/disable the service.
I have bought digium gear from atp. No problems.
Organetic - sorry, cant think of a reason for your problem.

Regards Duncan

organetic

Dev-tools versions for Asterisk
« Reply #54 on: May 26, 2004, 02:34:06 AM »
Could anyone please tell me if any of these dev-tools is wrong or inadequate for the compilation of the latest asterisk CVS on SME 6.0.1-01?

binutils-2.11.93.0.2-11.i386.rpm
bison-1.35-1.i386.rpm
cpp-2.96-113.i386.rpm
gcc-2.96-113.i386.rpm
glibc-devel-2.2.5-44.i386.rpm
glibc-kernheaders-2.4-7.16.i386.rpm
kernel-source-2.4.20-18.7.i386.rpm
libogg-1.0rc3-1.i386.rpm
libvorbis-1.0rc3-1.i386.rpm
mpg123-0.59q-1.i386.rpm
ncurses-devel-5.2-26.i386.rpm
openssl-devel-0.9.6b-35.7.i386.rpm
readline-4.2a-4.i386.rpm
readline-devel-4.2a-4.i386.rpm
sox-12.17.3-4.i386.rpm

Sorry to bother you again.

Best regards,
Organetic

cydonia

AsteriskPBX
« Reply #55 on: May 27, 2004, 09:09:02 AM »
Quote from: "duncan"
You could remove the /etc/rc.d/rc7.d/S93asterisk link and simply link to the program ie

ln -s /etc/rc.d/init.d/asterisk /etc/rc.d/rc7.d/S93asterisk

Regards Duncan



Great. that did it Duncan!  Dont know why the other way wouldn't work on mine...:S.

Thanks alot.  Now i just gotta muck around with SIP/IAX and figure this all out.  SIP experience so far has been a bit so so...

organetic

ASTERISK compilation problem on SME 5.6
« Reply #56 on: June 01, 2004, 01:59:36 AM »
Quote from: "duncan"
ASTERISK HOWTO

This is for 5.6 – you may need to adjust things if you are running something else
My server is in server only mode and is protected by another firewall
The following software represents a security risk – so remove the compiler stuff when done (This is entirely up to you)
If you want to keep copies of the software just download each item and run rpm –ivh *.rpm from the directory
h.323 is not included in this howto – use sip.

rpm -ivh http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/dev-tools/SME56/cpp-2.96-112.i386.rpm
rpm -ivh ftp://at.rpmfind.net/linux/redhat.com/dist/linux/updates/7.2/en/os/i386/kernel-headers-2.4.9-34.i386.rpm
rpm -ivh http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/dev-tools/SME56/glibc-devel-2.2.5-40.i386.rpm
rpm -ivh http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/dev-tools/SME56/gcc-2.96-112.i386.rpm
rpm -ivh http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/dev-tools/SME56/ncurses-devel-5.2-26.i386.rpm
rpm -ivh ftp://rpmfind.net/linux/redhat/7.3/en/os/i386/RedHat/RPMS/bison-1.35-1.i386.rpm
rpm -ivh http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/dev-tools/SME56/openssl-devel-0.9.6b-28.i386.rpm

GETTING THE SOFTWARE

Mpg123 for music on hold (optional)

cd /usr/src
wget http://www.mpg123.de/mpg123/mpg123-0.59r.tar.gz
tar -zxvf mpg123-0.59r.tar.gz
cd  mpg123-0.59r
make linux
make install

Asteriskpbx

cd /usr/src
export CVSROOT=:pserver:anoncvs@cvs.digium.com:/usr/cvsroot
cvs login          

(The password is anoncvs)

cvs checkout zaptel libpri asterisk

(You will most likely need the kernel sources if you want to install zaptel and libpri. This stuff is for digiums cards and is not necessary if you are only going to be running Sip.

cd asterisk

make clean ; make install

(you will see some errors – don’t worry too much about them – they are generally about X – and codecs you dont have etc )

make samples

(Lets test to see if it starts ok)
asterisk –vvvvc

(To stop type in - stop now)

SET IT TO START AT BOOT TIME

cp /usr/src/asterisk/contrib/init.d/rc.redhat.asterisk /etc/rc.d/init.d/asterisk
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S93asterisk

/sbin/e-smith/db configuration setprop asterisk status enabled
/sbin/e-smith/signal-event console-save
/sbin/reboot


You should be able to connect to the server by typing asterisk –r

Config files are in  /etc/asterisk
 

Most of this stuff was ripped off from http://www.automated.it/guidetoasterisk.htm so credits go to Andy Powell
A good place to start is http://www.voip-info.org/wiki-Asterisk as well as the above link.
A nice free sip client can be got from here
http://www.xten.com/download/download.php?A=D&brand=x-lite&F1=2910514834

Feel free to add or flame as you see fit.

Regards Duncan



I just did a fresh install of SME 5.6 and followed the guide in every detail. The result when I try to compile asterisk v1.0 stable is
"... bad interpreter: Permission denied"
"make: *** [.depend] Error 126

I'm frying my brains trying to install asterisk on SME since last month...

Best regards.

duncan

AsteriskPBX
« Reply #57 on: June 01, 2004, 02:19:41 AM »
If you like - I can build an RPM over the next couple of days. It would only be suitable for Pentium II and up - Not for C3, AMD, 386 etc.

It would also be built on 6.0.1

Regards Duncan

jacobsweb

AsteriskPBX
« Reply #58 on: June 27, 2004, 07:10:31 AM »
Quote

If you like - I can build an RPM over the next couple of days. It would only be suitable for Pentium II and up - Not for C3, AMD, 386 etc.

It would also be built on 6.0.1

Regards Duncan


that would be great if you could

duncan

AsteriskPBX
« Reply #59 on: June 27, 2004, 08:23:04 AM »
Its done. I just want to test it for a bit before letting it loose.