projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f30952c
)
Be sure to set the sin_family on the proxy when allocating.
author
Mark Michelson
<mmichelson@digium.com>
Fri, 21 May 2010 20:38:14 +0000
(20:38 +0000)
committer
Mark Michelson
<mmichelson@digium.com>
Fri, 21 May 2010 20:38:14 +0000
(20:38 +0000)
(closes issue #17157)
Reported by: stuarth
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@265087
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
9642f3d
..
9f34fff
100644
(file)
--- a/
channels/chan_sip.c
+++ b/
channels/chan_sip.c
@@
-2879,6
+2879,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;
}