He was taking a shower when I called.

-----------------------
Q: Did I make a phone call or call his name shouting in the sentence?

The sentence is fine.

The question is a bit strange. You should use one of these:

Did I make a phone call?
Did I call him?
(omit "shouting ... ?")

To determine whether you made a phone call or called his name, you would need more context or information from the sentence. However, let's break down the sentence to better understand the possible interpretations:

"He was taking a shower when I called."

In this sentence, "I called" indicates that you performed some action of calling while he was taking a shower. The sentence does not specify what exactly you called, whether it was his name or if you made a phone call.

If the sentence was written as "He was taking a shower when I called his name," it would suggest that you called out his name while he was in the shower.

On the other hand, if the sentence was written as "He was taking a shower when I made a phone call," it would indicate that you made a phone call while he was in the shower.

Therefore, without further context, the sentence itself is ambiguous, and it is unclear what kind of call you made. Additional information or clarification would be needed to provide a more definitive answer.