My question involves restraining orders in the State of: CA

So I was contacted by Police that my ex will be filing a restraining order. This police officer was accusing me of posting naked pictures online of my ex. Which I have no pictures and have done no such thing. I told him over and over that I didn't do any of these things. He continued to badger me like I did it or was involved. The officer even left a threatening message on my voicemail.

My ex had accused me of this in the past which I sent a "cease and desist" letter from false accusations, harassment and slander. I even told the officer I have proof I issued these things which he ignored.

Anyway... I need to know what to do from being out of state to protect my clean record (criminal or public)

The ex knows that I do government contract work that requires high security clearance, own firearms, and also going through custody battles with an ex-wife. She is trying to tarnish my good name and this is her basic legal form of harassment to hurt me.

I can't afford to spend thousands of dollars to fly to another state, do I have to show up for a hearing in person or can I do it over the phone? I believe this is ironically screwed up, that as a victim I have to pay money to protect myself and my freedoms.

I also have email records of me continuously telling her to leave me alone. She has no basis to turn things around on me, why is the court system so screwed up that she can get this without any proof? This is many states away and I can't just fly down there to fairly represent myself.