<div dir="ltr"><div dir="ltr">On Wed, May 13, 2020 at 6:55 AM Roger James <<a href="mailto:roger@beardandsandals.co.uk">roger@beardandsandals.co.uk</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have an endpoint defined in the conf that has the 'transport' field set <br>
to a named ipv6 transport. I had this working on a test system. This <br>
required the application of the gerrit patch 14404 (currently in code <br>
review). I have moved this on to a more realistic test setup. This setup <br>
also has active ipv4 connections. As soon as one of these was successful it <br>
seems to have 'locked' the system into a persistent ipv4 only mode. I am <br>
afraid that is the best way I can describe it. I apologise in advance for <br>
the lack of precision. Even if the system is fully rebooted, very early on <br>
in the config process the transport field in the endpoint is changed to <br>
point at an ipv4 transport. I have spent a number of hours in gdb trying to <br>
pinpoint where this is happening, to no avail. The depths of sorcery have <br>
addled my ancient brain. Any assistance or pointers would be extremely <br>
gratefully received! In particular about where to put a breakpoint to trap <br>
this.<br>
<br>
As an aside. It is educational to put a break point on the code in config.c <br>
that reads the config files. I have isolated the transport=my-ipv6 line <br>
into its own file, and made the break point conditional on that file name. <br>
It is triggered an unbelievable number of times. I cannot see the wood for <br>
the trees. It also seems very wasteful as somewhere way back up the stack <br>
it is going to be thrown away as "file unchanged". Isn't that what last <br>
modification times are for?<br></blockquote><div><br></div><div>And to further clarify - you state in your message that the transport is changed to an ipv4 transport early in the config process, but before that you state that it's locked into ipv4 after one of these was successful. That's what I'm finding confusing in understanding.</div><div><br></div><div>If the case is indeed actually that after configuration loads the endpoint has an explicitly configured ipv4 transport and not ipv6, and that it doesn't depend on actual traffic flowing then it's likely in your configuration files. Have you taken parts of them away and gradually added them back? One of the things that people can find problematic is using the same name for adding to an existing context, as in PJSIP you can end up using the same name for different logical contexts. In this case you have to use a filter[1] to ensure it gets added to the right thing.</div><div><br></div><div>[1] <a href="https://wiki.asterisk.org/wiki/display/AST/Adding+to+an+existing+section">https://wiki.asterisk.org/wiki/display/AST/Adding+to+an+existing+section</a></div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Technical Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>