Rex:
The basis for xml_rpc or mod_event is something along the lines of:
api $command
As an example to originate a call (using xml_rpc or mod_event) you would do:
api originate sofia/external/$SOMEANI@$IP:$PORT $EXTENSION xml $context
What language are you trying to do this in?
SDR