LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-23-2009, 09:54 AM   #1
myasir_genious
Member
 
Registered: May 2009
Posts: 31

Rep: Reputation: 15
How to configure Asterisks on Fedora 10


I have installed the Asterisks by using yum in fedora 10. can someone tell me how can i set it up to use with two SIP phones. Actually i didnt have installed or configured the Asterisks before. I have Digium Analog card for Asterisks. Please tell me the detailed steps. Thank you
 
Old 11-23-2009, 01:35 PM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,272

Rep: Reputation: 148Reputation: 148
I hope this will help you to set-up asterisk because this working configuration and dialplan
vim /etc/zaptel.conf
Quote:
;here we are using Digium AXE800p it has 4fxo and 4fxs
;assign fxo ports to fxsks module and fxo ports to fxoks module
;so configure this according to the card and zone
fxsks=1,2,3,4
fxoks=5,6,7,8
loadzone = us
defaultzone=us

vim /etc/asterisk/zapata.conf
Quote:
;;FXS Modules
Group=2
echocancel=yes
echocancelwhenbridged=yes
signalling=fxo_ks
context=internal
channel=5,6,7,8

;;FXO Modules
Group=1
echocancel=yes
echocancelwhenbridged=yes
signalling=fxs_ks
context=internal
channel=1,2,3,4

vim /etc/asterisk/sip.conf
Quote:
[7153]
disallow=all
allow=ulaw
allow=alaw
allow=gsm
;allow=h263
;allow=h263p
;allow=h264
type=friend
username=7153
secret=kirukaa@1
host=dynamic
callerid=7153
context=internal ; internal context group allowed for outbound calls, sip calls and local pbx extensions
nat=yes ; check for default no
reinvite=no
caninvite=no
fromdomain=domain.com
vim /etc/asterisk/extensions.conf
Quote:
[internal]
include => pstn_outbound
include => pbx_outbound
include => sipusers_outbound

[sipusers_outbound]
exten => _0XXXX,1,Wait(1) ; Wait a second, just for fun
exten => _0XXXX,n,Answer ; Answer the line
exten => _0XXXX,n,Set(TIMEOUT(digit)=5) ; Set Digit Timeout to 5 seconds
exten => _0XXXX,n,Set(TIMEOUT(response)=10)
;exten => _0XXXX,n,Set(passkey=${DB(auth_user/${CALLERID(num)})})
;exten => _0XXXX,n,Authenticate(${passkey}|aj) ; Set Digit Timeout to 5 seconds
exten => _0XXXX,n,Dial(SIP/${EXTEN:1});


exten => _XXXX,1,Wait(1) ; Wait a second, just for fun
exten => _XXXX,n,Answer ; Answer the line
exten => _XXXX,n,Set(TIMEOUT(digit)=5) ; Set Digit Timeout to 5 seconds
exten => _XXXX,n,Set(TIMEOUT(response)=10)
;exten => _0XXXX,n,Set(passkey=${DB(auth_user/${CALLERID(num)})})
;exten => _0XXXX,n,Authenticate(${passkey}|aj) ; Set Digit Timeout to 5 seconds
exten => _XXXX,n,Dial(SIP/${EXTEN});


[pstn_outbound]

;Any out going number
exten => _9.,1,Wait(1) ; Wait a second, just for fun
exten => _9.,n,Answer ; Answer the line
exten => _9.,n,Set(TIMEOUT(digit)=5) ; Set Digit Timeout to 5 seconds
exten => _9.,n,Set(TIMEOUT(response)=10)
;exten => _.,n,Set(passkey=${DB(auth_user/${CALLERID(num)})})
;exten => _9.,n,Authenticate(${passkey}|aj) ; Set Digit Timeout to 5 seconds
;exten => _9.,n,ChanIsAvail(ZAP/g1);
;exten => _9.,n,Dial(${CUT(AVAILCHAN||1)}/${EXTEN:1});
exten => _9.,n,Dial(Zap/g1/${EXTEN:1});

exten => _9.,1,Playback(demo-nogo);
exten => _9.,n,hangup;

;exten => _XXX,1,Playback(demo-nogo);
;exten => _XXX,n,hangup;

exten => _0,1,Playback(demo-nogo);
exten => _0,n,hangup;


[pbx_outbound]
;PBX
exten => _XXX,1,Wait(1) ; Wait a second, just for fun
exten => _XXX,n,Answer ; Answer the line
exten => _XXX,n,Set(TIMEOUT(digit)=5) ; Set Digit Timeout to 5 seconds
exten => _XXX,n,Set(TIMEOUT(response)=10)
;exten => _.,n,Set(passkey=${DB(auth_user/${CALLERID(num)})})
;exten => _XXX,n,Authenticate(${passkey}|aj) ; Set Digit Timeout to 5 seconds
;exten => _XXX,n,ChanIsAvail(ZAP/g2);
;exten => _XXX,n,Dial(${CUT(AVAILCHAN||1)}/${EXTEN});
exten => _XXX,n,Set(TIMEOUT(AUTOHANGUP)=3600)
exten => _XXX,n,Dial(Zap/g1/${EXTEN});

Last edited by kirukan; 11-23-2009 at 01:40 PM.
 
  


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
secure RTP implementation for asterisks bhrugu Linux - Security 2 04-01-2014 06:25 AM
pointers names with one and two asterisks? hubabuba Programming 3 03-19-2006 05:00 PM
font + asterisks password childish Linux - Newbie 9 06-24-2005 04:24 PM
converting string to asterisks pantera Programming 2 09-13-2004 02:27 PM
How to search for asterisks using gawk dtheorem Linux - General 1 03-05-2004 03:35 PM


All times are GMT -5. The time now is 04:09 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