Maximum calls supported on PJSIP

JS
Jitendra Singh
Wed, Jan 16, 2013 10:56 AM

Hi Friends,

Can anyone please tell me what is the maximum number of calls supported
using PJSUA. I am working on a sip client developed using PJSUA APIs. I am
able to successfully test upto 500 calls.

I want to know the upper limit on the maximum number of calls supported
through any sip client developed using PJSUA.

Jitendra

Hi Friends, Can anyone please tell me what is the maximum number of calls supported using PJSUA. I am working on a sip client developed using PJSUA APIs. I am able to successfully test upto 500 calls. I want to know the upper limit on the maximum number of calls supported through any sip client developed using PJSUA. Jitendra
KP
Khoa Pham
Wed, Jan 16, 2013 11:08 AM

Hi Jitendra,

In* pjsua-lib/pjsua.h*, in pjsua_config structure, at* max_calls* they
noted

 ** Maximum calls to support (default: 4). The value specified here*
  • * must be smaller than the compile time maximum settings *
    
  • * PJSUA_MAX_CALLS, which by default is 32. To increase this *
    
  • * limit, the library must be recompiled with new PJSUA_MAX_CALLS*
    
  • * value.*
    
  • */*
    

How can you test up to 500 calls? Does that depend on the SIP server ?

On Wed, Jan 16, 2013 at 5:56 PM, Jitendra Singh <
jitendra.bhadoriya@one97.net> wrote:

Hi Friends,****


Can anyone please tell me what is the maximum number of calls supported
using PJSUA. I am working on a sip client developed using PJSUA APIs. I am
able to successfully test upto 500 calls. ****

I want to know the upper limit on the maximum number of calls supported
through any sip client developed using PJSUA.****


Jitendra ****



Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
Khoa Pham
HCMC University of Science
Faculty of Information Technology

Hi Jitendra, In* pjsua-lib/pjsua.h*, in *pjsua_config* structure, at* max_calls* they noted ** Maximum calls to support (default: 4). The value specified here* * * must be smaller than the compile time maximum settings * * * PJSUA_MAX_CALLS, which by default is 32. To increase this * * * limit, the library must be recompiled with new PJSUA_MAX_CALLS* * * value.* * */* How can you test up to 500 calls? Does that depend on the SIP server ? On Wed, Jan 16, 2013 at 5:56 PM, Jitendra Singh < jitendra.bhadoriya@one97.net> wrote: > Hi Friends,**** > > ** ** > > Can anyone please tell me what is the maximum number of calls supported > using PJSUA. I am working on a sip client developed using PJSUA APIs. I am > able to successfully test upto 500 calls. **** > > I want to know the upper limit on the maximum number of calls supported > through any sip client developed using PJSUA.**** > > ** ** > > Jitendra **** > > ** ** > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -- Khoa Pham HCMC University of Science Faculty of Information Technology
SK
Sandeep Karanth
Wed, Jan 16, 2013 11:09 AM

Hi,
I suppose you'v already increased to PJSUA_MAX_CALLS macro to the
number of calls of your need and also adjusted pjsua_cfg.max_calls to that
number. With these 2 being done the maximum calls supported depends on the
machine that you are using and the level of media processing. i.e If the
calls involve resampling or complex codecs then performance may be low. I
was only able to achieve around 200-300 calls reliably last year using a
core 2 duo hardware running windows 7 and and recording all calls. The
performance issue is because of the single clock thread that pjsua is using
for media processing.

On Wed, Jan 16, 2013 at 4:26 PM, Jitendra Singh <
jitendra.bhadoriya@one97.net> wrote:

Hi Friends,****


Can anyone please tell me what is the maximum number of calls supported
using PJSUA. I am working on a sip client developed using PJSUA APIs. I am
able to successfully test upto 500 calls. ****

I want to know the upper limit on the maximum number of calls supported
through any sip client developed using PJSUA.****


Jitendra ****



Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi, I suppose you'v already increased to PJSUA_MAX_CALLS macro to the number of calls of your need and also adjusted pjsua_cfg.max_calls to that number. With these 2 being done the maximum calls supported depends on the machine that you are using and the level of media processing. i.e If the calls involve resampling or complex codecs then performance may be low. I was only able to achieve around 200-300 calls reliably last year using a core 2 duo hardware running windows 7 and and recording all calls. The performance issue is because of the single clock thread that pjsua is using for media processing. On Wed, Jan 16, 2013 at 4:26 PM, Jitendra Singh < jitendra.bhadoriya@one97.net> wrote: > Hi Friends,**** > > ** ** > > Can anyone please tell me what is the maximum number of calls supported > using PJSUA. I am working on a sip client developed using PJSUA APIs. I am > able to successfully test upto 500 calls. **** > > I want to know the upper limit on the maximum number of calls supported > through any sip client developed using PJSUA.**** > > ** ** > > Jitendra **** > > ** ** > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
KP
Khoa Pham
Wed, Jan 16, 2013 11:15 AM

When reading PJSIP Dev Guide, section 1.2.3 Polling the stack

