- you're running free5GC using docker-compose: https://github.com/free5gc/free5gc-compose
- you'd like to connect a gNodeB via network, but the free5GC host is not listening on NGAP/sctp
Add the following to the free5gc-amf
section in docker-compose.yaml
:
ports:
- "38412:38412/sctp"
So that the section looks like this:
free5gc-amf:
container_name: amf
build:
context: .
dockerfile: Dockerfile
command: ./amf -amfcfg /config/amfcfg.conf
expose:
- "29518"
ports:
- "38412:38412/sctp"
volumes:
- "./config:/config"
networks:
privnet:
ipv4_address: 10.100.200.3
depends_on:
- free5gc-nrf
Common errors:
- docker-compose must be up-to-date, since
sctp
support was added very recently - use the full port format
38412:38412/sctp
--38412/sctp
will take a random port on the host side