I think then maybe I misunderstood he wanted to block 1<any_three_digits>5551212. I see a lot of people putting in xxx where they actually mean ***.
On Thu, Mar 25, 2010 at 12:02 PM, Scott Lawrence <[email protected]> wrote: > On Thu, 2010-03-25 at 11:01 -0400, Dale D wrote: > > > I want to create a dial rule to block calls of the form > > 1XXX5551212. Is this possible? The dial rule descriptions > > imply prefix matching, but not interior matching which would > > allow this to work. > > What do you mean by 'block' ? What do you want to happen to the call? > > I just tried to configure a dial rule on our 4.1.7 alpha test system, > and it accepted it and generated what looked to me like a valid > configuration (I didn't activate the dial plans and test it because it > would have disrupted other users). > > So... what did I do? > > I configured a Custom dial plan: > > Name 'directory redirect' > Dialed Number > Prefix '1xxx5551212' and 0 digits > Resulting Call > Dial '1234' and append Nothing > Gateways > none specified > > what that _should_ do is change any call matching that pattern into a > call to 1234, which would then be re-evaluated according to the full set > of routing rules (if you don't specify a gateway, then the call is sent > back to the proxy to be routed further). > > I'm pretty sure that would work just fine (and would also work in > 4.0.4), and I could replace 1234 with, for example, an auto-attendent > whose prompt says "please dial 411 for directory assistance", or I could > substitute some other external number - whatever I want as long as the > Resulting Call won't also match the Dialed Number rule (infinite loop - > call will fail - be careful). > > One thing to note about putting patterns somewhere other than at the end > of the dial string: if you specify that the Resulting Call should > 'append "Matched Suffix"', then what will be appended is really the > digits that begin at the first wildcard match and continue to the end, > whether the end includes non-wildcard digits or not. So, in the rule > above if I changed the Resulting call to be Dial 1234 and append Matched > Suffix, and then dialed 17775551212, the call would be 12345551212. > > > > _______________________________________________ > sipx-users mailing list [email protected] > List Archive: http://list.sipfoundry.org/archive/sipx-users > Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-users > sipXecs IP PBX -- http://www.sipfoundry.org/ > -- ====================== Tony Graziano, Manager Telephone: 434.984.8430 Fax: 434.984.8431 Email: [email protected] LAN/Telephony/Security and Control Systems Helpdesk: Telephone: 434.984.8426 Fax: 434.984.8427 Helpdesk Contract Customers: http://www.myitdepartment.net/gethelp/ Why do mathematicians always confuse Halloween and Christmas? Because 31 Oct = 25 Dec.
_______________________________________________ sipx-users mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-users Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-users sipXecs IP PBX -- http://www.sipfoundry.org/
