Problem with SMS delivery report due to undefined variable.