I want to set up a dial rule like this 9304752#w9#w+NXXXXXXXXX The point of this is. It will dial into a pbx with the account number 9304752, wait a second, dial 9 to get an outside line, wait a second for the outside line, and then dial the number to be called. When ever I save this in amp anything after the first # disappears. When I try to call out it doesn't do the adding of the prefix. I don't think its even able to parse localprefixes.conf. does anyone know how I can accomplish this? if I get rid of the #'s it adds the prefix and dials fine, but the pbx doesn't know the answer after the account number without it, so I get an "all circuits are busy" because of "no answer" If in AMP I set up that string under Outbound Dial Prefix rather then Dial Rules, then it works fine. But that does it for all numbers and I just want it to do it for 10 digit numbers.
steve@daviesfam.org
2006-Jan-18 09:00 UTC
[Asterisk-Users] Dial Rules in localprefixes.conf
On Wed, 18 Jan 2006, Michael Sampson wrote:> I want to set up a dial rule like this > 9304752#w9#w+NXXXXXXXXX > > The point of this is. It will dial into a pbx with the account number > 9304752, wait a second, dial 9 to get an outside line, wait a second for > the outside line, and then dial the number to be called. When ever I > save this in amp anything after the first # disappears. When I try to > call out it doesn't do the adding of the prefix. I don't think its even > able to parse localprefixes.conf. does anyone know how I can accomplish > this? > > if I get rid of the #'s it adds the prefix and dials fine, but the pbx > doesn't know the answer after the account number without it, so I get an > "all circuits are busy" because of "no answer" > > If in AMP I set up that string under Outbound Dial Prefix rather then > Dial Rules, then it works fine. But that does it for all numbers and I > just want it to do it for 10 digit numbers.Hi, This looks like an AMP issue rather than Asterisk. To do what you want in Asterisk you'd just say: exten => NXXXXXXXXX,1,Dial(Zap/gX/9304752#w9#w${EXTEN}) How to do that equivalent in AMP you'd better ask on the AMP list. Regards, Steve