What you have here should work just fine except:

exten => _1866NXXXXXX,1,Dial(ZAP/g1/${EXTEN}) -- note the change from n to 1.

I also don't understand why you have an "Answer" after your Dial statements.

I would do this:


; Outbound via POTS
[general-outbound]

include => pri_outbound

exten => _1800NXXXXXX,1,Dial(ZAP/g1/${EXTEN})
exten => _1800NXXXXXX,n,Busy
exten => _1800NXXXXXX,n,Hangup

exten => _1866NXXXXXX,1,Dial(ZAP/g1/${EXTEN})
exten => _1866NXXXXXX,n,Busy
exten => _1866NXXXXXX,n,Hangup

exten => h,1,Hangup

; Outbound via PRI
[pri_outbound]
exten => _X.,1,Dial(ZAP/g0/${EXTEN})
exten => _X.,n,Busy
exten => _X.,n,Hangup

exten => h,1,Hangup

Tim Nelson wrote:
> Greetings!
>
> I'm hoping someone can help me with what should be the most basic of 
> problems. Essentially, I want to have certain calls on an Asterisk 1.2.25 
> (Yes I know its old, upgrade, etc... its on my roadmap) install go out a 
> couple of analog lines and all other calls go out a PRI. The analog lines are 
> setup in Zaptel group 1 and the PRI channels are in Zaptel group 0. Here is 
> my relevant config:
>
> ; Outbound via POTS
> [general-outbound]
> exten => _1800NXXXXXX,1,Dial(ZAP/g1/${EXTEN})
> exten => _1800NXXXXXX,n,Answer
> exten => _1800NXXXXXX,n,Busy
> exten => _1800NXXXXXX,n,Hangup
> exten => _1866NXXXXXX,n,Dial(ZAP/g1/${EXTEN})
> exten => _1866NXXXXXX,n,Answer
> exten => _1866NXXXXXX,n,Busy
> exten => _1866NXXXXXX,n,Hangup
> include => pri_outbound
>
> ; Outbound via PRI
> [pri_outbound]
> exten => _X.,101,Dial(ZAP/g0/${EXTEN})
> exten => _X.,102,Answer
> exten => _X.,103,Busy
> exten => _X.,104,Hangup
>
> I certainly cannot be the only one who wants this sort of setup... correct? 
> Is it the way I'm including the other context, the dial patterns, the 
> priorities, etc? I'm not opposed to combining it into a single context, I 
> just started it out with this way. All hints are appreciated. (Pun intended.. 
> :-) )
>
> --Tim
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>   

-- 

MARK.

Hulber Technologies
asterisk-ad...@hulber.com

Read my blog             :  http://mark.hulber.com
Follow @hulber on Twitter:  http://twitter.com/hulber


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to