HELP-11098: issue sendmsg as a call rather than a cast
HELP-11097: add backward compatibility for the template options