Outside/ Inside port change

Hello everyone,

I have a question regarding outside and inside ports. I’m running Asterisk inside Docker containers, and it’s currently using port 5060. I would like to change it to another port, for example 5001.

Is it possible to make this change just by updating the port in the Dockerfile and in the pjsip.conf transports?

I’m a bit hesitant to try it because I also other things like UniMRCP configurations that use port 5060, and I’m unsure if changing it might cause issues since 5060 is the default SIP port.

#define DEFAULT_LOCAL_IP_ADDRESS               "127.0.0.1"
#define DEFAULT_REMOTE_IP_ADDRESS              "127.0.0.1"
#define DEFAULT_SIP_LOCAL_PORT                 5090
#define DEFAULT_SIP_REMOTE_PORT                5060
#define DEFAULT_RTP_PORT_MIN                   4000
#define DEFAULT_RTP_PORT_MAX                   5000

#define DEFAULT_SOFIASIP_UA_NAME               "Asterisk"
#define DEFAULT_SDP_ORIGIN                     "Asterisk"
#define DEFAULT_RESOURCE_LOCATION              "media"

Thank you.

The transport is where this is configured and would result in the port changing. The Docker port forwarding is how that is exposed externally and would result in it changing as well.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.