|
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 LOADED Oct 27 15:03:19 linuxpbx kernel: Zapata Telephony Interface Registered on major 196 Oct 27 15:03:29 linuxpbx kernel: wcfxo: DAA mode is 'FCC' Oct 27 15:03:29 linuxpbx kernel: Found a Wildcard FXO: Wildcard X101P Oct 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 # X100P defaultzone=us loadzone=us ________________________________________________________________________ /etc/asterisk �this is my zapata.conf� ; X100P plugged into PSTN signalling=fxs_ks echocancel=yes echocancelwhenbridged=yes relaxdtmf=yes rxgain=1.5 txgain=1.5 immediate=no busydetect=no callprogress=no musiconhold=default usecallerid=yes callerid=asreceived channel => 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 on exten => 10,2,Playback(beep) ; Let them know to start exten => 10,3,Echo ; Do the echo test exten => 10,4,Playback(demo-echodone) ; Let them know it's over exten => 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,VoicemailMain exten => 15,2,Hangup ; ; Sample Zap Phone ; exten => 20,1,Dial(Zap/2,20) ; Ring for 20 seconds exten => 20,2,Voicemail(u${EXTEN}) exten => 20,3,Hangup ; Unavail voicemail if extension doesn't answer exten => 20,102,Voicemail(b${EXTEN}) ; Busy Voicemail if extension is busy exten => 20,103,Hangup ; ; Sample SIP Phone ; exten => 21,1,Dial(SIP/21,20) ; Ring for 20 seconds exten => 21,2,Voicemail(u${EXTEN}) ; Unavail voicemail if extension doesn't answer exten => 21,3,Hangup exten => 21,102,Voicemail(b${EXTEN}) ; Busy Voicemail if extension is busy exten => 21,103,Hangup ; ; Sample Zap Fax ; exten => 22,1,Dial(Zap/3,20,d) ; Ring for 20 seconds, request a low latency call exten => 22,2,Hangup [incoming] ; ; Incoming calls with no destination land here (usually from the PSTN) ; exten => s,1,Answer exten => s,2,DigitTimeout(10) ; Set Digit Timeout to 10 seconds exten => s,3,ResponseTimeout(20) ; Set Response Timeout to 20 seconds exten => 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 => extensions include => home [toll-trunks] ; ; Outbound 1-nxx-nxx-xxxx goes via: NuFone ; exten => _91NXXNXXXXXX,1,Dial(IAX/[EMAIL PROTECTED]/${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 ZAP include => extensions include => 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 ZAP include => local-access ; Everything local-access has include => toll-trunks ; Access to toll numbers ________________________________________________________________ And heres my SIP. CONF file [general] port=5060 bindaddr=192.168.1.20 tos=lowdelay context=toll-trunks context=local-access ; ; Sample SIP Entry ; This phone is allowed to dial extensions and local phone numbers ; [21] type=friend host=dynamic ;context=home secret=PASSWORD callerid="Extensao numero 21" <21> mailbox=21 dtmfmode=rfc2833 nat=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 : [EMAIL PROTECTED] |
_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
