Custom cdr log

hi - i wish to insert the call log into a jms queue (in real time) instead of a file. is there a way to do this. or somehow hook into every call so i can perhaps make out an http request with call parameters to a servlet that in turn inserts incoming request into a jms queue. thanks. -ao