Not sure what you are asking, but I have a go at it.
The gateway must be configured in the software. Typically the gateway will have an IP address, this is what you use to configure it in 3cx.
Also it might require a authentication this is configured in the Line configuration in 3CX.
Hope this helps.