]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 7 Apr 2008 19:35:30 +0000 (19:35 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 7 Apr 2008 19:35:30 +0000 (19:35 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8050 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 0a8d3f812dc3ad1e136f2c40f9cf35e6f1c59f46..cd6dada731c9c6171daa6e62adcdc98002b89001 100644 (file)
@@ -2471,9 +2471,9 @@ const char *_url_set_chanvars(switch_core_session_t *session, url_t *url, const
        switch_channel_set_variable(channel, port_var, port);
        if (host) {
                if (user) {
-                       uri = switch_core_session_sprintf(session, "%s@%s:%s", user, host, new_port);
+                       uri = switch_core_session_sprintf(session, "%s@%s%s", user, host, new_port);
                } else {
-                       uri = switch_core_session_sprintf(session, "%s:%s", host, new_port);
+                       uri = switch_core_session_sprintf(session, "%s%s", host, new_port);
                }
                switch_channel_set_variable(channel, uri_var, uri);
                switch_channel_set_variable(channel, host_var, host);