[Asterisk-Users] Call(out) routing

Altus Snyman altus at stormcorp.co.za
Tue Jan 4 23:55:55 MST 2005


Good day all
I had a look at the extensions.conf sorting
http://www.voip-info.org/wiki-Asterisk+config+extensions.conf+sorting

What I'm trying to do is route all my cellphone number threw a  channel
and all other calls threw the other 3 channels
Cellphone numbers are 10 number,i.o.w XXXXXXXXXX.
This is what I tried but it doesn't seem to work,please help
Thanks
Altus
extensions.conf
[cell_calls]
                                                                                                
exten => _0083XXXXXXX,1,Dial(vpb/1-4/${EXTEN:1})
exten => _0083XXXXXXX,2,Congestion
exten => _0082XXXXXXX,1,Dial(vpb/1-4/${EXTEN:1})
exten => _0082XXXXXXX,2,Congestion
exten => _0084XXXXXXX,1,Dial(vpb/1-4/${EXTEN:1})
exten => _0084XXXXXXX,2,Congestion
                                                                                                
exten => _0073XXXXXXX,1,Dial(vpb/1-4/${EXTEN:1})
exten => _0073XXXXXXX,2,Congestion
exten => _0072XXXXXXX,1,Dial(vpb/1-4/${EXTEN:1})
exten => _0072XXXXXXX,2,Congestion
exten => _0074XXXXXXX,1,Dial(vpb/1-4/${EXTEN:1})
exten => _0074XXXXXXX,2,Congestion

[MAIN]

exten => s.........
........

ignorepat => 0
                                                                                                include => cell_calls
                                                                                      exten => _0.,1,Dial(vpb/1-2/${EXTEN:1})
exten => _0.,2,Dial(vpb/1-3/${EXTEN:1})
exten => _0.,3,Dial(vpb/1-1/${EXTEN:1})
exten => _0.,4,Congestion







More information about the asterisk-users mailing list