*PJSIP stack never creates threads. All execution throughout the stack runs
on *
*behalf of application’s created thread, either when an API is called or
when *
application calls the polling function
*
*
Is this what you're talking about?
And if yes, please show me the tool you used to make 200-300 calls, thanks

--
Khoa Pham
HCMC University of Science
Faculty of Information Technology

When reading PJSIP Dev Guide, section 1.2.3 Polling the stack *PJSIP stack never creates threads. All execution throughout the stack runs on * *behalf of application’s created thread, either when an API is called or when * *application calls the polling function* * * Is this what you're talking about? And if yes, please show me the tool you used to make 200-300 calls, thanks -- Khoa Pham HCMC University of Science Faculty of Information Technology
SK
Sandeep Karanth
Wed, Jan 16, 2013 11:24 AM

No. I was talking about the internal conference bridge created in pjsua_lib
which handles the media processing for pjsua. The below link has better
explaination

http://trac.pjsip.org/repos/wiki/FAQ#pjsua-lib-perf

I didnt use any tool to get 200-300 calls from pjsua. And btw I was doing
playback of a wave file and  not recording as i mentioned in a previous
mail. U just need to go to config_site.h and u can copy the config from
config_site_sample.h under  PJ_CONFIG_MAXIMUM_SPEED and then recompile and
try again.

On Wed, Jan 16, 2013 at 4:45 PM, Khoa Pham onmyway133@gmail.com wrote:

When reading PJSIP Dev Guide, section 1.2.3 Polling the stack

*PJSIP stack never creates threads. All execution throughout the stack
runs on *
*behalf of application’s created thread, either when an API is called or
when *
application calls the polling function
*
*
Is this what you're talking about?
And if yes, please show me the tool you used to make 200-300 calls, thanks

--
Khoa Pham
HCMC University of Science
Faculty of Information Technology


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

No. I was talking about the internal conference bridge created in pjsua_lib which handles the media processing for pjsua. The below link has better explaination http://trac.pjsip.org/repos/wiki/FAQ#pjsua-lib-perf I didnt use any tool to get 200-300 calls from pjsua. And btw I was doing playback of a wave file and not recording as i mentioned in a previous mail. U just need to go to config_site.h and u can copy the config from config_site_sample.h under PJ_CONFIG_MAXIMUM_SPEED and then recompile and try again. On Wed, Jan 16, 2013 at 4:45 PM, Khoa Pham <onmyway133@gmail.com> wrote: > When reading PJSIP Dev Guide, section 1.2.3 Polling the stack > > *PJSIP stack never creates threads. All execution throughout the stack > runs on * > *behalf of application’s created thread, either when an API is called or > when * > *application calls the polling function* > * > * > Is this what you're talking about? > And if yes, please show me the tool you used to make 200-300 calls, thanks > > > -- > Khoa Pham > HCMC University of Science > Faculty of Information Technology > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
JS
Jitendra Singh
Wed, Jan 16, 2013 1:17 PM

Friends  !! thanks for your inputs.

We can set the maximum number of simultaneously calls to be supported, by
setting following #defines :

define PJSUA_MAX_CALLS    (500)

define PJSUA_MAX_PLAYERS  500

Then compile pjproject and then link your sipclient binary with these
libraries.

My problem is, I want to increase number of calls so that my sipclient can
support say 1000 simultaneous calls. But when I try to configure say 600
calls (just to test whether more than 500 call supported or not), then at
the startup I get following log in pjsip log file:

18:05:44.674  pjsua_media.c  Unable to create media transport: Too many
objects of the specified type (PJ_ETOOMANY) [status=70010]

In this case Pjsip was able to open only 512 RTP and 512 RTCP sockets and
prints the following logs:

18:05:44.674  pjsua_media.c  RTP socket reachable at 10.0.6.141:41024

18:05:44.674  pjsua_media.c  RTCP socket reachable at 10.0.6.141:41025

Now My Question is, which variable needs to be tuned/changed inside the
PJSIP code, so that I can support more than 512 calls.

Thanks,
Jitendra Singh Bhadoriya

Technical Leader - One97 Communications Ltd
+91.9717123309

From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sandeep
Karanth
Sent: 16 January 2013 04:54 PM
To: pjsip list
Subject: Re: [pjsip] Maximum calls supported on PJSIP

No. I was talking about the internal conference bridge created in pjsua_lib
which handles the media processing for pjsua. The below link has better
explaination

http://trac.pjsip.org/repos/wiki/FAQ#pjsua-lib-perf

I didnt use any tool to get 200-300 calls from pjsua. And btw I was doing
playback of a wave file and  not recording as i mentioned in a previous
mail. U just need to go to config_site.h and u can copy the config from
config_site_sample.h under  PJ_CONFIG_MAXIMUM_SPEED and then recompile and
try again.

On Wed, Jan 16, 2013 at 4:45 PM, Khoa Pham onmyway133@gmail.com wrote:

When reading PJSIP Dev Guide, section 1.2.3 Polling the stack

