Don't forget to change this to:
{<<"execute_on_answer">>, <<"'t38_gateway ", Direction/binary, "'">>}.