Channel not returning to normal media after JACK_HOOK detach

[HELP]: Hi Friends, I am trying to use pure data with asterisk. I am connecting using the JACK interface. Once I have turned the JACK_HOOK on, is there a way to turn it back to normal.

What I have done right now is that in my features.conf, I have defined a feature as follows:

change_to_jack0 => #0,self/caller,Set(JACK_HOOK(manipulate)=off)
but when I press #0 during a bridged call the complete audio stops going from caller to the callee. Although what I expect is that instead of going through

Caller->Jack->puredata->Callee

it should go in the normal fashion i.e.

Caller->Callee.

extensions.conf

[jacknjill]
exten =>1001,1,Answer()
exten =>1001,n,Set(__DYNAMIC_FEATURES=change_to_jack0)
exten =>1001,n(menu),Read(voice_type,/usr/src/prompts/menu-e,1,,,5)
exten =>1001,n,Set(JACK_HOOK(manipulate,i(pure_data_${voice_type}:input0)o(pure_data_${voice_type}:output0))=on)
exten =>1001,n,Dial(DAHDI/g0/XXXXXXXX, 30)