PJSIP stack never creates threads. All execution throughout the stack runs
on

behalf of application's created thread, either when an API is called or when

application calls the polling function

Is this what you're talking about?

And if yes, please show me the tool you used to make 200-300 calls, thanks

--
Khoa Pham
HCMC University of Science
Faculty of Information Technology


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Friends !! thanks for your inputs. We can set the maximum number of simultaneously calls to be supported, by setting following #defines : # define PJSUA_MAX_CALLS (500) # define PJSUA_MAX_PLAYERS 500 Then compile pjproject and then link your sipclient binary with these libraries. My problem is, I want to increase number of calls so that my sipclient can support say 1000 simultaneous calls. But when I try to configure say 600 calls (just to test whether more than 500 call supported or not), then at the startup I get following log in pjsip log file: 18:05:44.674 pjsua_media.c Unable to create media transport: Too many objects of the specified type (PJ_ETOOMANY) [status=70010] In this case Pjsip was able to open only 512 RTP and 512 RTCP sockets and prints the following logs: 18:05:44.674 pjsua_media.c RTP socket reachable at 10.0.6.141:41024 18:05:44.674 pjsua_media.c RTCP socket reachable at 10.0.6.141:41025 Now My Question is, which variable needs to be tuned/changed inside the PJSIP code, so that I can support more than 512 calls. Thanks, Jitendra Singh Bhadoriya Technical Leader - One97 Communications Ltd +91.9717123309 From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sandeep Karanth Sent: 16 January 2013 04:54 PM To: pjsip list Subject: Re: [pjsip] Maximum calls supported on PJSIP No. I was talking about the internal conference bridge created in pjsua_lib which handles the media processing for pjsua. The below link has better explaination http://trac.pjsip.org/repos/wiki/FAQ#pjsua-lib-perf I didnt use any tool to get 200-300 calls from pjsua. And btw I was doing playback of a wave file and not recording as i mentioned in a previous mail. U just need to go to config_site.h and u can copy the config from config_site_sample.h under PJ_CONFIG_MAXIMUM_SPEED and then recompile and try again. On Wed, Jan 16, 2013 at 4:45 PM, Khoa Pham <onmyway133@gmail.com> wrote: When reading PJSIP Dev Guide, section 1.2.3 Polling the stack PJSIP stack never creates threads. All execution throughout the stack runs on behalf of application's created thread, either when an API is called or when application calls the polling function Is this what you're talking about? And if yes, please show me the tool you used to make 200-300 calls, thanks -- Khoa Pham HCMC University of Science Faculty of Information Technology _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
SK
Sandeep Karanth
Wed, Jan 16, 2013 1:28 PM

Try

define PJSUA_MAX_CALLS      1024****

define PJSUA_MAX_PLAYERS  1024

On Wed, Jan 16, 2013 at 6:47 PM, Jitendra Singh <
jitendra.bhadoriya@one97.net> wrote:

Friends  !! thanks for your inputs.****


We can set the maximum number of simultaneously calls to be supported, by
setting following #defines :****


define PJSUA_MAX_CALLS    (500)****

define PJSUA_MAX_PLAYERS  500****


Then compile pjproject and then link your sipclient binary with these
libraries.****


My problem is, I want to increase number of calls so that my sipclient can
support say 1000 simultaneous calls. But when I try to configure say 600
calls (just to test whether more than 500 call supported or not), then at
the startup I get following log in pjsip log file:****


18:05:44.674  pjsua_media.c  Unable to create media transport: Too many
objects of the specified type (PJ_ETOOMANY) [status=70010]


In this case Pjsip was able to open only 512 RTP and 512 RTCP sockets and
prints the following logs:****


18:05:44.674  pjsua_media.c  RTP socket reachable at 10.0.6.141:41024****

18:05:44.674  pjsua_media.c  RTCP socket reachable at 10.0.6.141:41025****


*Now My Question is, which variable needs to be tuned/changed inside the
PJSIP code, so that I can support more than 512 calls. *



Thanks,
Jitendra Singh Bhadoriya****

Technical Leader - One97 Communications Ltd
+91.9717123309****


From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sandeep
Karanth
Sent: 16 January 2013 04:54 PM
To: pjsip list
Subject: Re: [pjsip] Maximum calls supported on PJSIP
**


No. I was talking about the internal conference bridge created in
pjsua_lib which handles the media processing for pjsua. The below link has
better explaination ****


http://trac.pjsip.org/repos/wiki/FAQ#pjsua-lib-perf

I didnt use any tool to get 200-300 calls from pjsua. And btw I was doing
playback of a wave file and  not recording as i mentioned in a previous
mail. U just need to go to config_site.h and u can copy the config from
config_site_sample.h under  PJ_CONFIG_MAXIMUM_SPEED and then recompile and
try again.****

On Wed, Jan 16, 2013 at 4:45 PM, Khoa Pham onmyway133@gmail.com wrote:**
**

When reading PJSIP Dev Guide, section 1.2.3 Polling the stack****


*PJSIP stack never creates threads. All execution throughout the stack
runs on *****

