Asterix and sip "replaces" header support

Alright, i’ll do so.
How do I park call and get lot number programtically? i couldn’t find any tutorials or examples online about parking and resuming call on freepbx?