[asterisk-users] Beggining asterisk
A J Stiles
asterisk_list at earthshod.co.uk
Sun Sep 4 06:19:00 CDT 2011
On Saturday 03 September 2011, Esteban Cacavelos wrote:
> Hi all, i am beggining on asterisk and i would like to run my asterisk on
> Ubuntu server 10.04 + asterisk 1.8.6.0 + dahdi
>
> I have one tdm400p card with one fxo module for testing. I have connected
> the pstn line to the fxo port.
>
> I was looking for documentation and i found the official book, but it
> doesn't explain anything about Dahdi.
>
>
> Can anyone guide me to achieve a succesfull installation ?.
If you had the card already installed when you built DAHDI, then it should
already have generated you a plausible configuration file.
I have a TDM410P with two FXO and two FXS interfaces. I've attached my
/etc/asterisk/chan_dahdi.conf and /etc/dahdi/system.conf to give you a
starting point. You will have to remove or comment lines that don't apply to
your installation, and maybe change the country and the method of getting
caller ID.
You dial out using something like this in your dialplan:
exten => _XXXXX.,1,Dial(DAHDI/g1/${EXTEN})
exten => _XXXXX.,2,Hangup()
This will send any number of 5 digits or more via the PSTN.
Incoming calls will arrive in the context you specified in chan_dahdi.conf, at
the "s" extension (here, from-pstn).
--
AJS
Answers come *after* questions.
-------------- next part --------------
[global]
language=en
usecallerid=yes
cidsignalling=v23 ; Added for UK CLI detection
cidstart=polarity ; Added for UK CLI detection
[channels]
cidsignalling=v23
cidstart=polarity
callerid = asreceived
progzone=uk
tonezone=4
; Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER)
;;; line="1 WCTDM/0/0 FXSKS (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-pstn
channel => 1
;;; line="2 WCTDM/0/1 FXSKS (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-pstn
channel => 2
;;; line="3 WCTDM/0/2 FXOKS (SWEC: MG2)"
signalling=fxo_ks
callerid="Channel 3" <4003>
mailbox=4003
group=5
context=from-internal
channel => 3
;;; line="4 WCTDM/0/3 FXOKS (SWEC: MG2)"
signalling=fxo_ks
callerid="Channel 4" <4004>
mailbox=4004
group=5
context=from-internal
channel => 4
-------------- next part --------------
# Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER)
fxsks=1
echocanceller=mg2,1
fxsks=2
echocanceller=mg2,2
fxoks=3
echocanceller=mg2,3
fxoks=4
echocanceller=mg2,4
# Global data
loadzone = uk
defaultzone = uk
More information about the asterisk-users
mailing list