LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-16-2010, 12:41 PM   #1
myasir_genious
Member
 
Registered: May 2009
Posts: 31

Rep: Reputation: 15
How to configure Asterisk without zaptel/dahdi hardware


Hello! I am using SAMSUN R-519 laptop with 4 GB RAM and 2.1 GHz dual core CPU and I intend to configure asterisk on this machine for voice conferencing with 4 other PCs. I am unable to configure asterisk. I don't have any hardware regarding voip such as Digium card. Can anyone tell me how do i should start??? Thanx in advance.

Best Regards.
Yasir
 
Old 08-16-2010, 01:56 PM   #2
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 22
I think you can just install asterisk. You don't need any dahdi or zap devices. If I bring up my asterisk server without bringing up dahdi first, it doesn't complain about anything, it just runs as a pure SIP server.

My standard asterisk install on fresh centos (5.4) goes like this, I'm 95% sure you can skip all the dahdi stuff and still have a running asterisk service

================================

yum -y install kernel-PAE-devel kernel-devel mysql-devel ncurses-devel newt-devel gcc gcc-c++ libxml2-devel php php-mysql

wget http://downloads.asterisk.org/pub/te...1.6.2.2.tar.gz
wget http://downloads.asterisk.org/pub/te...1+2.2.1.tar.gz
wget http://downloads.asterisk.org/pub/te....4.10.2.tar.gz
wget http://downloads.asterisk.org/pub/te...1.6.2.0.tar.gz

cd libpri....
make
make install

#optional
cd dahdi....
make
make install
make config

cd asterisk-addons.....
configure
make menuselect (check mysql is there)
make
make install
make samples

cp /files/asterisk-1.6.2.2/contrib/init.d/rc.redhat.asterisk /etc/init.d/asterisk
chkconfig asterisk on
service dahdi restart

#optional
dahdi_tool
dahdi_genconf

service dahdi restart
service asterisk restart

================================

just set up the sip.conf and you should be good to go.
 
Old 08-16-2010, 03:02 PM   #3
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 22
I just ran thru that setup procedure on a standard centos install with no telephony hardware, not even a modem. Just a typical office workstation - it's running asterisk right now, processing whatever SIP traffic I throw at it. Just install it, it'll work just fine.
 
Old 08-17-2010, 10:25 AM   #4
myasir_genious
Member
 
Registered: May 2009
Posts: 31

Original Poster
Rep: Reputation: 15
Wink

Thanks alot when i restart dahdi service it showed the following errors:

[root@ns1 ~]# service dahdi restart
Unloading DAHDI hardware modules: doneLoading DAHDI hardware modules:
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module dahdi not found.
wct4xxp: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module wct4xxp not found.
[FAILED]
wcte12xp: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module wcte12xp not found.
[FAILED]
wct1xxp: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module wct1xxp not found.
[FAILED]
wcte11xp: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module wcte11xp not found.
[FAILED]
wctdm24xxp: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module wctdm24xxp not found.
[FAILED]
wcfxo: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module wcfxo not found.
[FAILED]
wctdm: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module wctdm not found.
[FAILED]
wcb4xxp: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module wcb4xxp not found.
[FAILED]
wctc4xxp: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module wctc4xxp not found.
[FAILED]
xpp_usb: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module xpp_usb not found.
[FAILED]

Error: missing /dev/dahdi!


tell me what should i do now?

Last edited by myasir_genious; 08-17-2010 at 10:39 AM.
 
Old 08-17-2010, 11:25 AM   #5
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 22
Nothing, dont start dahdi. Like you said, you have no dahdi hardware. Just start asterisk, it'll use whatever it has, ie ethernet / SIP. You don't need to do the addons either, unless you want to use mysql or other non-essential features. Asterisk right out of the box is enough to run a SIP server for typical smaller VoiP setups.

Last edited by suprstar; 08-17-2010 at 11:29 AM.
 
Old 08-17-2010, 04:47 PM   #6
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 78
I don't know a whole lot about asterisk, but am curious how you would run a VoIP setup without any of the hardware it uses. IP phone? If you can just point to some type of tutorial or example configuration or something that would be helpful I'm interested
 
Old 08-18-2010, 08:28 AM   #7
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 22
The hardware asterisk would be using is the ethernet port on the server. There's a million IP phones out there, they're completely ethernet - no phone circuits whatsoever. You set their ip addresses, they download their configs via a web server, they contact the asterisk (or other sip pbx) 'phone switch' over ethernet, etc.. We use a few models of avaya 4600 series ip phones, and have a few various polycom phones lying around. And if your PC has speakers and a mic, you can set up a soft-phone - xlite, zoiper, diax, twinkle for linux users, there's a ton of those too.

