I'm not getting this in extensions.conf

I am having a hard time understanding why this works:

exten => _X.,1,Answer()
exten => _X.,n,wait(1)
exten => _X.,n,background(welcome)
exten => _X.,n,wait(1)
exten => _X.,n,background(enter-ext-of-person)
exten => _X.,n,Hangup()

But this doesn’t. I get an extension not found.

exten => s,1,Answer()
exten => s,n,wait(1)
exten => s,n,background(welcome)
exten => s,n,wait(1)
exten => s,n,background(enter-ext-of-person)
exten => s,n,Hangup()

I thought that the s extension would be applied if there were no other matches to the extension.

Thanks

This may help:

the-asterisk-book.com/unstab … -extension

Problem is here,

[quote]exten => s,1,Answer()
[color=red]exten => s,n,wait(1)[/color]
exten => s,n,background(welcome)
[color=red]exten => s,n,wait(1)[/color]
exten => s,n,background(enter-ext-of-person)
exten => s,n,Hangup()
[/quote]

you cannot register with same extension, same priority, as u done
Please change that to different priority.
for. e.g.

exten => s,1,Answer()
exten => s,2,wait(1)
exten => s,n,background(welcome)
exten => s,n,wait(1)
exten => s,n,background(enter-ext-of-person)
exten => s,n,Hangup()

Cheers,
Deepen