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@xxxxxxxxx> To: pjsip list <pjsip at lists.pjsip.org> Sent: Tue, September 14, 2010 10:34:57 AM Subject: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100915/cab61fde/attachment.html>