IAXy dialplan

Hello, I’m a newbie to Asterisk so this is probably going to sound really basic.

What I’m trying to do is create an IVR menu system for the IAXy, so that as soon as I press the green button on my phone I get the IVR.

I’ve tried using exten => s but it seems to ignore that. I copied an example from the yellow book and it works only if you put an extension instead of s. For example:

exten => s,1,Wait,1
exten => s,2,Answer
exten => s,3,Dial(IAX2/1000,20,r)
exten => s,4,Hangup

Asterisk ignores this, but if I do:

exten => 1001,1,Wait,1
exten => 1001,2,Answer

And then dial 1001 on my IAXy’d phone, it will do those actions.

Does anyone know what I’m doing wrong?

If I can fix this up, I can duplicate it for the other IAX2 service: iax.cc

Thanks in advance,