*behalf of application’s created thread, either when an API is called or
when *****

application calls the polling function****


Is this what you're talking about? ****

And if yes, please show me the tool you used to make 200-300 calls, thanks




--
Khoa Pham
HCMC University of Science
Faculty of Information Technology****


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org****



Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Try # define PJSUA_MAX_CALLS 1024**** # define PJSUA_MAX_PLAYERS 1024 On Wed, Jan 16, 2013 at 6:47 PM, Jitendra Singh < jitendra.bhadoriya@one97.net> wrote: > Friends !! thanks for your inputs.**** > > ** ** > > We can set the maximum number of simultaneously calls to be supported, by > setting following #defines :**** > > ** ** > > # define PJSUA_MAX_CALLS (500)**** > > # define PJSUA_MAX_PLAYERS 500**** > > ** ** > > Then compile pjproject and then link your sipclient binary with these > libraries.**** > > ** ** > > My problem is, I want to increase number of calls so that my sipclient can > support say 1000 simultaneous calls. But when I try to configure say 600 > calls (just to test whether more than 500 call supported or not), then at > the startup I get following log in pjsip log file:**** > > ** ** > > 18:05:44.674 pjsua_media.c *Unable to create media transport: Too many > objects of the specified type (PJ_ETOOMANY) [status=70010]* > > ** ** > > In this case Pjsip was able to open only 512 RTP and 512 RTCP sockets and > prints the following logs:**** > > ** ** > > 18:05:44.674 pjsua_media.c RTP socket reachable at 10.0.6.141:41024**** > > 18:05:44.674 pjsua_media.c RTCP socket reachable at 10.0.6.141:41025**** > > ** ** > > *Now My Question is, which variable needs to be tuned/changed inside the > PJSIP code, so that I can support more than 512 calls. * > > ** ** > > ** ** > > Thanks, > Jitendra Singh Bhadoriya**** > > Technical Leader - One97 Communications Ltd > +91.9717123309**** > > ** ** > > *From:* pjsip [mailto:pjsip-bounces@lists.pjsip.org] *On Behalf Of *Sandeep > Karanth > *Sent:* 16 January 2013 04:54 PM > *To:* pjsip list > *Subject:* Re: [pjsip] Maximum calls supported on PJSIP**** > > ** ** > > No. I was talking about the internal conference bridge created in > pjsua_lib which handles the media processing for pjsua. The below link has > better explaination **** > > ** ** > > http://trac.pjsip.org/repos/wiki/FAQ#pjsua-lib-perf > > I didnt use any tool to get 200-300 calls from pjsua. And btw I was doing > playback of a wave file and not recording as i mentioned in a previous > mail. U just need to go to config_site.h and u can copy the config from > config_site_sample.h under PJ_CONFIG_MAXIMUM_SPEED and then recompile and > try again.**** > > On Wed, Jan 16, 2013 at 4:45 PM, Khoa Pham <onmyway133@gmail.com> wrote:** > ** > > When reading PJSIP Dev Guide, section 1.2.3 Polling the stack**** > > ** ** > > *PJSIP stack never creates threads. All execution throughout the stack > runs on ***** > > *behalf of application’s created thread, either when an API is called or > when ***** > > *application calls the polling function***** > > ** ** > > Is this what you're talking about? **** > > And if yes, please show me the tool you used to make 200-300 calls, thanks > **** > > > **** > > ** ** > > -- > Khoa Pham > HCMC University of Science > Faculty of Information Technology**** > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org**** > > ** ** > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
JS
Jitendra Singh
Wed, Jan 16, 2013 1:33 PM

Hi Sandeep,

I have already done that but didn't mention in the mail. I set both of these
to 600 (for testing 600 calls). But I think some internal parameter in pjsua
also need to be changed to increase the maximum calls and currently these
parameters are configured to 512. I want to know the variables which need to
be changed.

Thanks,
Jitendra Singh Bhadoriya

Technical Leader - One97 Communications Ltd
+91.9717123309

From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sandeep
Karanth
Sent: 16 January 2013 06:58 PM
To: pjsip list
Subject: Re: [pjsip] Maximum calls supported on PJSIP

Try

define PJSUA_MAX_CALLS      1024

define PJSUA_MAX_PLAYERS  1024

On Wed, Jan 16, 2013 at 6:47 PM, Jitendra Singh
jitendra.bhadoriya@one97.net wrote:

Friends  !! thanks for your inputs.

We can set the maximum number of simultaneously calls to be supported, by
setting following #defines :

define PJSUA_MAX_CALLS    (500)

define PJSUA_MAX_PLAYERS  500

Then compile pjproject and then link your sipclient binary with these
libraries.

My problem is, I want to increase number of calls so that my sipclient can
support say 1000 simultaneous calls. But when I try to configure say 600
calls (just to test whether more than 500 call supported or not), then at
the startup I get following log in pjsip log file:

18:05:44.674  pjsua_media.c  Unable to create media transport: Too many
objects of the specified type (PJ_ETOOMANY) [status=70010]

