pjproject icon indicating copy to clipboard operation
pjproject copied to clipboard

Make transport count in pjsua as compile level define constants

Open vit1251 opened this issue 5 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Component pjsua source code contain struct pjsua_data with transport array with 8 slots in hardcode manner.

Describe the solution you'd like

How about create define with value of transport count. For example my deskphone contain 32 buttons for SIP registrations and I assume that is known as transport in pjsua.

Describe alternatives you've considered

I can suggest remove endpoint instance (singletone) and provide on pjsip make multiply count of endpoint instead single one.

Additional context

No.

vit1251 avatar Mar 03 '20 18:03 vit1251

the tpdata represent the transport/listener created from pjsua_transport_create(). It doesn't represent the account. e.g:

  • on your case, multiple accounts registered using UDP.
    • create UDP transport (single)
    • add account (multiple), max: PJSUA_MAX_ACC
    • the library will create the 'client' transport to send (SIP) messages when needed.

We rarely have a scenario where we would need multiple listener. However since we have #1019, this might be considered to be added as well.

trengginas avatar Mar 04 '20 10:03 trengginas