[Asterisk-Users] Complicated Dialing plan routing

Eric "ManxPower" Wieling eric at fnords.org
Tue Dec 6 19:01:10 MST 2005


Colin Anderson wrote:
> Don't want to point out the obvious, but seems to me that the lowest common
> denominator here is to dial out the PRI if there's no extension match,
> correct? If this is the case, then you can use the 's' extension. The 's'
> extension is a 'match-none' extension and is invoked when there is not match
> for an extension. So you could add at the end of each relevant context:
> 
> exten => s,1,Dial(ZAP/g0/${EXTEN})
> 
> and if there's no extension match, it'll go out your PRI. Only problem I see
> there is your PRI might not like it if it is a local call from the caller's
> perspective but a LD call from Asterisk's perspective and vice-versa. That,
> you have to put on your thinking cap to deal with. 

*sigh*

"exten => i" is "we got digits and nothing matches".

"exten => s" means "we didn't get any digits".



More information about the asterisk-users mailing list