提交 9e8a2b3e authored 作者: Anthony Minessale's avatar Anthony Minessale

update

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4337 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 58705374
......@@ -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);
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论