Get Extension who initiated a call

Hi guys.
I have something like that:
Log(“PJSIP/869-0000006e”, "NOTICE, CALLERID(num) set to: ") in new stack

Internal extension 869 initiated this call. I want to set the outbound CallerID based on the extension which initiated a call. Is there an easy way to get it?

Thanks.

Got it.
It is just CALLERID(num).

Thanks.