mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-02-15 20:39:12 +01:00
asterisk: asterisk.hotplug: try ipv6 address to bind if ipv4 is not available
This commit is contained in:
parent
70afc90bb0
commit
b89cc55127
1 changed files with 1 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ config_get bindintf SIP bindintf
|
|||
|
||||
if [ -n "$bindintf" ]; then
|
||||
network_get_ipaddr bindaddr "$bindintf"
|
||||
[ -z "$bindaddr" ] && network_get_ipaddr6 bindaddr "$bindintf"
|
||||
bindaddr="${bindaddr:-0.0.0.0}"
|
||||
sed -i "s/bindaddr=.*/bindaddr=$bindaddr/g" /etc/asterisk/sip.conf
|
||||
[ -e /var/run/asterisk/asterisk.ctl ] && /etc/init.d/asterisk reload
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue