[asterisk-dev] chan_sip realtime port with host dynamic and defaultip
Joshua C. Colp
jcolp at sangoma.com
Wed Mar 15 10:36:58 CDT 2023
On Wed, Mar 15, 2023 at 11:49 AM Sean Bright <sean at seanbright.com> wrote:
> On 3/15/2023 9:43 AM, Marcin Groszek wrote:
> > 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?
>
> The `!realtime` check was added in 2005¹, the commit message is fairly
> vague, and I am not able to find bug #3286 it refers to.
>
It's here[1] which doesn't really help.
[1] https://issues.asterisk.org/jira/browse/ASTERISK-3224
--
Joshua C. Colp
Asterisk Project Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20230315/5de8a3c8/attachment.html>
More information about the asterisk-dev
mailing list