Second Flash not working

I have an asterisk server with a 4 FXO port Digium card.

The asterisk server is connected to the Panasonic PBX through these ports. Four analog extensions come out from this PBX and enter to the asterisk server like trunks. When I call to one of these extensions I listen to the voicemail of the asterisk server. Until there everything is working fine.

The problem comes when the voicemail wants to make a supervised transfer to another extension of the Panasonic PBX:

The application (incoming extension) inside Asterisk answers the call (WORKING)
The application (incoming extension) plays a greeting message to the external caller (WORKING)
The application (incoming extension) waits for digits from the external caller (WORKING)
The application (incoming extension) receives the digits from the external caller (WORKING)
The application (incoming extension) generates a flash, receives a second dial tone and sends the received digits (WORKING)
The application (incoming extension) waits 15 seconds for the call to be answered (WORKING)

At this moment 3 different things can happen:

Case 1 The call is answered
The application (incoming extension) detects that the call was answered (WORKING)
The application (incoming extension) plays a message (WORKING)
The application (incoming extension) generates a flash, returns to the first call (WORKING)
The application (incoming extension) plays a message (WORKING)
The application (incoming extension) hangs up (WORKING) The call was succesfully transfered.

Case 2 The call is not answered
The application (incoming extension) detects timeout of the answering time
The application (incoming extension) generates a flash, returns to the first call (NOT WORKING)
The application (incoming extension) plays a no answer message (WORKING)
The application (incoming extension) waits for confirmation digit from the external caller (WORKING)
The application (incoming extension) goes to the voicemail context, and plays a message (WORKING)
The application (incoming extension) waits for mailbox digits from the external caller (WORKING)
The application (incoming extension) plays a voicemail greeting message of the called extension (WORKING)
The application (incoming extension) hangs up (WORKING) The voice mailbox has succesfully received a message.

Case 3 The call is busy
The application (incoming extension) detects a busy tone
The application (incoming extension) generates a flash, returns to the first call (NOT WORKING)
The application (incoming extension) plays a busy message (WORKING)
The application (incoming extension) waits for confirmation digit from the external caller (WORKING)
The application (incoming extension) goes to the voicemail context, and plays a message (WORKING)
The application (incoming extension) waits for mailbox digits from the external caller (WORKING)
The application (incoming extension) plays a voicemail greeting message of the called extension (WORKING)
The application (incoming extension) hangs up (WORKING) The voice mailbox has succesfully received a message.

The panasonic PBX sends DTMF confirmation tones to asterisk to let him know about the status of the call (ringback tone, answer tone, busy tone). This is possible, because the extensions that are connected to the asterisk server are programmed as Voice Mail DTMF extensions.

I made a dial plan for this but it only works on case 1, on case 2 and 3 it was working on the beginning and after a few days it stopped working. As you can see, the only thing that the dial plan is not doing, is generating the second flash to go back to the first call. I know this, because I putted a test phone on the asterisk incoming extensions in monitor mode and heard everything that happened when asterisk answers the line.

What could be wrong?, is there a bug on this dial plan?, what can I do?

can you post your dialplan code?