I will split the question in some sub questions:
Let's consider the 3CX server
is running behind the NAT and the public IP address is: 123.123.123.123
, tunnel is working on port 5090
and the internal address of the 3CX is 192.168.1.13. the SIP user is user1@123.123.123.123 with pass: userPass and the tunnel has the password tunnelPass.
How should the pjsip
account structure be initialized?
The 3CX softphone has this built in. The 3CX Tunnel Proxy is simple a relay for tunnel traffic so that any voip traffic on a network can use the tunnel (and not just the 3cx softphone that has it built in).
No, only the tunnel proxy of softphone is built to connect to it. To make anything else connect to it would require custom programming and analysis of how it worked. It's theoretically possible but probably not worth your time.
Not applicable since it's not possible to use an alternative client.