Getting an analog extension to dial a number or ring group when it picks up


I’m connecting a entry phone to our system, using a Zaptel analog extension port. How do I make the phone dial a fixed number (a ring group) when it’s picked up.

I know it has something to do with “immediate=yes”, but can someone give me more details.