Maximum Number of Simultaneous Calls Supported by PJSIP in Python Using SWIG

PK
Pavan Kumar
Wed, Jul 17, 2024 7:33 PM

Hello,

I am currently working on a project using PJSIP with Python via SWIG and am
trying to determine the maximum number of simultaneous calls that can be
supported by such an application. My main concern is that Python typically
runs in a single thread. Could this be a significant limitation for
handling multiple concurrent calls?

Thanks and regards,
Pavan Kumar

Hello, I am currently working on a project using PJSIP with Python via SWIG and am trying to determine the maximum number of simultaneous calls that can be supported by such an application. My main concern is that Python typically runs in a single thread. Could this be a significant limitation for handling multiple concurrent calls? Thanks and regards, Pavan Kumar
AW
Andreas Wehrmann
Wed, Jul 17, 2024 9:29 PM

Am 17.07.2024 um 21:33 schrieb Pavan Kumar:

Hello,

I am currently working on a project using PJSIP with Python via SWIG
and am trying to determine the maximum number of simultaneous calls
that can be supported by such an application. My main concern is that
Python typically runs in a single thread. Could this be a significant
limitation for handling multiple concurrent calls?

Thanks and regards,
Pavan Kumar

Hey there,

the audio and SIP threads run independently of your Python threads, so
this shouldn't be an issue.
Be aware though, that the conference bridge usually runs in a single
thread and as such you're limited
to what the confbridge is able to do within one clock tick.
If you limit yourself to G.711 and avoid resampling you should be able
to handle 300-400 calls without a problem.
But you would need to do your own benchmarking because it heavily
depends on your target machine of course  :-)

Best regards,
Andreas

Am 17.07.2024 um 21:33 schrieb Pavan Kumar: > Hello, > > I am currently working on a project using PJSIP with Python via SWIG > and am trying to determine the maximum number of simultaneous calls > that can be supported by such an application. My main concern is that > Python typically runs in a single thread. Could this be a significant > limitation for handling multiple concurrent calls? > > > Thanks and regards, > Pavan Kumar Hey there, the audio and SIP threads run independently of your Python threads, so this shouldn't be an issue. Be aware though, that the conference bridge usually runs in a single thread and as such you're limited to what the confbridge is able to do within one clock tick. If you limit yourself to G.711 and avoid resampling you should be able to handle 300-400 calls without a problem. But you would need to do your own benchmarking because it heavily depends on your target machine of course  :-) Best regards, Andreas
PK
Pavan Kumar
Thu, Jul 18, 2024 2:47 AM

Thanks Andreas,

On Thu, Jul 18, 2024 at 2:59 AM Andreas Wehrmann a.wehrmann@yandex.com
wrote:

Am 17.07.2024 um 21:33 schrieb Pavan Kumar:

Hello,

I am currently working on a project using PJSIP with Python via SWIG
and am trying to determine the maximum number of simultaneous calls
that can be supported by such an application. My main concern is that
Python typically runs in a single thread. Could this be a significant
limitation for handling multiple concurrent calls?

Thanks and regards,
Pavan Kumar

Hey there,

the audio and SIP threads run independently of your Python threads, so
this shouldn't be an issue.
Be aware though, that the conference bridge usually runs in a single
thread and as such you're limited
to what the confbridge is able to do within one clock tick.
If you limit yourself to G.711 and avoid resampling you should be able
to handle 300-400 calls without a problem.
But you would need to do your own benchmarking because it heavily
depends on your target machine of course  :-)

Best regards,
Andreas


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

pjsip mailing list -- pjsip@lists.pjsip.org
To unsubscribe send an email to pjsip-leave@lists.pjsip.org

Thanks Andreas, On Thu, Jul 18, 2024 at 2:59 AM Andreas Wehrmann <a.wehrmann@yandex.com> wrote: > Am 17.07.2024 um 21:33 schrieb Pavan Kumar: > > Hello, > > > > I am currently working on a project using PJSIP with Python via SWIG > > and am trying to determine the maximum number of simultaneous calls > > that can be supported by such an application. My main concern is that > > Python typically runs in a single thread. Could this be a significant > > limitation for handling multiple concurrent calls? > > > > > > Thanks and regards, > > Pavan Kumar > > Hey there, > > the audio and SIP threads run independently of your Python threads, so > this shouldn't be an issue. > Be aware though, that the conference bridge usually runs in a single > thread and as such you're limited > to what the confbridge is able to do within one clock tick. > If you limit yourself to G.711 and avoid resampling you should be able > to handle 300-400 calls without a problem. > But you would need to do your own benchmarking because it heavily > depends on your target machine of course :-) > > Best regards, > Andreas > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list -- pjsip@lists.pjsip.org > To unsubscribe send an email to pjsip-leave@lists.pjsip.org >