]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
put sip: into register-proxy when it's not specified
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 17 Nov 2008 21:38:17 +0000 (21:38 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 17 Nov 2008 21:38:17 +0000 (21:38 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10431 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c
src/switch_ivr_async.c

index 0ba31968a6ec5844dafb60588fb9609547cc9859..84f0a9af444feeed6d5cba9a21c99313758eb30b 100644 (file)
@@ -913,7 +913,11 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
                        }
                        
                        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);
index 802cd79af3edf2e039b2147b272bc6a0c0050065..12f31e9cbc21c60d0f151e39360aaf5215a7bb26 100644 (file)
@@ -976,6 +976,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_inband_dtmf_session(switch_core_sessi
        }
 
        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;