Merging RTP streams of a VoIP call



I have to merge the two RTP streams corrresponding to two sides of a VoIP
phone call. The media is in G.711 muLaw format. How should I do this? Look
at the RTP timestamps and add the sample values at each moment in time?

Many thanks.


.