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. David A. Morrow Technical Systems Lead Autodata Solutions Company David.Morrow@Autodata.Net http://www.autodata.net Tel: (519) 951-6079 Fax: (519) 451-6615 < Poor planning on your part does not necessarily constitute an emergency on my part! > This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at Administrator@autodata.net <mailto:Administrator@autodata.net> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051018/89f02aba/attachment.htm
trixter aka Bret McDanel
2005-Oct-18 12:01 UTC
[Asterisk-Users] Forwarding Extensions using dialplan
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