[Asterisk-Users] Simple Asterisk Config Help withx100p
Paulo Adriano
pauloadriano at wavelis.pt
Wed Oct 27 08:25:52 MST 2004
Hi,
After some precious help from this List I was able to put my systm t
work internally. My setup is composed:
Linux Server -SoftPhones SIP -One x100p Card (one pstn line)
I have been doing some "cut and paste" in order to have a full set of
config files working. Everything is working besides he most important
factor, receiving calls from the outside (x100t) or being able to
access the line for outgoing calls.
Can someone have a look into my config files to detect what s wrong ?
See bellow a copy of the files of my system.
Many Thanks Paulo Adriano
ZAPTEL LOADEDOct 27 15:03:19 linuxpbx kernel: Zapata Telephony
Interface Registered on major 196Oct 27 15:03:29 linuxpbx kernel: wcfxo:
DAA mode is 'FCC'Oct 27 15:03:29 linuxpbx kernel: Found a Wildcard FXO:
Wildcard X101POct 27 15:03:30 linuxpbx kernel: Registered tone zone 0
(United States / North America)
_______________________________________________________________________/etc/zaptel.conf
"this is my simple zaptel.conf file fxsks=1 #
X100Pdefaultzone=usloadzone=us
________________________________________________________________________/etc/asterisk
"this is my zapata.conf" ; X100P plugged into PSTN
signalling=fxs_ksechocancel=yesechocancelwhenbridged=yesrelaxdtmf=yesrxgain=1.5txgain=1.5immediate=nobusydetect=nocallprogress=nomusiconhold=defaultusecallerid=yescallerid=asreceivedchannel
=> 1
_____________________________________________________________________
This is my extensions.conf FILE
;=====================================================================;
Sample extensions.conf
file;=====================================================================[globals]
[extensions];; Extension for evaulating echo latency.;exten =>
10,1,Playback(demo-echotest) ; Let them know what's going onexten =>
10,2,Playback(beep) ; Let them know to startexten =>
10,3,Echo ; Do the echo testexten =>
10,4,Playback(demo-echodone) ; Let them know it's overexten =>
10,5,Hangup;; Generate a Constant 1000Hz tone at 0dbm (mu-law);exten =>
11,1,Milliwatt()exten => 11,2,Hangup;; Record a temporary GSM file;exten
=> 12,1,Wait(2)exten => 12,2,Record(/tmp/asterisk-recording:gsm)exten =>
12,3,Wait(2)exten => 12,4,Playback(/tmp/asterisk-recording)exten =>
12,5,Wait(2)exten => 12,6,Hangup;; Say Current Date and Time;exten =>
13,1,DateTime()exten => 13,2,Wait(1)exten => 13,3,DateTime()exten =>
13,4,Hangup;; Read back caller's number;exten => 14,1,Wait(1)exten =>
14,2,SayDigits(${CALLERIDNUM})exten => 14,3,Wait(1)exten =>
14,4,SayDigits(${CALLERIDNUM})exten => 14,5,Hangup;; Access
Voicemail;exten => 15,1,VoicemailMainexten => 15,2,Hangup;; Sample Zap
Phone;exten => 20,1,Dial(Zap/2,20) ; Ring for 20 secondsexten
=> 20,2,Voicemail(u${EXTEN})exten => 20,3,Hangup ;
Unavail voicemail if extension doesn't answerexten =>
20,102,Voicemail(b${EXTEN}) ; Busy Voicemail if extension is
busyexten => 20,103,Hangup;; Sample SIP Phone;exten =>
21,1,Dial(SIP/21,20) ; Ring for 20 secondsexten =>
21,2,Voicemail(u${EXTEN}) ; Unavail voicemail if extension doesn't
answerexten => 21,3,Hangup exten =>
21,102,Voicemail(b${EXTEN}) ; Busy Voicemail if extension is
busyexten => 21,103,Hangup;; Sample Zap Fax;exten =>
22,1,Dial(Zap/3,20,d) ; Ring for 20 seconds, request a low
latency callexten => 22,2,Hangup [incoming];; Incoming calls with no
destination land here (usually from the PSTN);exten => s,1,Answerexten
=> s,2,DigitTimeout(10) ; Set Digit Timeout to 10 secondsexten
=> s,3,ResponseTimeout(20) ; Set Response Timeout to 20
secondsexten => s,4,Background(vm-extension) ; Ask them for the
extension they want;; If we detect a fax tone send call to extension 22
priority 1; Not all fax machines/fax modems send a fax tone when
calling.; If we get a call from one of those then we can't detect that
it's a fax call.; This only works for devices on Zap channels (Digium
cards).;exten => fax,1,Goto(22,1);; Hang up the line if the caller
doesn't do anything;exten => t,1,Hangup;; Allow incoming calls from the
outside to dial our internal extensions;include => extensionsinclude =>
home [toll-trunks];; Outbound 1-nxx-nxx-xxxx goes via: NuFone;exten =>
_91NXXNXXXXXX,1,Dial(IAX/bobdobbs at nufone/${EXTEN:1})exten =>
_91NXXNXXXXXX,2,Congestion [local-trunks];; Outbound to nxx-xxxx goes
via: PSTN;exten => _9NXXXXXX,1,Dial(Zap/1/${EXTEN:1})exten =>
_9NXXXXXX,2,Congestion;; Outbound to nxx-nxx-xxxx are considered local
calls and go via: PSTN; In some places calls to these numbers are toll
calls and this exten should; be in [toll-access] if that is the
case..;exten => _9NXXNXXXXXX,1,Dial(Zap/1/${EXTEN:1})exten =>
_9NXXNXXXXXX,2,Congestion [local-access];; Extensions that are this
context are allowed to only call local PSTN numbers and other
extensions;ignorepat => 9 ; Continue dialtone after
dialing "9" only works on ZAPinclude => extensionsinclude =>
local-trunks ; Access to Local numbers [toll-access];;
Extensions that are this context are allowed to call local and long
distance PSTN numbers and other extensions;ignorepat => 9
; Continue dialtone after dialing "9" only works on ZAPinclude =>
local-access ; Everything local-access hasinclude => toll-trunks
; Access to toll numbers
________________________________________________________________ And
heres my SIP. CONF file
[general]port=5060bindaddr=192.168.1.20tos=lowdelaycontext=toll-trunkscontext=local-access
;
; Sample SIP Entry; This phone
is allowed to dial extensions and local phone
numbers;[21]type=friendhost=dynamic;context=homesecret=PASSWORDcallerid="Extensao
numero 21" <21>mailbox=21dtmfmode=rfc2833nat=no
Francisco Paulo Adriano
WaveLIS LDA
Mobile +351 91 870 87 98
Office + 351 21 989 83 34
Fax +351 21 989 83 35
E-mail : pauloadriano at wavelis.pt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20041027/62ff352a/attachment.htm
More information about the asterisk-users
mailing list