[commit] r10431 - in freeswitch/trunk/src: . mod/endpoints/mod_sofia
Author: anthm Date: Mon Nov 17 16:38:17 2008 New Revision: 10431 Log: put sip: into register-proxy when it's not specified Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c freeswitch/trunk/src/switch_ivr_async.c Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Mon Nov 17 16:38:17 2008 @@ -913,7 +913,11 @@ } if (!switch_strlen_zero(register_proxy)) { - gateway->register_sticky_proxy = switch_core_strdup(gateway->pool, register_proxy); + if (strncasecmp(register_proxy, "sip:", 4) && strncasecmp(register_proxy, "sips:", 5)) { + gateway->register_sticky_proxy = switch_core_sprintf(gateway->pool, "sip:%s", register_proxy); + } else { + gateway->register_sticky_proxy = switch_core_strdup(gateway->pool, register_proxy); + } } gateway->retry_seconds = atoi(retry_seconds); Modified: freeswitch/trunk/src/switch_ivr_async.c ============================================================================== --- freeswitch/trunk/src/switch_ivr_async.c (original) +++ freeswitch/trunk/src/switch_ivr_async.c Mon Nov 17 16:38:17 2008 @@ -976,6 +976,7 @@ } teletone_dtmf_detect_init(&pvt->dtmf_detect, read_codec->implementation->actual_samples_per_second); + printf ("WTF %d\n", read_codec->implementation->actual_samples_per_second); pvt->session = session;
participants (1)
-
FreeSWITCH SVN