Re: [Asterisk-Users] Call(out) routing

2005-01-05 Thread steve


On Wed, 5 Jan 2005, Altus Snyman wrote:

 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 XX.
 This is what I tried but it doesn't seem to work,please help
 Thanks
 Altus
 extensions.conf



Hi Altus,

You;ve done your includes exactly backwards.  The most generic pattern 
must be included at the bottom of the pile, as it were.

In other wrds

[dialout-telkom]
exten = _0.,1,Dial(telkom...)

[dialout]
include = dialout-telkom
exten = _0[78]2.,1,Dial(vodacom)
exten = _0[78]3.,1,Dial(mtn)
etc

The reason is that Asterisk only follows the include links when it can't 
find a match in the current context.

Regards,
Steve Davies
Connection-Telecom CC
Cape Town, South Africa

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


[Asterisk-Users] Call(out) routing

2005-01-04 Thread Altus Snyman
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 XX.
This is what I tried but it doesn't seem to work,please help
Thanks
Altus
extensions.conf
[cell_calls]


exten = _0083XXX,1,Dial(vpb/1-4/${EXTEN:1})
exten = _0083XXX,2,Congestion
exten = _0082XXX,1,Dial(vpb/1-4/${EXTEN:1})
exten = _0082XXX,2,Congestion
exten = _0084XXX,1,Dial(vpb/1-4/${EXTEN:1})
exten = _0084XXX,2,Congestion


exten = _0073XXX,1,Dial(vpb/1-4/${EXTEN:1})
exten = _0073XXX,2,Congestion
exten = _0072XXX,1,Dial(vpb/1-4/${EXTEN:1})
exten = _0072XXX,2,Congestion
exten = _0074XXX,1,Dial(vpb/1-4/${EXTEN:1})
exten = _0074XXX,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




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