[pjsip] Clarification of the --thread-cnt=N option PJSUA

Nauman Sulaiman nauman762-home at yahoo.co.uk
Fri Aug 13 12:04:51 CDT 2010

Hi, using on Debian Linux box latest version of PJSUA. Just wanted someone to confirm this, the --thread-cnt=N option
with PJSUA softphone , is this so that one can receive multiple 
calls simultaneously. For example the callback function 

static void on_incoming_call(pjsua_acc_id acc_id, pjsua_call_id call_id,
                             pjsip_rx_data *rdata)

if i have 10 accounts registered, will this callback be called on a different
thread depending on the --thread-cnt=N setting. So if i want to answer 10 calls simultaneously do i need to have --thread-cnt=10. 

Other questions, if anyone can please answer

1.Is there any limit to the number of registered accounts, can i set it to 1000,10000 ??

2. Is there any limit to the number of sip worker threads

3. Regarding the answering of incoming calls, does the --max-calls=N
affect this and what is its relation to the number of sip worker threads



More information about the pjsip mailing list