First and second person pronouns are called deictic pronouns: They point (refer) to the person speaking or hearing an utterance. Their meaning changes depending on who speaks or hears, i.e. depending on the context of the utterance.
Let's look at some examples.
Maria1 zu Josef2: "Ich1 bin dumm. Du2 bist klug."
Josef2 zu Maria1: "Du1 hast recht, ich2 bin klug."
The indices indicate coreference. In the first situation, Maria is the speaker and therefore, ich refers to Maria; in the second situation, Josef is the speaker and ich refers to him. (The situation or context of the utterance is to the left of the colon, the utterance itself is to the right of the colon.)
Now let's look at examples involving indirect speech.
(A) Maria1 zu Josef2: "Hans3 sagte, ich1 sei Polizist."
(B) Maria1 zu Josef2: "Hans3 sagte, du2 seist Polizist."
(C) Maria1 zu Josef2: "Hans3 sagte, er3 sei Polizist." [*]
When looking for direct speech equivalents, we have to change the context of the utterance, because it is Hans who is speaking.
(A') Hans3 zu Maria1: "Du1 bist Polizist."
(B') Hans3 zu Maria1: "Josef2 ist Polizist."
(C') Hans3 zu Maria1: "Ich3 bin Polizist."
I think what caused you problems (and what also might make your question sort of hard to understand) is that usually, when talking about grammar, it is sufficient to give an utterance, but here you need to give an utterance (what is said) and a context (who says it to whom).
* A remark about (C). Third person pronouns are called anaphoric. They are independent of the context of the utterance: er refers to Hans, which is part of the utterance.