[asterisk-dev] chan_sip realtime port with host dynamic and defaultip
Marcin Groszek
marcin at voipplus.net
Wed Mar 15 08:43:10 CDT 2023
I understand that chan_sip is no longer being developed, but for now I
am stuck with it.
Recently I discovered that when realtime is used the port is ignored
when used with host=dynamic and defaultip=x.x.x.x.
if (port && !realtime && peer->host_dynamic) {
ast_sockaddr_set_port(&peer->defaddr, port);
} else if (port) {
ast_sockaddr_set_port(&peer->addr, port);
}
Is there a reason why port value is ignored if the peer is setup in
realtime?
--
Best Regards:
Marcin Groszek
More information about the asterisk-dev
mailing list