Hi all,

Perhaps a no-brainer, but i think i am making my dialplan on my proxy
too complicated. 

Normally, what you find in the examples is that you have to dial a
specific number, other "9" or "0" for an external line.

What i want to do is this:
If you pre-pend a number with something like "*" then you can dial local
defined numbers, otherwise everything goes through my iax-trunk-line.

So for instance:
"*#1" gives you a local welcome text
"*#2" gives you the local echo function

while
"#1" gives you a remote welcome text
"#2" gives you the remote echo function

And ordinary numbers or sip's go straight extern:
"0174539053" or "j.witvl...@a-domani.nl" should go to my main
asterisk-server.


Currently i'm doing it pattern-matching all numbers, and each upper
+lower case character, but i wonder if it can be done simpler.

Hans

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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

Reply via email to