Whats going on?

Hi guys, i’m new to asterisk and to linux altogether so i run into alot of problems when trying to set up asterisk on a pc. I’m trying setup an ip phone at work to be used with asterisk but i think i’m not doing something right. So far i have installed Fedora Core 6 on a old Pc using a Pentium 3 with 256 ram ( i cant find the other specs, i tried using lshw but that didnt work). Asterisk 1.4 and i think i correctly installed Zaptel and i got a working tftp server to transfer my config files to my Cisco ip phone 7960 series. i have a dialtone but from there i dont know what to do. I’ve been told by my supervisor to get the basic functionalities of the ip phone. he initially wants me to make sure that the ip phone is registerer/connected to the asterisk server. But i have no way of knowing how. even tho i did the “make config” option during install of * , running this command line to start Asterisk: /etc/rc.d/init.d/asterisk start
produces this:
Starting asterisk: [ OK ]
[root@localhost ~]# /usr/sbin/safe_asterisk: line 117: 2628 Segmentation fault (core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >&/dev/${TTY} </dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal 11.
Automatically restarting Asterisk.
mpg123: no process killed
/usr/sbin/safe_asterisk: line 117: 2636 Segmentation fault (core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >&/dev/${TTY} </dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal 11.
Automatically restarting Asterisk.

it keeps restarting Asterisk and the number before Segmentation fault always changes.
I know this is alot but can someone please help me? Thanks

Were there any issues during the install?

P III w/ 256 MB RAM would be the absolute minimum for FC6. Maybe try CentOS (or RHEL) 3 or 4 or make sure you did the mimimal install and dont have any other server dameons running (like mysql, httpd etc) and double sure that no X components are running (if they would even start on a PC with those specs).

I run a test box on a P IV 1.2GHz w256MB RAM running CentOS 4 and it works fine. Asterisk is not so much the problem, it’s the fact the Linux (and all OS’s) are getting more and more power hungry.

i checked and the only daemons im running is Hal daemon, avahi-daemon and of course asterisk telephony daemon. i also upgraded my RAM to 1gig using 2 512mb cards. turns out i was using 2 128mbs (eww). After this i ran the line again and asterisk keeps auto restarting. Is there anyway i can fix this w/o changing OS?
thanks.

Can you try running the install process again and post the steps you are taking (or where your getting your steps from). I am just thinking you are missing something in the install process. Also at each step look carefully for any errors that may be happening.

i got my instructions from voip-info.org the instructions was labeled Asterisk Fedora Core 3. Even though it entails installing FC3 wouldn’t the installation process for both FC and asterisk be the same?

You’re definitely using the wrong phone to get started. Cisco phones are some of the most difficult to get working on a non-CallManager SIP system. Make sure you have a SmartNet contract for your phone as well, as you will probably need to experiment with different firmware versions. I know I had to go through about five before I found one that worked properly (buggymwi). They can be purchased from CDW pretty cheap.

The steps for installing 1.4 have changed from those of installing 1.2 (which is what that article was written for).

Follow the steps in the README file for 1.4

Also, I echo bmoraca’s comments about the Cisco phone, unless yuor in love with them and cant do without (or just purchased a whole bunch of them) then choose a different phone for Asterisk. The Cisco will work but they will be a pain. I use the Polycoms and although they dont release the latest firmware to the public (you have to get the latest firmware from an authorized reseller) they do offer support for there phones on Asterisk.

thanks ill reinstall asterisk according to 1.4 and theres nothing i can do about the Cisco phone. its a used one and its really up to my super whether or not we want to use a different company. After all I’m only a summer intern :confused: thanks

here is how i did my install… i am running on fedora core 4. it seems to have enough to run everything. I installed all the devel packages along with the webserver and PHP and MySQL… (not sure if you need MySQL or not). I did not install any X windows or graphical anything.

once the system was running I downloaded asterisk, zaptel, and the asterisk-gui into my /usr/src directory. you can use the wget function from the command line to fetch files from the web.

then:

tar zxvf  zaptel-xx.tar.gz (replace with your filename)
cd zaptel
./configure
make menuselect

in menu select you can select which modules you want to compile… dont compile in for hardware you dont have… this saves on system resources.

make
make install

that installs my zaptel. now onto asterisk

cd /usr/src
tar zxvf asterisk-1.4.9.tar.gz - change to your file name
cd asterisk-1.4.9
./configure
make menuselect

select the parts of asterisk you want compiled in… i run pretty much everything but you can take some things out like cdr if you arent using the function

make
make install
make samples

thats asterisk now onto the gui

cd /usr/src
tar zxvf asterisk-gui  change for your file name
cd atserisk-gui
./configure
make
make install
make samples

and thats pretty much it for my 1.4.4 install that a irecently took up to 1.4.9
-Christopher

i reinstalled 1.4 but i still get problems so im uninstalling 1.4 completely and i’m gonna try 1.2 maybe the non-beta will work for me. I will post what happens later. thanks

UPDATE: so i installed 1.2 and i input the cmd line again to check it and it was fine. But stupid me decided to change the asterisk config file and eversince asterisk is restarting again stating that :

Asterisk ended with exit status 1
Asterisk died with code 1
Automatically restarting Asterisk

Gah i cant believe i did that. i uninstalled then reinstalled 1.2 again and now its fine but can anyone tell what the next step. i read its configuring asterisk and thats what my super wants me to do but i dont know where to start. i’m looking at the 365 page Asterisk book but thats not helping me. apparently i need to setup the basic functions of the SIP phone but i cant make/touch the extensions.cnf and right now im too afraid to mess around with the asterisk.cnf file again. Can someon guide me without pointing to the almighty 365 page book. The book keeps telling me to config zaptel hardware but at the moment we arent interested in it. And it appears that the entire “initial configuration” chapter is based on configuring and using zaptel. maybe i read wrong. Any Suggestions? Thanks

I assume you are taliknung about the book “Asterisk: The Future of Telephony”

If so just skip past the zaptel parts (although you should get the ztdummy driver running for timing). That book is excellent, just take your time and follow the examples EXACTLY as they are presented and you will get things running.