Playback() function repeats the sound twice

Is there any reason why this line should cause a playback to play twice instead of once?

exten => _XXXX,1,Dial(SIP/${EXTEN})
exten => _!,1,Playback(you-dialed-wrong-number)
exten => _!,2,Hangup()

exten => _!,1,Playback(you-dialed-wrong-number)
exten => _!,2,Hangup()

Shouldnt it be
exten => _.,1,Playback(you-dialed-wrong-number)
exten => _.,2,Hangup()

Still dont think it should play it twice are you sure the sound file just doesnt say it twice.

Im sure.
I checked that on my local pc and it only played once.

Only when you call it plays twice.

what about from the CLI does it show it play twice? very strange

not sure what you mean?

the logs only show it playing once

I just ran into this problem. So even though it’s been a year and a half since you posted I’ll tell you what I think is happening. You probably have a ‘h’ extension that is executed after the hangup() command and there is a Playback(you-dialed-wrong-number) command in the ‘h’ extension. Therefore you here ‘you-dialed-wrong-number’ twice:

exten => _!,1,Playback(you-dialed-wrong-number)
exten => _!,2,Hangup()

exten => h,1,Playback(you-dialed-wrong-number)