PJSIP And Multiple Transports Per Endpoint

Home » Asterisk Users » PJSIP And Multiple Transports Per Endpoint
Asterisk Users 2 Comments

I have a multihomed machine. How can I assign multiple IPs to and endpoint, not all of them, just two, for instance, out of many?
Suppose the machine as 30 IPs, but my asterisk needs listen on two, and one single endpoint needs to be associated with those two IPs. I
tried to add a second “bind” line to a transport, but it ignores all after the first one. I tried to add a second transport line to an endpoint, but it only considers one. Thanks for your help.

2 thoughts on - PJSIP And Multiple Transports Per Endpoint

  • CDR wrote:

    The transport line controls what transport is used for outgoing traffic to an endpoint. It is used when the code chooses the wrong one using automatic logic.

    What do you mean by “assign multiple IPs to an endpoint”.

  • I had some confusion here. The endpoint needs a transport in order to carry calls out. But the transports are also used by the application PJSIP at large, in order to listen for incoming connections. In order to just receive calls, I think you only need a transport, but no need to assign that transport to any endpoint. For example if you are just acting as voicemail or a pure IVR system. If you have a multi-homed machine, you need a transport for each IP where you expect to receive calls. Please correct me if I am wrong.