Q 42: If I use the spell Gate to call an outsider to inmediately help me in a fight (while the fight is still going on). When does it get its first action? Does it act inmediately after the gate spell was cast? Or does it roll initiative?

Excuse my poor english.