Macro for calling

I use Asterisk
I use macro for calling. When i do not wait for finished do hung up but macro do not stopping, macro is continued. I think macro is also must be stopped. Process hung up is doing without problem. What is wrong?
This is part of extensions.conf

exten => _XXXXXXX,1,Answer
exten => _XXXXXXX,n,Playback(some_file)
exten => _XXXXXXX,n,Dial(Dahdi/1/${EXTEN},M(screen^${EXTEN}))
exten => _XXXXXXX,n,Hungup

exten => s,1,Playback(some_file)
exten => s,n,SayNumber(${ARG1})[/code]

You should pass timeout variable to Dial application if you want the call to hangup .

maybe you didn’t understand my question. In this problem after answer immediately i hung up call but macro do not stopped. In debug i see hang up operation and also see that macro is continued. Please see my extensions.conf you will show what i want to tell

I found what is wrong? I used Sipdroid Softphone for answer incoming call. I changed softphone to bria and analog phone previous problem was not happen. When dial to Sipdroid i saw asterisk debugger hangup does not recognizing. But other softphones or analog phones recognize. It’s bug Sipdroid :smile:))