I've been running ASL (now ASL3) for many years under Proxmox as a VM (Debian 12) with few problems but I've noticed that, even though I have a startup macro defined, it doesn't work if the network isn't up and operational before ASL boots. I would have expected ASL to continue forever trying to establish the connection but it doesn't
Thanks (and I will incorporate your edits) but doesn't that kinda reinforce the concept that persistent connections aren't. (or perhaps the state of a connection isn't written to a file to prevent this exact kind of issue?).
I guess persistent connections are only persistent as long as asterisk's OS doesn't go down.
Seems to me there should be an option to make persistence survive over an OS reboot. Maybe it should be user selectable? I would argue that if a node op had a startup macro with persistent connections, shouldn't it actually be persistent?
So back to my original issue. Why doesn't the startup macro in my config continue to try to connect until the network comes back up and then connect to the other nodes?
You're saying two contradictory things here and both are vague. Impossible to give you guidance until you clarify.
You first state that you're running in as a VM but the "network isn't up and operational before ASL boots". Which network isn't up? The VM network or the underlying hypervisor network? The hypervisor shouldn't be starting the VM until its network itself is working and is a Proxmox problem if that's what you're describing. If Proxmox isn't ready to serve clients that boots upon it that's the problem. If you're saying it's the VM networking isn't up before asterisk starts, then something about your VM OS is broken because Asterisk will not start until network-online.target is reached. And how network-online.target is reached depends on how you configured Debian. Are you using the legacy /etc/network structure, NetworkManager, or netplan/cloud-init? You could use nss-lookup.target in conjunction with network-online.target if you want to wait until you can resolve some sort of off-site DNS name. But more info needed in this case.
If you're saying that the VM OS and asterisk has been up and functioning, you're having some sort of network problem (which you need to clarify what the problem is), and when the network is "again available" without restarting asterisk then a persistent link (specifically an ilink 13) will absolutely ride through the network issue. If it's not, the exact condition that's causing the problem needs to be investigated because that's possibly a bug in app_rpt.
However, is most cases, a persistent link will ride out a network issue just fine. I run into this al the time on our system and persistent links come right back once the network is available.
Scenario - Commercial power goes down (no backup) so everything - switch, router, Proxmox host, VMs, go bye bye. X amount of time passes and commercial power is restored. The Proxmox host (and its VMs) tend to fully boot up before switch and router do. Under these conditions, I have to manually reconnect the 4 nodes that are supposedly "persistently" connected to that VM's node, despite my startup macro telling the node to do so.