[cisco-voip] dial-peer number hunting
Jack Martin
jackm at tushaus.com
Fri Nov 30 09:11:52 EST 2007
So 346, 412 and 418 will also match this dial-peer. I suggest creating exact match dial-peers for these, if you wish for them to be excluded. Otherwise, stich with your original dial-peers or use a translation rule, or use:
incoming called-number 988990[322,324,326,328,342,344,348,414,416]T Though i'm not sure if there is a limit on the size of the expression?
Jack Martin, CCVP
Tushaus Computer Services
10400 Innovation Drive, Ste 100
Milwaukee, WI 53226
Desk: 414.908.4467
Cell: 262.385.1872
Fax: 414.908.4467
jackm at Tushaus.com
www.Tushaus.com <http://www.tushaus.com/>
________________________________
From: Servet ERKUN [mailto:servet.erkun at doruk.net.tr]
Sent: Thu 11/29/2007 3:13 PM
To: Jack Martin; cisco-voip at puck.nether.net
Subject: RE: [cisco-voip] dial-peer number hunting
Hi
But this expression is matcing for example 988990418 , but I don't want that cause of this is defined in another dial-peer
Expression must match only these prefixes 988990322,988990324,988990326,988990328,988990342,988990344,988990348,988990414,988990416
Is it possible ??
From: Jack Martin [mailto:jackm at tushaus.com]
Sent: Thursday, November 29, 2007 9:52 PM
To: servet at doruk.net.tr; cisco-voip at puck.nether.net
Subject: RE: [cisco-voip] dial-peer number hunting
Try this:
incoming called-number 988990[3-4][1-2,4][2,4,6,8]T
Jack Martin, CCVP
Network Engineer
Tushaus Computer Systems
10400 Innovation Drive, Suite 100
Wauwatosa, WI 53226
Desk: 414.908.2267
Cell: 414.477.6990
Fax: 414.908.4467
jackm at tushaus.com
www.Tushaus.com
From: cisco-voip-bounces at puck.nether.net [mailto:cisco-voip-bounces at puck.nether.net] On Behalf Of Servet ERKUN
Sent: Thursday, November 29, 2007 10:00 AM
To: cisco-voip at puck.nether.net
Subject: [cisco-voip] dial-peer number hunting
HI Guys
I want to hunt a call from destination-number but my number list is complex , can i use regular expression for hunting destination number ?
There is 2 dial-peer configuration, i want to merge them and i want to use 1 dial-peer , but i can not write one expression, and this dial peer must include only 988990[322,324,326,328,342] and 988990[344,348,414,416]T prefixes
dial-peer voice 1001 voip
huntstop
max-conn 8
voice-class aaa 2
voice-class media 1
voice-class codec 3
incoming called-number 988990[322,324,326,328,342]T
!
dial-peer voice 1002 voip
huntstop
max-conn 8
voice-class aaa 2
voice-class media 1
voice-class codec 3
incoming called-number 988990[344,348,414,416]T
how can i do that
any idea ??
More information about the cisco-voip
mailing list