Archiving Voice

Can someone explain what would be involved in creating a way for voice conversations that are done on spark to be archived on the server?

In trying to figure this out (not a PBX expert) I found two possibilities:

  1. Have Asterisk or other PBX record calls, create an interface in openfire server to view the calls and play them back.

  2. Implement call recording in openfire/spark itself, without relying on the pbx’'s call recording features.

Can anyone shed some opinion on this?

Message was edited by: burhan