In this case Pjsip was able to open only 512 RTP and 512 RTCP sockets and
prints the following logs:

18:05:44.674  pjsua_media.c  RTP socket reachable at 10.0.6.141:41024

18:05:44.674  pjsua_media.c  RTCP socket reachable at 10.0.6.141:41025

Now My Question is, which variable needs to be tuned/changed inside the
PJSIP code, so that I can support more than 512 calls.

Thanks,
Jitendra Singh Bhadoriya

Technical Leader - One97 Communications Ltd
+91.9717123309 tel:%2B91.9717123309

From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sandeep
Karanth
Sent: 16 January 2013 04:54 PM
To: pjsip list
Subject: Re: [pjsip] Maximum calls supported on PJSIP

No. I was talking about the internal conference bridge created in pjsua_lib
which handles the media processing for pjsua. The below link has better
explaination

http://trac.pjsip.org/repos/wiki/FAQ#pjsua-lib-perf

I didnt use any tool to get 200-300 calls from pjsua. And btw I was doing
playback of a wave file and  not recording as i mentioned in a previous
mail. U just need to go to config_site.h and u can copy the config from
config_site_sample.h under  PJ_CONFIG_MAXIMUM_SPEED and then recompile and
try again.

On Wed, Jan 16, 2013 at 4:45 PM, Khoa Pham onmyway133@gmail.com wrote:

When reading PJSIP Dev Guide, section 1.2.3 Polling the stack

PJSIP stack never creates threads. All execution throughout the stack runs
on

behalf of application's created thread, either when an API is called or when

application calls the polling function

Is this what you're talking about?

And if yes, please show me the tool you used to make 200-300 calls, thanks

--
Khoa Pham
HCMC University of Science
Faculty of Information Technology


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi Sandeep, I have already done that but didn't mention in the mail. I set both of these to 600 (for testing 600 calls). But I think some internal parameter in pjsua also need to be changed to increase the maximum calls and currently these parameters are configured to 512. I want to know the variables which need to be changed. Thanks, Jitendra Singh Bhadoriya Technical Leader - One97 Communications Ltd +91.9717123309 From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sandeep Karanth Sent: 16 January 2013 06:58 PM To: pjsip list Subject: Re: [pjsip] Maximum calls supported on PJSIP Try # define PJSUA_MAX_CALLS 1024 # define PJSUA_MAX_PLAYERS 1024 On Wed, Jan 16, 2013 at 6:47 PM, Jitendra Singh <jitendra.bhadoriya@one97.net> wrote: Friends !! thanks for your inputs. We can set the maximum number of simultaneously calls to be supported, by setting following #defines : # define PJSUA_MAX_CALLS (500) # define PJSUA_MAX_PLAYERS 500 Then compile pjproject and then link your sipclient binary with these libraries. My problem is, I want to increase number of calls so that my sipclient can support say 1000 simultaneous calls. But when I try to configure say 600 calls (just to test whether more than 500 call supported or not), then at the startup I get following log in pjsip log file: 18:05:44.674 pjsua_media.c Unable to create media transport: Too many objects of the specified type (PJ_ETOOMANY) [status=70010] In this case Pjsip was able to open only 512 RTP and 512 RTCP sockets and prints the following logs: 18:05:44.674 pjsua_media.c RTP socket reachable at 10.0.6.141:41024 18:05:44.674 pjsua_media.c RTCP socket reachable at 10.0.6.141:41025 Now My Question is, which variable needs to be tuned/changed inside the PJSIP code, so that I can support more than 512 calls. Thanks, Jitendra Singh Bhadoriya Technical Leader - One97 Communications Ltd +91.9717123309 <tel:%2B91.9717123309> From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sandeep Karanth Sent: 16 January 2013 04:54 PM To: pjsip list Subject: Re: [pjsip] Maximum calls supported on PJSIP No. I was talking about the internal conference bridge created in pjsua_lib which handles the media processing for pjsua. The below link has better explaination http://trac.pjsip.org/repos/wiki/FAQ#pjsua-lib-perf I didnt use any tool to get 200-300 calls from pjsua. And btw I was doing playback of a wave file and not recording as i mentioned in a previous mail. U just need to go to config_site.h and u can copy the config from config_site_sample.h under PJ_CONFIG_MAXIMUM_SPEED and then recompile and try again. On Wed, Jan 16, 2013 at 4:45 PM, Khoa Pham <onmyway133@gmail.com> wrote: When reading PJSIP Dev Guide, section 1.2.3 Polling the stack PJSIP stack never creates threads. All execution throughout the stack runs on behalf of application's created thread, either when an API is called or when application calls the polling function Is this what you're talking about? And if yes, please show me the tool you used to make 200-300 calls, thanks -- Khoa Pham HCMC University of Science Faculty of Information Technology _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
OH
Omar Hussein
Wed, Jan 16, 2013 2:22 PM

Try

PJ_IOQUEUE_MAX_HANDLES

Regards
Omar

