Call Recording

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

 



Hi,

Thank you . This works, i dont know exactly the technical point of it but
when we connect the sound port its just fine.

Can we have a single call's audio come on two different speakers at the same
time?

Regards,
Ravi

On Wed, Sep 15, 2010 at 5:58 PM, peteryzwei <peteryzwei at yahoo.com> wrote:

>  Ravi,
>   this code below works for me:
>
>
>     if (app_config.rec_id == -1) {
>         status = pjsua_recorder_create(&filename, 0, NULL, -1, 0,
> &app_config.rec_id);
>         if (status != PJ_SUCCESS) {
>             pjsua_perror(THIS_FILE, "error dll_startAudioCapture from
> pjsua_recorder_create", status);
>         } else {
>             app_config.rec_port =
> pjsua_recorder_get_conf_port(app_config.rec_id);
>             PJ_LOG(5, (THIS_FILE, "dll_startAudioCapture recId=%d
> confPort=%d", app_config.rec_id, app_config.rec_port));
>             /* connect sound port to recorder port */
>             status = pjmedia_conf_connect_port(pjsua_var.mconf, 0,
> app_config.rec_port, 0);
>             if (status != PJ_SUCCESS) {
>                 pjsua_perror(THIS_FILE, "error dll_startAudioCapture
> pjmedia_conf_connect_port snd->recport", status);
>             }
>             /* connect caller's port to recorder port */
>             status = pjmedia_conf_connect_port(pjsua_var.mconf,
> call_info.conf_slot, app_config.rec_port, 0);
>             if (status != PJ_SUCCESS) {
>                 pjsua_perror(THIS_FILE, "error dll_startAudioCapture
> pjmedia_conf_connect_port caller->recport", status);
>             }
>
>             //boost callTaker's and caller audio levels as configured
>             if ((status = pjmedia_conf_adjust_rx_level(pjsua_var.mconf,
> pjsua_var.recorder[app_config.rec_id].slot, g_audCapClientBoost)) ==
> PJ_SUCCESS) {
>                 PJ_LOG(5, (THIS_FILE, "dll_startAudioCapture
> pjmedia_conf_adjust_rx_level by %d", g_audCapClientBoost));
>             } else {
>                 pjsua_perror(THIS_FILE, "Error dll_startAudioCapture
> pjmedia_conf_adjust_rx_level", status);
>             }
>             if ((status = pjmedia_conf_adjust_tx_level(pjsua_var.mconf,
> pjsua_var.recorder[app_config.rec_id].slot, g_audCapServerBoost)) ==
> PJ_SUCCESS) {
>                 PJ_LOG(5, (THIS_FILE, "dll_startAudioCapture
> pjmedia_conf_adjust_tx_level by %d", g_audCapServerBoost));
>             } else {
>                 pjsua_perror(THIS_FILE, "Error dll_startAudioCapture
> pjmedia_conf_adjust_tx_level", status);
>             }
>         }
>     } else {
>         PJ_LOG(5, (THIS_FILE, "dll_startAudioCapture recorder already in
> running"));
>     }
>
>  ------------------------------
> *From:* Ravi Kanth <k.ravikanthreddy at gmail.com>
> *To:* pjsip list <pjsip at lists.pjsip.org>
> *Sent:* Tue, September 14, 2010 10:34:57 AM
> *Subject:* [pjsip] Call Recording
>
> Hi,
>
> Here i am trying to record all the audio in a call to a wav file.
> I have used the option of the auto recording in media state which does the
> same.
> but the problem here is if i call from A to B , i am successful in
> recording audio from B, but the audio from A which is from the microphone is
> not recorded. The microphone works good and the audio from A can be heard at
> B aswell, but not able to record into the wav file.
>
> Please suggest this is an emengency!!!!
>
> Thanks,
> Ravi
>
>
> _______________________________________________
> 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/20100915/94c1d75a/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