Asterisk will obviously also support telephony hardware - Digium makes cards with E1/T1 ports, and FXO/FXS ports, etc. But they are not required if you don't use POTS (Plain Old Telephone Service) telephony. You can run your entire phone system over ethernet.

To connect to the outside world, you can subscribe to SIP providers instead of getting a trunk to AT&T or Ameritech or whatever your local POTS provider is.
 
Old 08-22-2010, 05:59 AM   #8
myasir_genious
Member
 
Registered: May 2009
Posts: 31

Original Poster
Rep: Reputation: 15
When i try to start asterisk with "asterisk -vvvc"
it gives the following error and does not start i have waited for hours but still it remains on loading:

chan_usbradio.c:1264 find_desc: null dev
[Aug 22 14:49:59] WARNING[29914]: chan_usbradio.c:1269 find_desc: could not find <--no-device-->

please help i am stuck with it. Thanx
 
Old 08-23-2010, 03:20 PM   #9
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 22
My usbradio.conf has one line:

[general]

and everything else is commented out. I do not use any kind of usb or radio devices, if you aren't either, and it sounds like you aren't, check this file and comment out everything except the [general] line.

If asterisk isn't started, start it with

asterisk

on the command line, that will start the service in the background and return your prompt right away. Then start a console with

asterisk -vr

Last edited by suprstar; 08-23-2010 at 03:24 PM.
 
Old 08-26-2010, 09:38 AM   #10
myasir_genious
Member
 
Registered: May 2009
Posts: 31

Original Poster
Rep: Reputation: 15
I have started the asterisk with only "asterisk" command it starts good and no error occur but there is another problem that i don't have all the commands such as reload, stop, etc. What should i do? my asterisk version is 1.6.1.18. Bundle of thanx
 
Old 08-26-2010, 09:46 AM   #11
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 22
Type

asterisk -vr

and get to an asterisk console. Once you're there, you can issue tons of asterisk commands to see what's what.

help

will show you all the available commands

help sip

will show you some SIP related commands.

help sip unregister

will show you the details of that command.

dialplan show

will show your dialplan, all the extensions your asterisk server is managing, and what they do.

Leave that console up, and try to register a SIP phone to it. You'll see that it registers or you'll see an error. Make a call, you'll see lines appear in the console relating to that.
 
Old 09-03-2010, 08:22 AM   #12
myasir_genious
Member
 
Registered: May 2009
Posts: 31

Original Poster
Rep: Reputation: 15
when i tried show dialplan command then it show the dial plan but when i wrote help sip the the following error occured

ns1*CLI> help sip
No such command 'sip'.
ns1*CLI> help sip unregister
No such command 'sip unregister'.

please help me what to do now?
 
Old 09-07-2010, 07:54 AM   #13
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 22
do:

module show like sip

in the CLI. You need

chan_sip.so Session Initiation Protocol (SIP)

in the list. Try

module reload chan_sip.so

in the CLI, if it doesn't exist, you need to get it, or re-compile asterisk with SIP support. The instructions I posted above would include SIP support, how did you install asterisk?
 
Old 09-07-2010, 07:58 AM   #14
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 22
Quote:
Originally Posted by myasir_genious View Post
I have started the asterisk with only "asterisk" command it starts good and no error occur but there is another problem that i don't have all the commands such as reload, stop, etc. What should i do? my asterisk version is 1.6.1.18. Bundle of thanx
Per the instructions I posted above:

cp /files/asterisk-1.6.2.2/contrib/init.d/rc.redhat.asterisk /etc/init.d/asterisk
chkconfig asterisk on
service dahdi restart

rc.redhat.asterisk is the init.d script that starts / stops / reloads.
 
Old 09-08-2010, 10:14 AM   #15
myasir_genious
Member
 
Registered: May 2009
Posts: 31

Original Poster
Rep: Reputation: 15
I have installed the asterisk using yum. I dont know why the asterisk is not working the module reload chan_sip.so also generates error. I dont know what to do.............
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to configur Dahdi myasir_genious Linux - Newbie 1 12-17-2009 02:58 AM
Asterisk over CentOS the module for Digium TE121 is not in the zaptel file jcardoza Linux - Software 1 10-01-2009 12:44 AM
Asterisk Hardware Questions Melted UFO Linux - Hardware 1 05-13-2007 11:12 PM
LXer: Asterisk 1.2.12 and Zaptel 1.2.9 released! LXer Syndicated Linux News 0 09-15-2006 08:54 PM
choosing hardware for asterisk procfs Linux - Software 2 03-03-2006 09:06 PM


All times are GMT -5. The time now is 07:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration