[Asterisk-Users] Forwarding Extensions using dialplan
trixter aka Bret McDanel
trixter at 0xdecafbad.com
Tue Oct 18 12:01:58 MST 2005
On Tue, 2005-10-18 at 14:50 -0400, Dave Morrow wrote:
> Hi all. So far this list is proving it's worth, even on my first day
> using it!
>
> I hope that someone might know an easy solution to this one.
>
> I would like to create a dial plan which will allow me to have all
> extensions 6XXX cause a dial-out of my T1 interface to a local number,
> wait for an answer, wait 2 seconds and then enter the extension. Can
> I do this in a dial plan somehow? This will allow me to
> pseudo-integrate a legacy telephone switch (whose extensions are all
> 6XXX) to my Asterisk system for direct extension dialing.
It can, however how difficult this is varies greatly on the mapping
between old and new 6xxx numbers.
If you are using 1.1 or 1.2 code you can do this:
exten => _6xxx,1,Dial(Zap/1/${EXTEN},60,M(dialexten^${EXTEN}))
[macro-dialexten]
exten => s,1,wait(2)
exten => senddtmf(${arg1})
This causes asterisk to pattern match 6xxx where x is 0-9. When the
called party answers the macro dialexten is called and that will send
the dtmf of the extension in question. If the two are the same then no
translation is needed, if they are different then you have to play games
to match the new with the old.
--
Trixter http://www.0xdecafbad.com Bret McDanel
UK +44 870 340 4605 Germany +49 801 777 555 3402
US +1 360 207 0479 or +1 516 687 5200
FreeWorldDialup: 635378
-------------- 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/20051018/c3914910/attachment.pgp
More information about the asterisk-users
mailing list