pjsua_set_no_snd_dev causes crash

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

 



Good day again!

I, possible, found what you need. In my call implementation(then I make call
FROM pjsip) I have next method:

//////////////////////////////////////////////////////////////
void PjsipClient::call(CString csAddress)
{
	pj_status_t status;
	pjsua_call_setting call_setting;
	pj_str_t uri2 = pj_str(csAddress.GetBuffer());

	pj_assert(currentCall_ == -1);

	pjsua_call_setting_default(&call_setting);
	call_setting.vid_cnt = 1;
	//call_setting.aud_cnt = 0; // -disable audio

	status = pjsua_call_make_call(accountId_, &uri2, &call_setting,
		NULL, NULL, &currentCall_);
	if (status != PJ_SUCCESS) {
		showError("make call", status);
		return;
	}
}
//////////////////////////////////////////////////////////////

Pay more attention at commented line
//call_setting.aud_cnt = 0; // -disable audio
by default call_setting.aud_cnt value is "One". I used call_setting for enable
video. Possible, in that way you can switch off audio if set 
call_setting.aud_cnt = 0

try and post you answer(does it help you?)




[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