Call proxy_update so that the IP address gets populated. Sending stuff to 0.0.0.0...
authorJoshua Colp <jcolp@digium.com>
Wed, 17 Dec 2008 19:52:40 +0000 (19:52 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 17 Dec 2008 19:52:40 +0000 (19:52 +0000)
(closes issue #14055)
Reported by: chris-mac

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@165216 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 46e7958..700da76 100644 (file)
@@ -22809,6 +22809,8 @@ static int reload_config(enum channelreloadreason reason)
                        }
 
                        ast_copy_string(global_outboundproxy.name, proxyname, sizeof(global_outboundproxy.name));
+
+                       proxy_update(&global_outboundproxy);
                } else if (!strcasecmp(v->name, "autocreatepeer")) {
                        sip_cfg.autocreatepeer = ast_true(v->value);
                } else if (!strcasecmp(v->name, "match_auth_username")) {