]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_sofia: Fix small issue with rescan profile and gateway getting duplicate entry...
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Fri, 26 Feb 2010 20:53:14 +0000 (20:53 +0000)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Fri, 26 Feb 2010 20:53:14 +0000 (20:53 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16840 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 9830dc23a34dd7ed9a4b7b0b9ee4d31af3bbd8e9..1a6d7c45bfb6fd22219ca6d917f4114cbc00c5de 100644 (file)
@@ -1702,7 +1702,7 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
        for (gateway_tag = switch_xml_child(gateways_tag, "gateway"); gateway_tag; gateway_tag = gateway_tag->next) {
                char *name = (char *) switch_xml_attr_soft(gateway_tag, "name");
                sofia_gateway_t *gateway;
-               char *pkey = switch_mprintf("%s-%s", profile->name, name);
+               char *pkey = switch_mprintf("%s::%s", profile->name, name);
 
                if (zstr(name)) {
                        name = "anonymous";