Number not found when calling automatic attendant

When I call through asterisk to a number which is answered by an automatic attendant asterisk thinks that the number doesn’t exist.

It’s like when the the automatic attendant answers the call plays the tones used to make telemarketers think that the number doesn’t exists (like Zapateller) and then asterisk hungs up just like the called number doesn’t exist.

I’ve tried asterisk 1.2.0 and asterisk 1.0.10 with the same problem.

Has this happened to anyone?