mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 09:17:34 +00:00
msvc build tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4706 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
313805ee11
commit
593030162b
@ -4805,7 +4805,7 @@ static void sip_r_register(int status,
|
|||||||
case 200:
|
case 200:
|
||||||
if (sip && sip->sip_contact && sip->sip_contact->m_expires) {
|
if (sip && sip->sip_contact && sip->sip_contact->m_expires) {
|
||||||
char *new_expires = (char *) sip->sip_contact->m_expires;
|
char *new_expires = (char *) sip->sip_contact->m_expires;
|
||||||
int expi = atoi(new_expires);
|
uint32_t expi = (uint32_t)atoi(new_expires);
|
||||||
|
|
||||||
if (expi != sofia_private->gateway->freq) {
|
if (expi != sofia_private->gateway->freq) {
|
||||||
sofia_private->gateway->freq = expi;
|
sofia_private->gateway->freq = expi;
|
||||||
@ -5569,10 +5569,6 @@ static switch_status_t config_sofia(int reload)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((gateway = switch_core_alloc(profile->pool, sizeof(*gateway)))) {
|
if ((gateway = switch_core_alloc(profile->pool, sizeof(*gateway)))) {
|
||||||
gateway->pool = profile->pool;
|
|
||||||
gateway->profile = profile;
|
|
||||||
gateway->name = switch_core_strdup(gateway->pool, name);
|
|
||||||
gateway->freq = 0;
|
|
||||||
char *scheme = "Digest",
|
char *scheme = "Digest",
|
||||||
*realm = NULL,
|
*realm = NULL,
|
||||||
*username = NULL,
|
*username = NULL,
|
||||||
@ -5582,6 +5578,11 @@ static switch_status_t config_sofia(int reload)
|
|||||||
*context = "default",
|
*context = "default",
|
||||||
*expire_seconds = "3600";
|
*expire_seconds = "3600";
|
||||||
|
|
||||||
|
gateway->pool = profile->pool;
|
||||||
|
gateway->profile = profile;
|
||||||
|
gateway->name = switch_core_strdup(gateway->pool, name);
|
||||||
|
gateway->freq = 0;
|
||||||
|
|
||||||
|
|
||||||
for (param = switch_xml_child(gateway_tag, "param"); param; param = param->next) {
|
for (param = switch_xml_child(gateway_tag, "param"); param; param = param->next) {
|
||||||
char *var = (char *) switch_xml_attr_soft(param, "name");
|
char *var = (char *) switch_xml_attr_soft(param, "name");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user