Added Eric Hop's changes for OTAPI_Exec.

Signed-off-by: FellowTraveler <F3llowTraveler@gmail.com>