| I am not sure about IP01. The pattern match: _588x.? 
 In asterisk, it can be done simply by:
 
 exten =>  _588x.,1,Dial(SIP/ET263localacc/${EXTEN},,r)  ;call to ET263 phones
 exten =>  _0086x.,1,Dial(SIP/ET263localacc/${EXTEN},,r)  ;call to mainland
 exten => _010x.,1,Dial(SIP/SPA3102acc/${EXTEN},,r)  ;should check with SPA's dialpan
 exten =>  00852x.,1,Dial(SIP/IP01FXO_4/${EXTEN:5},,r)   ; HK thru IP01's FXO
 exten =>  00853x.,1,Dial(SIP/IP02FXO_4/${EXTEN:5},,r)   ; Macau thru IP02's FXO
 
 Two alternatives for the GOIP in Macau:
 1. Two one-channel GOIP.
 2. One four-channel GOIP.
 |