<h1>Project "FreeSWITCH Source" received a push.</h1>
<h2>branch: master updated</h2>
<pre>
via: e318e3eb91810cc8ed0e9af30d7c81d19e4cd21b (commit)
from: cc3a36bc8c1b79df225969f22a954a104578a8b9 (commit)
</pre>= COMMIT LOG ===========================================================
<div class="highlight"><pre>committer: Mathieu Parent
comments:
Skinny: update profile IP address if changed during socket creation
<span style="color: #000080; font-weight: bold">diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.c b/src/mod/endpoints/mod_skinny/mod_skinny.c</span>
<span style="color: #000080; font-weight: bold">index a30b0fd..071e8c5 100644</span>
<span style="color: #A00000">--- a/src/mod/endpoints/mod_skinny/mod_skinny.c</span>
<span style="color: #00A000">+++ b/src/mod/endpoints/mod_skinny/mod_skinny.c</span>
<span style="color: #800080; font-weight: bold">@@ -1523,6 +1523,7 @@ static void *SWITCH_THREAD_FUNC skinny_profile_run(switch_thread_t *thread, void</span>
new_socket:
        while(globals.running) {
<span style="color: #00A000">+                char *listening_ip = NULL;</span>
                switch_clear_flag_locked(profile, PFLAG_RESPAWN);
                rv = switch_sockaddr_info_get(&sa, profile->ip, SWITCH_UNSPEC, profile->port, 0, tmp_pool);
                if (rv)
<span style="color: #800080; font-weight: bold">@@ -1539,6 +1540,10 @@ new_socket:</span>
                rv = switch_socket_listen(profile->sock, 5);
                if (rv)
                        goto sock_fail;
<span style="color: #00A000">+                switch_sockaddr_ip_get(&listening_ip, sa);</span>
<span style="color: #00A000">+                if (!profile->ip || strcmp(listening_ip, profile->ip)) {</span>
<span style="color: #00A000">+                        profile->ip = switch_core_strdup(profile->pool, listening_ip);</span>
<span style="color: #00A000">+                }</span>
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Socket up listening on %s:%u\n", profile->ip, profile->port);
                break;
</pre></div>
========================================================================<pre>
Summary of changes:
src/mod/endpoints/mod_skinny/mod_skinny.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
</pre>
<p>this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email<br />
For more info, see <a href="http://blog.chomperstomp.com/?p=630">http://blog.chomperstomp.com/?p=630</a>
-- <br />
FreeSWITCH Source</p>