aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 6736ab86c..52fd9ce88 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -3333,6 +3333,7 @@ static struct sip_proxy *proxy_allocate(char *name, char *port, int force)
proxy->force = force;
ast_copy_string(proxy->name, name, sizeof(proxy->name));
proxy->ip.sin_port = htons(port_str2int(port, STANDARD_SIP_PORT));
+ proxy->ip.sin_family = AF_INET;
proxy_update(proxy);
return proxy;
}