From 9e8a2b3e0724772a32c9db85b6ce5b8ca138dc8b Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 20 Feb 2007 17:50:50 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4337 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index a53c66d2ef..1293637b10 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -683,7 +683,7 @@ static char *find_reg_url(sofia_profile_t *profile, char *user, char *host, char static void set_local_sdp(private_object_t *tech_pvt, char *ip, uint32_t port, char *sr, int force) { - char buf[1024]; + char buf[2048]; switch_time_t now = switch_time_now(); int ptime = 0; @@ -2365,7 +2365,7 @@ static uint8_t negotiate_sdp(switch_core_session_t *session, sdp_session_t *sdp) ptime = dptime; for (a = m->m_attributes; a; a = a->a_next) { - if (!strcasecmp(a->a_name, "ptime")) { + if (!strcasecmp(a->a_name, "ptime") && a->a_value) { ptime = atoi(a->a_value); } }