I am developing agent monitoring software based on the SIPREC. The recording server directs the RTP stream to supervisor desktop. Where an RTP player plays the agent conversation.
The supervisor wants to monitor an specific agent. For that recording server examines the recording payload in the INVITE SIP message. Finds out the participants and tries to find that which agent this call is connected to.
Participant addresses (which come in the recording payload of an INVITE message) are for caller and dialed number. It does not give the final destination which is agent extension (in a contact center environment).
Appreciate if someone can guide me how to achieve this.
i.e. I don;'t see why you would use SIP REC / CUBE Recording do this. If you did want to create your own app, you would make sense to use CUCM or FInesse API to do Call Monitoring, rather than Call recording.