1) Grab a copy of the AXL schema from your CUCM - go to http://developer.cisco.com/, then select AXL in the drop down on the right hand column. Once there, hit 'documentation'. Grab the AXL schema download, and while you are at it grab the database schema and XML admin guide.
2) If you arent' clear on the fields/values, then instead of trying an 'add' first, create a route pattern normally in the GUI. Then do a 'getRoutePattern', and look at the XMl that is returned to see what fields are and what values can be entered.
Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!
These are the paths to get to each CCX logs through CLI. They may be helpful if you are having issues accessing RTMT or downloading logs through it.
If you want to download them you have to prefix "file get " and you can add one of the options (re...