[Asterisk-Users] Pattern matching rules for least cost routing

Mark Elkins mje at posix.co.za
Tue Apr 20 23:24:58 MST 2004


On Wed, 2004-04-21 at 01:03, Fran Boon wrote:
> On Tue, 2004-04-20 at 23:21, Mark Elkins wrote:
> > No matter what is dialled - I always go out on the 'Default' line.
> > Swapping order makes no difference. If I comment out the 'default' - it
> > does match the 'Cell' pattern - and works.
> 
> Pattern-matching within a context is not done based on order at all.

> include => cell
> include => default
> 
> [cell]
> exten => _00[78][234].,1,Playback(posix-cellphone)
> exten => _00[78][234].,2,Dial(${TRUNK}:${EXTEN:${TRUNKMSD}})
> 
> [default]
> exten => _0.,1,Playback(posix-defaultroute)
> exten => _0.,2,Dial(${TRUNK}:${EXTEN:${TRUNKMSD}})

Thanks (to the three replies).
Ended up leaving the cell pattern matching where it was and putting just
the default [def-out] in its own context and 'including' that to the end
of the pattern matching with...
include=> def-out

Little by little - I get to shape asterisk to the way I want it to
work..

-- 
  .  .     ___. .__      Posix Systems - Sth Africa
 /| /|       / /__       mje at posix.co.za  -  Mark J Elkins, Cisco CCIE
/ |/ |ARK \_/ /__ LKINS  Tel: +27 12 807 0590  Cell: +27 82 601 0496

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20040421/cb182686/attachment.pgp


More information about the asterisk-users mailing list