On 17/01/2013, at 12:33 AM, "Jitendra Singh" jitendra.bhadoriya@one97.net wrote:

Hi Sandeep,

I have already done that but didn’t mention in the mail. I set both of these to 600 (for testing 600 calls). But I think some internal parameter in pjsua also need to be changed to increase the maximum calls and currently these parameters are configured to 512. I want to know the variables which need to be changed.

Thanks,
Jitendra Singh Bhadoriya
Technical Leader - One97 Communications Ltd
+91.9717123309

From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sandeep Karanth
Sent: 16 January 2013 06:58 PM
To: pjsip list
Subject: Re: [pjsip] Maximum calls supported on PJSIP

Try

define PJSUA_MAX_CALLS      1024

define PJSUA_MAX_PLAYERS  1024

On Wed, Jan 16, 2013 at 6:47 PM, Jitendra Singh jitendra.bhadoriya@one97.net wrote:
Friends  !! thanks for your inputs.

We can set the maximum number of simultaneously calls to be supported, by setting following #defines :

define PJSUA_MAX_CALLS    (500)

define PJSUA_MAX_PLAYERS  500

Then compile pjproject and then link your sipclient binary with these libraries.

My problem is, I want to increase number of calls so that my sipclient can support say 1000 simultaneous calls. But when I try to configure say 600 calls (just to test whether more than 500 call supported or not), then at the startup I get following log in pjsip log file:

18:05:44.674  pjsua_media.c  Unable to create media transport: Too many objects of the specified type (PJ_ETOOMANY) [status=70010]

In this case Pjsip was able to open only 512 RTP and 512 RTCP sockets and prints the following logs:

18:05:44.674  pjsua_media.c  RTP socket reachable at 10.0.6.141:41024
18:05:44.674  pjsua_media.c  RTCP socket reachable at 10.0.6.141:41025

Now My Question is, which variable needs to be tuned/changed inside the PJSIP code, so that I can support more than 512 calls.

Thanks,
Jitendra Singh Bhadoriya
Technical Leader - One97 Communications Ltd
+91.9717123309

From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sandeep Karanth
Sent: 16 January 2013 04:54 PM
To: pjsip list
Subject: Re: [pjsip] Maximum calls supported on PJSIP

No. I was talking about the internal conference bridge created in pjsua_lib which handles the media processing for pjsua. The below link has better explaination

http://trac.pjsip.org/repos/wiki/FAQ#pjsua-lib-perf

I didnt use any tool to get 200-300 calls from pjsua. And btw I was doing playback of a wave file and  not recording as i mentioned in a previous mail. U just need to go to config_site.h and u can copy the config from config_site_sample.h under  PJ_CONFIG_MAXIMUM_SPEED and then recompile and try again.

On Wed, Jan 16, 2013 at 4:45 PM, Khoa Pham onmyway133@gmail.com wrote:
When reading PJSIP Dev Guide, section 1.2.3 Polling the stack

PJSIP stack never creates threads. All execution throughout the stack runs on
behalf of application’s created thread, either when an API is called or when
application calls the polling function

Is this what you're talking about?
And if yes, please show me the tool you used to make 200-300 calls, thanks

--
Khoa Pham
HCMC University of Science
Faculty of Information Technology


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Try PJ_IOQUEUE_MAX_HANDLES Regards Omar On 17/01/2013, at 12:33 AM, "Jitendra Singh" <jitendra.bhadoriya@one97.net> wrote: > Hi Sandeep, > > I have already done that but didn’t mention in the mail. I set both of these to 600 (for testing 600 calls). But I think some internal parameter in pjsua also need to be changed to increase the maximum calls and currently these parameters are configured to 512. I want to know the variables which need to be changed. > > Thanks, > Jitendra Singh Bhadoriya > Technical Leader - One97 Communications Ltd > +91.9717123309 > > From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sandeep Karanth > Sent: 16 January 2013 06:58 PM > To: pjsip list > Subject: Re: [pjsip] Maximum calls supported on PJSIP > > Try > # define PJSUA_MAX_CALLS 1024 > # define PJSUA_MAX_PLAYERS 1024 > > On Wed, Jan 16, 2013 at 6:47 PM, Jitendra Singh <jitendra.bhadoriya@one97.net> wrote: > Friends !! thanks for your inputs. > > We can set the maximum number of simultaneously calls to be supported, by setting following #defines : > > # define PJSUA_MAX_CALLS (500) > # define PJSUA_MAX_PLAYERS 500 > > Then compile pjproject and then link your sipclient binary with these libraries. > > My problem is, I want to increase number of calls so that my sipclient can support say 1000 simultaneous calls. But when I try to configure say 600 calls (just to test whether more than 500 call supported or not), then at the startup I get following log in pjsip log file: > > 18:05:44.674 pjsua_media.c Unable to create media transport: Too many objects of the specified type (PJ_ETOOMANY) [status=70010] > > In this case Pjsip was able to open only 512 RTP and 512 RTCP sockets and prints the following logs: > > 18:05:44.674 pjsua_media.c RTP socket reachable at 10.0.6.141:41024 > 18:05:44.674 pjsua_media.c RTCP socket reachable at 10.0.6.141:41025 > > Now My Question is, which variable needs to be tuned/changed inside the PJSIP code, so that I can support more than 512 calls. > > > Thanks, > Jitendra Singh Bhadoriya > Technical Leader - One97 Communications Ltd > +91.9717123309 > > From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sandeep Karanth > Sent: 16 January 2013 04:54 PM > To: pjsip list > Subject: Re: [pjsip] Maximum calls supported on PJSIP > > No. I was talking about the internal conference bridge created in pjsua_lib which handles the media processing for pjsua. The below link has better explaination > > http://trac.pjsip.org/repos/wiki/FAQ#pjsua-lib-perf > > I didnt use any tool to get 200-300 calls from pjsua. And btw I was doing playback of a wave file and not recording as i mentioned in a previous mail. U just need to go to config_site.h and u can copy the config from config_site_sample.h under PJ_CONFIG_MAXIMUM_SPEED and then recompile and try again. > > On Wed, Jan 16, 2013 at 4:45 PM, Khoa Pham <onmyway133@gmail.com> wrote: > When reading PJSIP Dev Guide, section 1.2.3 Polling the stack > > PJSIP stack never creates threads. All execution throughout the stack runs on > behalf of application’s created thread, either when an API is called or when > application calls the polling function > > Is this what you're talking about? > And if yes, please show me the tool you used to make 200-300 calls, thanks > > > -- > Khoa Pham > HCMC University of Science > Faculty of Information Technology > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
JS
Jitendra Singh
Fri, Feb 1, 2013 11:39 AM

