Dear , My box has Asterisk@home 2.5 and Digium TDM04B (4 FXO), I need to create an outbound routing like this: TDM04B Channel 1 => using PSTN line 1 NXXXXXX Channel 2 => using PSTN line 2 NXXNXXXXXX Channel 3 => using PSTN line 3 NXXXXXX Channel 4 => using PSTN line 4 1NXXXXXX Now when I make a call the system is taking the first line available. Thanks in advance for your help. zapata.conf ************************************** ; ; Zapata telephony interface ; ; Configuration file [trunkgroups] [channels] language=en context=from-pstn signalling=fxs_ks rxwink=300 ; Atlas seems to use long (250ms) winks ; ; Whether or not to do distinctive ring detection on FXO lines ; ;usedistinctiveringdetection=yes usecallerid=yes hidecallerid=no callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes cancallforward=yes callreturn=yes echocancel=yes echocancelwhenbridged=no echotraining=800 rxgain=0.0 txgain=0.0 ;group=0 group=1 callgroup=1 pickupgroup=1 immediate=no channel => 1 channel => 2 channel => 3 channel => 4 ;faxdetect=both faxdetect=incoming ;faxdetect=outgoing ;faxdetect=no ;Include genzaptelconf configs #include zapata-auto.conf ;Include AMP configs #include zapata_additional.conf **************************************** zaptel.conf # Span 1: WCTDM/0 "Wildcard TDM400P REV I Board 1" fxsks=1 fxsks=2 fxsks=3 fxsks=4 # Span 2: ZTDUMMY/1 "ZTDUMMY/1 1" # Global data loadzone = us defaultzone = us *********************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060208/7dbd1211/attachment.htm
I am assuming you are using amp for everything... what you do is set up 4 zap trunks with trunk identifiers for 1,2,3,4 Then go to outbound routes and create your routing rules for each of the routes and have them use the appropriate trunk. Sean On Wed, 2006-02-08 at 17:33 -0500, Nelson Granados wrote:> NXXXXXX