]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8715: [mod_sofia] make the oubound_proxy on the profile consistent with how we...
authorBrian West <brian@freeswitch.org>
Fri, 8 Jan 2016 17:06:12 +0000 (11:06 -0600)
committerBrian West <brian@freeswitch.org>
Fri, 8 Jan 2016 17:06:12 +0000 (11:06 -0600)
src/mod/endpoints/mod_sofia/sofia.c

index addffec4b8849941d091893795d8f79daf9b98c3..98067676befd3ed0b043a6dfe2d5ba5bbff328f4 100644 (file)
@@ -4814,7 +4814,11 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
                                        } else if (!strcasecmp(var, "hold-music")) {
                                                profile->hold_music = switch_core_strdup(profile->pool, val);
                                        } else if (!strcasecmp(var, "outbound-proxy")) {
-                                               profile->outbound_proxy = switch_core_strdup(profile->pool, val);
+                                               if (strncasecmp(val, "sip:", 4) && strncasecmp(val, "sips:", 5)) {
+                                                       profile->outbound_proxy = switch_core_sprintf(profile->pool, "sip:%s", val);
+                                               } else {
+                                                       profile->outbound_proxy = switch_core_strdup(profile->pool, val);
+                                               }
                                        } else if (!strcasecmp(var, "rtcp-audio-interval-msec")) {
                                                profile->rtcp_audio_interval_msec = switch_core_strdup(profile->pool, val);
                                        } else if (!strcasecmp(var, "rtcp-video-interval-msec")) {