Thanks everyone for their suggestions.

Following steps can be taken to increase number of calls supported on PJSIP:

Example: If you have to increase simultaneous calls to 1000 change the following:

  1.   Change PJSUA_MAX_CALLS to 1000 and PJSUA_MAX_ACC to 1000
    
  2.   Change PJ_IOQUEUE_MAX_HANDLES to 2000 (double of desired number of calls).
    
  3.   Change __FD_SETSIZE to double to 2000 (double of desired number of calls).
    
  4.   Change PJSUA_MAX_PLAYERS to 1000.
    
  5.   Recompile pjsip using following steps:
    

a.      ./configure --disable-ssl --disable-sound;

b.      make dep

c.      make

d.      make install

  1.   Recompile your application with new libs.
    

Thanks,

Jitendra Singh

From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Omar Hussein
Sent: 16 January 2013 07:53 PM
To: pjsip list
Subject: Re: [pjsip] Maximum calls supported on PJSIP

Try

PJ_IOQUEUE_MAX_HANDLES

Regards

Omar

On 17/01/2013, at 12:33 AM, "Jitendra Singh" jitendra.bhadoriya@one97.net wrote:

Hi Sandeep,

I have already done that but didn’t mention in the mail. I set both of these to 600 (for testing 600 calls). But I think some internal parameter in pjsua also need to be changed to increase the maximum calls and currently these parameters are configured to 512. I want to know the variables which need to be changed.

Thanks,
Jitendra Singh Bhadoriya

Technical Leader - One97 Communications Ltd
+91.9717123309

From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sandeep Karanth
Sent: 16 January 2013 06:58 PM
To: pjsip list
Subject: Re: [pjsip] Maximum calls supported on PJSIP

Try

define PJSUA_MAX_CALLS      1024

define PJSUA_MAX_PLAYERS  1024

On Wed, Jan 16, 2013 at 6:47 PM, Jitendra Singh jitendra.bhadoriya@one97.net wrote:

Friends  !! thanks for your inputs.

We can set the maximum number of simultaneously calls to be supported, by setting following #defines :

define PJSUA_MAX_CALLS    (500)

define PJSUA_MAX_PLAYERS  500

Then compile pjproject and then link your sipclient binary with these libraries.

My problem is, I want to increase number of calls so that my sipclient can support say 1000 simultaneous calls. But when I try to configure say 600 calls (just to test whether more than 500 call supported or not), then at the startup I get following log in pjsip log file:

18:05:44.674  pjsua_media.c  Unable to create media transport: Too many objects of the specified type (PJ_ETOOMANY) [status=70010]

In this case Pjsip was able to open only 512 RTP and 512 RTCP sockets and prints the following logs:

18:05:44.674  pjsua_media.c  RTP socket reachable at 10.0.6.141:41024

18:05:44.674  pjsua_media.c  RTCP socket reachable at 10.0.6.141:41025

Now My Question is, which variable needs to be tuned/changed inside the PJSIP code, so that I can support more than 512 calls.

Thanks,
Jitendra Singh Bhadoriya

Technical Leader - One97 Communications Ltd
+91.9717123309 tel:%2B91.9717123309

From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sandeep Karanth
Sent: 16 January 2013 04:54 PM
To: pjsip list
Subject: Re: [pjsip] Maximum calls supported on PJSIP

No. I was talking about the internal conference bridge created in pjsua_lib which handles the media processing for pjsua. The below link has better explaination

