include the extension in the caller id

Should work for other variables, too.
You might check with DumpChan() in dialplan.

Or those variables:

https://wiki.asterisk.org/wiki/display/AST/Asterisk+Standard+Channel+Variables