]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
attempt to fix SFSIP-150
authorMichael Jerris <mike@jerris.com>
Tue, 16 Jun 2009 16:06:37 +0000 (16:06 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 16 Jun 2009 16:06:37 +0000 (16:06 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13783 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index 3f3877b875b589da2828f50134b90860762a9290..b56f9f70375c2d091e5937a9568dda7103e44624 100644 (file)
@@ -2676,7 +2676,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
                if (!strncasecmp(dest, "sip:", 4) || !strncasecmp(dest, "sips:", 5)) {
                        tech_pvt->dest = switch_core_session_strdup(nsession, dest);
                } else if ((host = strchr(dest, '%'))) {
-                       char buf[128];
+                       char buf[1024];
                        *host = '@';
                        tech_pvt->e_dest = switch_core_session_strdup(nsession, dest);
                        *host++ = '\0';
@@ -2689,7 +2689,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
                                goto error;
                        }
                } else if (!(host = strchr(dest, '@'))) {
-                       char buf[128];
+                       char buf[1024];
                        tech_pvt->e_dest = switch_core_session_strdup(nsession, dest);
                        if (sofia_reg_find_reg_url(profile, dest, profile_name, buf, sizeof(buf))) {
                                tech_pvt->dest = switch_core_session_strdup(nsession, buf);