[Freeswitch-svn] [commit] r4337 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
anthm at freeswitch.org
Tue Feb 20 12:50:51 EST 2007
Author: anthm
Date: Tue Feb 20 12:50:50 2007
New Revision: 4337
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
Log:
update
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Tue Feb 20 12:50:50 2007
@@ -683,7 +683,7 @@
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 @@
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);
}
}
More information about the Freeswitch-svn
mailing list