Symbain_ua_gui call recorder

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

 



this is the code i have been using..

void record()
	{
	pj_str_t		    rec_file;
	  pjsua_recorder_id	    rec_id ;
	   pjsua_conf_port_id	    rec_port;

	pjsua_call_info call_info;
	pj_status_t status;
	pjsua_call_get_info(g_call_id, &call_info);
	//rec_file = pj_str("./record.wav");
	rec_id=-1;
	
	        status = pjsua_recorder_create(&rec_file, 0, NULL, -1, 0,&rec_id);
	
        if (status != PJ_SUCCESS) {
	            pjsua_perror(THIS_FILE, "error dll_startAudioCapture from
pjsua_recorder_create", status);
        }
        else
        	{
	             rec_port = pjsua_recorder_get_conf_port( rec_id);
	            PJ_LOG(5, (THIS_FILE, "dll_startAudioCapture recId=%d
confPort=%d", rec_id,  rec_port));
	            /* connect sound port to recorder port */
	            status = pjmedia_conf_connect_port(pjsua_var.mconf, 0,
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,  rec_port, 0);
	            if (status != PJ_SUCCESS) {
	                pjsua_perror(THIS_FILE, "error dll_startAudioCapture
pjmedia_conf_connect_port caller->recport", status);
	
	            }
        	}


when i execute this on my s60v5, i get "error dll_startAudioCapture
from pjsua_recorder_create"

please help me

On 3/12/13, Zeeshan Ali <z.satan666 at gmail.com> wrote:
> please reply.. I need to implement call recording by pjsua recorder
> create and not by pjmedia..
>
> On 3/11/13, Zeeshan Ali <z.satan666 at gmail.com> wrote:
>> Hi,
>>
>> I have been working on symbian_ua_gui available in 2.1.0 version of
>> pjsip.
>>
>> I added support for volume + - and switching audio source on vas direct.
>>
>> I have been trying to implement call recording feature. Can you please
>> provide me the module for call recording in wave for symbian_ua.cpp
>> file in symbian_ua_gui.
>>
>> It's kinda urgent and i please request you to look at it and give me a
>> module for it.
>>
>> Zeeshan
>>
>



[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