[asterisk-users] extending fallback numbers

Matt Riddell lists at venturevoip.com
Tue Apr 3 02:13:38 CDT 2012

On 3/04/2012, at 6:42 PM, Paolo Supino wrote:
> Hi
> Isn't there a better way of doing it that, other than hard coding the
> extension groups?
>> exten => _20XX,1,Dial(SIP/${EXTEN},30)
>> exten => _20XX,n,Dial(SIP/2000,30)

Change to:

exten => _2XXX,1,Dial(SIP/${EXTEN},30)
exten => _2XXX,n,Dial(SIP/${EXTEN:0:2}00,30)


Matt Riddell

http://www.venturevoip.com/news.php (Daily Asterisk News)
http://www.venturevoip.com/pabx_on_disk.php (PABX on a Disk)
http://www.venturevoip.com/exchange.php (Full ITSP Solution)
http://www.venturevoip.com/cc.php (Call Centre Solutions)

More information about the asterisk-users mailing list