I am blessed with this user forum and able to set my Dev-PCI Digium card
working fine with the Asterisk server of mine
(i)But today i just wanted to know if someone can help me to set X-Ten
Lite to call PSTN line using my FX0
Currently , I am able to use X Lite to call another X lite user locally
(LAN)
I also has attached my setting together
Thanking you all in advance
-------------- next part --------------
{\rtf1\ansi\deff0{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit
5.41.15.1507;}\viewkind4\uc1\pard\qc\lang1033\ul\b\f0\fs24 This is My Working
setting for the TDM11B\par
\pard\ulnone\par
/etc/zaptel.conf\par
\b0\fs20 fxoks=1\par
fxsks=4\par
loadzone = us\par
defaultzone=us\par
\par
\b\fs24 /etc/asterisk/zapata.conf\par
\b0\fs20 [trunkgroups]\par
\par
[channels]\par
context=default\par
switchtype=national\par
\par
usecallerid=yes\par
hidecallerid=no\par
callwaiting=yes\par
usecallingpres=yes\par
callwaitingcallerid=yes\par
threewaycalling=yes\par
transfer=yes\par
cancallforward=yes\par
callreturn=yes\par
;echocancel=yes\par
;echocancelwhenbridged=yes\par
rxgain=0.0\par
txgain=0.0\par
group=1\par
callgroup=1\par
pickupgroup=1\par
\par
immediate=no\par
\par
echocancel=yes\par
echocancelwhenbridged=yes\par
echotraining=400\par
callerid=\par
signalling=fxo_ks \par
group=1\par
context=default\par
channel => 1\par
\par
signalling=fxs_ks\par
callerid=asreceived \par
group=2\par
context=incoming\par
channel => 4\par
\par
\b\fs24 /etc/asterisk/extensions.conf\par
\b0\fs20 [general]\par
static=yes\par
writeprotect=yes\par
\par
;[globals]\par
\par
;[iaxtel700]\par
;exten =>
_91700XXXXXXX,1,Dial(IAX2/$\{IAXINFO\}@iaxtel.com/$\{EXTEN:1\}@iaxtel)\par
\par
;[iaxprovider]\par
\par
;[trunkint]\par
;exten => _9011.,1,Dial($\{TRUNK\}/$\{EXTEN:$\{TRUNKMSD\}\})\par
;exten => _9011.,2,Congestion\par
\par
;[trunkld]\par
;exten => _91NXXNXXXXXX,1,Dial($\{TRUNK\}/$\{EXTEN:$\{TRUNKMSD\}\})\par
;exten => _91NXXNXXXXXX,2,Congestion\par
\par
;[trunklocal]\par
;exten => _9NXXXXXX,1,Dial($\{TRUNK\}/$\{EXTEN:$\{TRUNKMSD\}\})\par
;exten => _9NXXXXXX,2,Congestion\par
\par
;[trunktollfree]\par
;exten => _91800NXXXXXX,1,Dial($\{TRUNK\}/$\{EXTEN:$\{TRUNKMSD\}\})\par
;exten => _91800NXXXXXX,2,Congestion\par
;exten => _91888NXXXXXX,1,Dial($\{TRUNK\}/$\{EXTEN:$\{TRUNKMSD\}\})\par
;exten => _91888NXXXXXX,2,Congestion\par
;exten => _91877NXXXXXX,1,Dial($\{TRUNK\}/$\{EXTEN:$\{TRUNKMSD\}\})\par
;exten => _91877NXXXXXX,2,Congestion\par
;exten => _91866NXXXXXX,1,Dial($\{TRUNK\}/$\{EXTEN:$\{TRUNKMSD\}\})\par
;exten => _91866NXXXXXX,2,Congestion\par
;\par
[xlite]\par
; Catch all five digit numbers, no leading zeroes\par
exten => _[123456789]XXXX,1,NoOp("call for "$\{EXTEN\})\par
exten => _[123456789]XXXX,2,Dial(SIP/$\{EXTEN\},60,tr)\par
;exten => _[123456789]XXXX,2,Dial(SIP/spa2000,60,tr)\par
exten => _[123456789]XXXX,3,Congestion\par
;\par
;[international]\par
;ignorepat => 9\par
;include => longdistance\par
;include => trunkint\par
\par
;[longdistance]\par
;ignorepat => 9\par
;include => local\par
;include => trunkld\par
\par
[local]\par
ignorepat => 9\par
include => default\par
;include => parkedcalls\par
;include => trunklocal\par
;include => iaxtel700\par
;include => trunktollfree\par
;include => iaxprovider\par
\par
;[demo]\par
;exten => 2,2,Goto(s,6)\par
;exten => 1000,1,Goto(default,s,1)\par
;exten => 1234,2,Macro(stdexten,1234,$\{CONSOLE\})\par
;exten => 8500,1,VoicemailMain\par
;exten => 8500,2,Goto(s,6)\par
\par
\par
[default]\par
exten => 1000,1,Dial,Zap/1,20\par
exten => 1000,2,Voicemail,u1000\par
exten => 1000,3,Hangup\par
exten => 1000,102,Voicemail,b1000\par
exten => 1000,103,Hangup\par
exten => _9XXXXXXXX,1,Dial(Zap/4/$\{EXTEN:1\})\par
exten => _9XXXXXXXX,2,Congestion\par
\par
exten => _9XXXXXXXXXX,1,Dial(Zap/4/$\{EXTEN:1\})\par
exten => _9XXXXXXXXXX,2,Congestion\par
; Extension 2000 Sipura line 1\par
exten => 2000,1,Dial,sip/spa2000|30|t\par
exten => 2000,2,Voicemail,u2000\par
;Extension try for X-Lite\par
exten => 12345,1,Dial(Zap/4/$\{EXTEN:1\})\par
exten => 12345,2,Congestion\par
\par
[incoming]\par
exten => s,1,Wait(1)\par
exten => s,2,Dial(Zap/1&sip/spa2000,20,t)\par
exten => s,3,Voicemail,u1000\par
exten => s,4,Hangup\par
exten => s,103,Voicemail,b1000\par
exten => s,104,Hangup\par
\par
\b\fs24 /etc/asterisk/sip.conf\par
\b0\fs20 [general]\par
port=5060\par
bindaddr=0.0.0.0\par
context=default\par
\par
[12345]\par
type=friend\par
secret=espritgal\par
auth=md5\par
nat=yes\par
host=dynamic\par
reinvite=no\par
canreinvite=no\par
qualify=1000\par
;dtmfmode=inband\par
callerid="Simon" <12345>\par
disallow=all\par
allow=gsm\par
context=xlite\par
\par
[77777]\par
type=friend\par
secret=espritgal\par
auth=md5\par
nat=yes\par
host=dynamic\par
reinvite=no\par
canreinvite=no\par
qualify=1000\par
;dtmfmode=inband\par
callerid="Faaib" <77777>\par
disallow=all\par
allow=gsm\par
context=xlite\par
\par
[spa2000]\par
disallow=all\par
allow=ulaw\par
allow=alaw\par
type=friend\par
username=spa2000\par
secret=espritgal\par
host=dynamic\par
dtmfmode=inband\par
defaultip=192.168.1.46\par
qualify=1000\par
mailbox=2000\par
\par
\b\fs24 /etc/asterisk/voicemail.conf\par
\b0\fs20 ; Voicemail Configuration\par
;\par
[general]\par
; Default formats for writing Voicemail\par
;format=g723sf|wav49|wav\par
format=wav49|gsm|wav\par
; Who the e-mail notification should appear to come from\par
serveremail=asterisk\par
;serveremail=asterisk@linux-support.net\par
; Should the email contain the voicemail as an attachment\par
attach=yes\par
; Maximum length of a voicemail message in seconds\par
;maxmessage=180\par
; Minimum length of a voicemail message in seconds\par
;minmessage=3\par
; Maximum length of greetings in seconds\par
;maxgreet=60\par
; How many miliseconds to skip forward/back when rew/ff in message playback\par
skipms=3000\par
; How many seconds of silence before we end the recording\par
maxsilence=10\par
; Silence threshold (what we consider silence, the lower, the more
sensitive)\par
silencethreshold=128\par
; Max number of failed login attempts\par
maxlogins=3\par
; If you need to have an external program, i.e. /usr/bin/myapp\par
; called when a voicemail is left, delivered, or your voicemailbox \par
; is checked, uncomment this:\par
;externnotify=/usr/bin/myapp\par
; For the directory, you can override the intro file if you want\par
;directoryintro=dir-intro\par
; The character set for voicemail messages can be specified here\par
;charset=ISO-8859-1\par
; Skip the "[PBX]:" string from the message title\par
;pbxskip=yes\par
; Change the From: string\par
;fromstring=The Asterisk PBX\par
;\par
;Change the From: string for pager messages\par
;pagerfromstring=The Asterisk PBX\par
;\par
; Change the email body and/or subject, variables: \par
; VM_NAME, VM_DUR, VM_MSGNUM, VM_MAILBOX, VM_CALLERID, VM_DATE\par
;\par
; Note: The emailbody config row can be up to 512 characters due to a limitation
in \par
; asterisk config files.\par
;emailsubject=New VM ($\{VM_MSGNUM\}) - $\{VM_DUR\} long in mailbox
$\{VM_MAILBOX\} from $\{VM_CALLERID\} \par
;emailbody=Dear $\{VM_NAME\}:\\n\\n\\tjust wanted to let you know you were just
left a $\{VM_DUR\} long message (number $\{VM_MSGNUM\})\\nin mailbox
$\{VM_MAILBOX\} from $\{VM_CALLERID\}, on $\{VM_DATE\} so you might\\nwant to
check it when you get a chance. Thanks!\\n\\n\\t\\t\\t\\t--Asterisk\\n\par
\par
;\par
; You can override the default program to send e-mail if you wish, too\par
;\par
;mailcmd=/usr/sbin/sendmail -t\par
; \par
; Users may be located in different timezones, or may have different \par
; message announcements for their introductory message when they enter \par
; the voicemail system. Set the message and the timezone each user \par
; hears here. Set the user into one of these zones with the tz= attribute \par
; in the options field of the mailbox. Of course, language substitution \par
; still applies here so you may have several directory trees that have \par
; alternate language choices. \par
; \par
; Look in /usr/share/zoneinfo/ for names of timezones. \par
; Look at the manual page for strftime for a quick tutorial on how the \par
; variable substitution is done on the values below. \par
; \par
; Supported values: \par
; 'filename' filename of a soundfile (single ticks around the
filename required)\par
; $\{VAR\} variable substitution \par
; A or a Day of week (Saturday, Sunday, ...) \par
; B or b or h Month name (January, February, ...) \par
; d or e numeric day of month (first, second, ..., thirty-first) \par
; Y Year \par
; I or l Hour, 12 hour clock \par
; H Hour, 24 hour clock (single digit hours preceded by
"oh") \par
; k Hour, 24 hour clock (single digit hours NOT preceded by
"oh") \par
; M Minute \par
; P or p AM or PM \par
; Q "today", "yesterday" or ABdY (*note: not
standard strftime value) \par
; q "" (for today), "yesterday", weekday, or
ABdY (*note: not standard strftime value) \par
; R 24 hour time, including minute \par
; \par
; \par
\par
;\par
; Each mailbox is listed in the form
<mailbox>=<password>,<name>,<email>,<pager_email>,<options>\par
; if the e-mail is specified, a message will be sent when a message is\par
; received, to the given mailbox. If pager is specified, a message will be sent
there as well.\par
;\par
; Advanced options example is extension 4069\par
; NOTE: All options can be expressed globally in the general section, and
overriden in the per-mailbox \par
; settings, unless listed otherwise.\par
; \par
; tz=central \tab\tab ; Timezone from zonemessages above. Irrelevant if
envelope=no.\par
; attach=yes \tab\tab ; Attach the voicemail to the notification email *NOT* the
pager email\par
; saycid=yes \tab\tab ; Say the caller id information before the message. If not
described, \par
\tab\tab\tab ; or set to no, it will be in the envelope\par
; dialout=fromvm \tab ; Context to dial out from [option 4 from the advanced
menu]\par
\tab\tab\tab ; if not listed, dialing out will not be permitted\par
sendvoicemail=yes\tab ; Context to Send voicemail from [option 5 from the
advanced menu]\par
\tab\tab\tab ; if not listed, sending messages from inside voicemail will not
be \par
\tab\tab\tab ; permitted\par
; callback=fromvm \tab ; Context to call back from \par
\tab\tab\tab ; if not listed, calling the sender back will not be
permitted\par
; review=yes \tab\tab ; Allow sender to review/rerecord their message before
saving it [OFF by default\par
; operator=yes \tab\tab ; Allow sender to hit 0 before/after/during leaving a
voicemail to \par
\tab\tab\tab ; reach an operator [OFF by default]\par
; envelope=no \tab\tab ; Turn on/off envelope playback before message playback.
[ON by default] \par
\tab\tab\tab ; This does NOT affect option 3,3 from the advanced options
menu\par
; delete=yes\tab\tab ; After notification, the voicemail is deleted from the
server. [per-mailbox only]\par
\tab\tab\tab ; This is intended for use with users who wish to receive their
voicemail ONLY by email.\par
; nextaftercmd=yes\tab ; Skips to the next message after hitting 7 or 9 to
delete/save current message.\par
\tab\tab\tab ; [global option only at this time] \par
\tab\tab\tab\par
[zonemessages]\par
eastern=America/New_York|'vm-received' Q 'digits/at' IMp\par
central=America/Chicago|'vm-received' Q 'digits/at' IMp\par
central24=America/Chicago|'vm-received' q 'digits/at' H
'digits/hundred' M 'hours'\par
\par
[default]\par
1234 => 4242,Example Mailbox,root@localhost\par
;4200 => 9855,Mark
Spencer,markster@linux-support.net,mypager@digium.com,attach=no|serveremail=myaddy@digium.com|tz=central\par
;4300 => 3456,Ben Rigas,ben@american-computer.net\par
;4310 => 5432,Sales,sales@marko.net\par
;4069 => 6522,Matt
Brooks,matt@marko.net,,|tz=central|attach=yes|saycid=yes|dialout=fromvm|callback=fromvm|review=yes|operator=yes|envelope=yes\par
;4073 => 1099,Bianca Paige,bianca@biancapaige.com,,delete=1\par
;4110 => 3443,Rob Flynn,rflynn@blueridge.net\par
\par
;\par
; Mailboxes may be organized into multiple contexts for\par
; voicemail virtualhosting\par
;\par
\par
[other]\par
;The intro can be customized on a per-context basis\par
;directoryintro=dir-company2\par
1234 => 5678,Company2 User,root@localhost\par
1000 => 5566,Simon,faaib@sita.com.my\par
2000 => 2000,Sipura Mailbox 1\par
3535 => 5566,Simon,simon556@yahoo.com\par
}