Andrew Elchuk
2005-Apr-26 10:12 UTC
[Asterisk-Users] Using Asterisk to dial a number and then wait to dial the extension
Hi, I did some searching and haven't found a solution to my problem. But right now we are performing a transition from an old system to a new system using asterisk and only a few people are on the new system and testing it out. Anyways, I was wondering if it is possible to dial a phone number with asterisk, and then after that callee picks up to dial an extension? In one forum message I found that you could use 'w' in the dial string to act as a half second wait. I tried doing: exten => 109,1,Dial(ZAP/g1/6525798wwwwww109) This would dial the other phone system, but would not wait 3 seconds til the other system answered and then dial the extension. I also tried using: exten => 109,1,Dial(ZAP/g1/6525798|D(109)) But this did the same thing as the above. Is there another way to dial a number then on the same channel send 3 more digits after the other party answers? Thanks.
Tony Mountifield
2005-Apr-27 02:04 UTC
[Asterisk-Users] Re: Using Asterisk to dial a number and then wait to dial the extension
Andrew Elchuk <aelchuk@cronustech.com> wrote:> > I did some searching and haven't found a solution to my problem. But > right now we are performing a transition from an old system to a new > system using asterisk and only a few people are on the new system and > testing it out. Anyways, I was wondering if it is possible to dial a > phone number with asterisk, and then after that callee picks up to dial > an extension? > > In one forum message I found that you could use 'w' in the dial string > to act as a half second wait. I tried doing: > exten => 109,1,Dial(ZAP/g1/6525798wwwwww109) > This would dial the other phone system, but would not wait 3 seconds til > the other system answered and then dial the extension. > > I also tried using: > exten => 109,1,Dial(ZAP/g1/6525798|D(109)) > But this did the same thing as the above. > > Is there another way to dial a number then on the same channel send 3 > more digits after the other party answers? Thanks.The D() option is the "correct" way to do it, but only works if your Zap interface can tell when the remote party answers. Typically, digital lines (ISDN, T1, E1) can tell, but analogue lines can't. Cheers Tony -- Tony Mountifield Work: tony@softins.co.uk - http://www.softins.co.uk Play: tony@mountifield.org - http://tony.mountifield.org