update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4337 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
58705374f4
commit
9e8a2b3e07
|
@ -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)
|
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();
|
switch_time_t now = switch_time_now();
|
||||||
int ptime = 0;
|
int ptime = 0;
|
||||||
|
|
||||||
|
@ -2365,7 +2365,7 @@ static uint8_t negotiate_sdp(switch_core_session_t *session, sdp_session_t *sdp)
|
||||||
|
|
||||||
ptime = dptime;
|
ptime = dptime;
|
||||||
for (a = m->m_attributes; a; a = a->a_next) {
|
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);
|
ptime = atoi(a->a_value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue