[pjsip] %CPU 7.2

Alexei Kuznetsov eofster at gmail.com
Wed Apr 23 00:52:33 EDT 2008


Hi,

I'm using pjsua-lib from pjproject-0.8.0 and from the latest checkout  
on Mac OS X 10.5.2 (Intel). With the minimum code provided below, "ps  
aux" shows about 7.2 in %CPU. This is after "sound_port.c EC suspended  
because of inactivity" console output. Is that the way it should be?

#include <pjsua-lib/pjsua.h>

int
main(int argc, char *argv[])
{
	pjsua_create();
	pjsua_init(NULL, NULL, NULL);
	pjsua_start();

	for (;;) {
		char option[10];

		fgets(option, sizeof (option), stdin);

		if (option[0] == 'q')
			break;
	}

	pjsua_destroy();

	return 0;
}

-- 
Alexei Kuznetsov





More information about the pjsip mailing list