How to record two RTP Streams coming in one call media session

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Varun,
? the 3 parties(caller, callee, recorder) should be conferenced together.? The call? to the recorder can either be one way(sendonly in the Invite, recvonly in the 200ok), or 2 way but the recorder only transmits silence.? The mix of the caller and callee will be sent to the recorder on the port mentioned in the Invite. 
BTW, the caller manager can also record the call to a .wav file locally. So the recorder and caller manager can be one. If a remote system wants access to the recording, then a shared file system can be used. Notifications of the recording can be done either via SIP Notify or some other mechanism.

--- On Sat, 10/1/11, varun pratapsingh <varunps2003 at gmail.com> wrote:

From: varun pratapsingh <varunps2003@xxxxxxxxx>
Subject: Re: How to record two RTP Streams coming in one call media session
To: "pjsip list" <pjsip at lists.pjsip.org>
Date: Saturday, October 1, 2011, 12:20 AM

HI Peter,
Thanks for your valuable reply. But the issue is that I am able to record only one way audio. First I need to explain what is the flow:
Calling Party A calls the Called Party B. Now the call establishes between A and B. Now when call is established Call Manager C sends an INVITE to my Recorder R. Now my Recorder R replies the C with 200 OK and SDP. The SDP have one media stream only that is m = audio RTP/AVP 4000 98 97 99 104. Now the Call Manager C replies with ACK with same SDP with one media line. Now the ?session is also established between Call Manager and Recorder. Now Call Manager is sending RTP of caller and callee to the Recorder and Recorder starts the recording of the coming RTP Media. But the issue is that my recorder is only able to record the callers RTP or audio callee audio is not getting recorded. Then I analysed the Wireshark Logs then I found that Call Manager is not mixing and sending the Callers RTP and Callee RTP on one port. Rather Call Manger C is sending the RTP of caller on 4000 port and Callee RTP on the 4002 port. And I think as I have send the SDP with RTP
 on 4000 port so my Recorder is listening on the 4000 port only for the Media.

But How to get the other RTP stream coming on 4002 port also recorded. Is it possible to have to RTP stream on different ports in a single call session with one media line in SDP. Or there is an other way around to handle such scenario. But there is one thing that we cannot change the Call Manager settings we have to do all things in our Recorder only.

Any Help is highly appreciated. All suggestions are welcome.
Regards:Varun Singh



On Fri, Sep 30, 2011 at 6:41 PM, peteryzwei <peteryzwei at yahoo.com> wrote:

Varun,
?I am not sure how the recording system interfaces to your call manager.

One possibility is to have the call manager always invite the recording system as an additional party(3rd) for each call as a receive only party. The caller manager would conference the 3(or more) parties and send the mix of the other 2(or more) parties to the recording system who would simply record it to a file. PJSIP has the recorder API already.

Since the recording system is receive only, it remains silent and the other parties hear nothing from it.
?

--- On Fri, 9/30/11, varun pratapsingh <varunps2003 at gmail.com> wrote:


From: varun pratapsingh <varunps2003@xxxxxxxxx>
Subject: How to record two RTP Streams
 coming in one call media session
To: "pjsip list" <pjsip at lists.pjsip.org>
Date: Friday, September 30, 2011, 3:31 AM


HI All,



I am developing recording system which works with call manager. When

this call manager calls this recording system with INVITE it replies

with 200 OK and set ups a call session. Now when session is

established between call manager and recording system. The call

manager sends two RTP streams in one call session one on port x and

other on x+2. My recording system don't send any RTP stream to call

manager. Now the I have to mix both the RTP sessions coming from the

call manager and record them.



So when I am using the API with the following params :

pjmedia_conf_connect(pjsua_var.mconf, call_info.conf_slot, recorder_port, 0)



Only one RTP session is recorded. Actually the two RTP streams coming

from call manager are two side audio conversation. One side audio

conversation is on one RTP stream. So we have to actually mix and

record them so as to record the actual bidirectional call

conversation. So the problem is that only one RTP stream gets recorded

and hence in recorded wav file we listen only one side audio. Please

help me in resolving this problem.





Any help is highly appreciated.





Regards:

Varun Singh




-----Inline Attachment Follows-----

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list

pjsip at lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


_______________________________________________

Visit our blog: http://blog.pjsip.org



pjsip mailing list

pjsip at lists.pjsip.org

http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org





-----Inline Attachment Follows-----

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip at lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20111001/54af8961/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux