]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 20 Feb 2007 17:50:50 +0000 (17:50 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 20 Feb 2007 17:50:50 +0000 (17:50 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4337 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index a53c66d2efa6eb0a213193389ed1c2a48c9c8fd1..1293637b107281498439383d797818683f803948 100644 (file)
@@ -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);
             }
         }