http://trac.pjsip.org/repos/wiki/FAQ#pjsua-lib-perf

I didnt use any tool to get 200-300 calls from pjsua. And btw I was doing playback of a wave file and  not recording as i mentioned in a previous mail. U just need to go to config_site.h and u can copy the config from config_site_sample.h under  PJ_CONFIG_MAXIMUM_SPEED and then recompile and try again.

On Wed, Jan 16, 2013 at 4:45 PM, Khoa Pham onmyway133@gmail.com wrote:

When reading PJSIP Dev Guide, section 1.2.3 Polling the stack

PJSIP stack never creates threads. All execution throughout the stack runs on

behalf of application’s created thread, either when an API is called or when

application calls the polling function

Is this what you're talking about?

And if yes, please show me the tool you used to make 200-300 calls, thanks

--
Khoa Pham
HCMC University of Science
Faculty of Information Technology


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Thanks everyone for their suggestions. Following steps can be taken to increase number of calls supported on PJSIP: Example: If you have to increase simultaneous calls to 1000 change the following: 1. Change PJSUA_MAX_CALLS to 1000 and PJSUA_MAX_ACC to 1000 2. Change PJ_IOQUEUE_MAX_HANDLES to 2000 (double of desired number of calls). 3. Change __FD_SETSIZE to double to 2000 (double of desired number of calls). 4. Change PJSUA_MAX_PLAYERS to 1000. 5. Recompile pjsip using following steps: a. ./configure --disable-ssl --disable-sound; b. make dep c. make d. make install 6. Recompile your application with new libs. Thanks, Jitendra Singh From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Omar Hussein Sent: 16 January 2013 07:53 PM To: pjsip list Subject: Re: [pjsip] Maximum calls supported on PJSIP Try PJ_IOQUEUE_MAX_HANDLES Regards Omar On 17/01/2013, at 12:33 AM, "Jitendra Singh" <jitendra.bhadoriya@one97.net> wrote: Hi Sandeep, I have already done that but didn’t mention in the mail. I set both of these to 600 (for testing 600 calls). But I think some internal parameter in pjsua also need to be changed to increase the maximum calls and currently these parameters are configured to 512. I want to know the variables which need to be changed. Thanks, Jitendra Singh Bhadoriya Technical Leader - One97 Communications Ltd +91.9717123309 From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sandeep Karanth Sent: 16 January 2013 06:58 PM To: pjsip list Subject: Re: [pjsip] Maximum calls supported on PJSIP Try # define PJSUA_MAX_CALLS 1024 # define PJSUA_MAX_PLAYERS 1024 On Wed, Jan 16, 2013 at 6:47 PM, Jitendra Singh <jitendra.bhadoriya@one97.net> wrote: Friends !! thanks for your inputs. We can set the maximum number of simultaneously calls to be supported, by setting following #defines : # define PJSUA_MAX_CALLS (500) # define PJSUA_MAX_PLAYERS 500 Then compile pjproject and then link your sipclient binary with these libraries. My problem is, I want to increase number of calls so that my sipclient can support say 1000 simultaneous calls. But when I try to configure say 600 calls (just to test whether more than 500 call supported or not), then at the startup I get following log in pjsip log file: 18:05:44.674 pjsua_media.c Unable to create media transport: Too many objects of the specified type (PJ_ETOOMANY) [status=70010] In this case Pjsip was able to open only 512 RTP and 512 RTCP sockets and prints the following logs: 18:05:44.674 pjsua_media.c RTP socket reachable at 10.0.6.141:41024 18:05:44.674 pjsua_media.c RTCP socket reachable at 10.0.6.141:41025 Now My Question is, which variable needs to be tuned/changed inside the PJSIP code, so that I can support more than 512 calls. Thanks, Jitendra Singh Bhadoriya Technical Leader - One97 Communications Ltd +91.9717123309 <tel:%2B91.9717123309> From: pjsip [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sandeep Karanth Sent: 16 January 2013 04:54 PM To: pjsip list Subject: Re: [pjsip] Maximum calls supported on PJSIP No. I was talking about the internal conference bridge created in pjsua_lib which handles the media processing for pjsua. The below link has better explaination http://trac.pjsip.org/repos/wiki/FAQ#pjsua-lib-perf I didnt use any tool to get 200-300 calls from pjsua. And btw I was doing playback of a wave file and not recording as i mentioned in a previous mail. U just need to go to config_site.h and u can copy the config from config_site_sample.h under PJ_CONFIG_MAXIMUM_SPEED and then recompile and try again. On Wed, Jan 16, 2013 at 4:45 PM, Khoa Pham <onmyway133@gmail.com> wrote: When reading PJSIP Dev Guide, section 1.2.3 Polling the stack PJSIP stack never creates threads. All execution throughout the stack runs on behalf of application’s created thread, either when an API is called or when application calls the polling function Is this what you're talking about? And if yes, please show me the tool you used to make 200-300 calls, thanks -- Khoa Pham HCMC University of Science Faculty of Information Technology _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org