View Single Post
  #74 (permalink)  
Old 01-21-2009, 02:16 PM
cheesegrits cheesegrits is offline
Junior Member
 
Posts: 7
Default

A global callee prefix would be useful, regardless.

And yeah, I'm already handling my local extension calling with a custom regex that just adds my local extension pattern(s) to my already modified "US calling plan" regex.

I've gotten things working for outside calls and local extensions by temporarily modifying my main Outbound Route in Asterisk to not require the 9 for an outside line. Right now this is a test setup, but I have to deliver it to a customer who is going to want the 9 prefix for external calls, something to do with their billing software that processes the Asterisk reports.

What might work is if you added a 'replace' regex. So anything which matches the main regex, you add the global callee prefix, then run it thru the replace regex (if specified).

Then I could have a replace regex that does s/9(\d\d\d)/$1/, i.e. removes the 9 from 3 digit numbers.

Not a huge deal, but something to think about.

-- hugh
Reply With Quote