Make transport count in pjsua as compile level define constants
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.
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.