]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6285 skypopen: ANY, RR NOT work fine in mod_skypopen
authorGiovanni Maruzzelli <gmaruzz@gmail.com>
Tue, 13 May 2014 09:00:47 +0000 (11:00 +0200)
committerGiovanni Maruzzelli <gmaruzz@gmail.com>
Tue, 13 May 2014 09:00:47 +0000 (11:00 +0200)
src/mod/endpoints/mod_skypopen/mod_skypopen.c

index dd83a7b4fdb3fc1b71885b782f989c1ba771d39d..277dc8c42856702c32ebdb3bae3a309053db90e0 100644 (file)
@@ -1365,9 +1365,9 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
                        char name[128];
 
                        if (strncmp("ANY", outbound_profile->destination_number, 3) == 0) {
-                               snprintf(name, sizeof(name), "skypopen/ANY/%s%s", tech_pvt->name, outbound_profile->destination_number + 3);
+                               snprintf(name, sizeof(name), "skypopen/%s%s", tech_pvt->name, outbound_profile->destination_number + 3);
                        } else if (strncmp("RR", outbound_profile->destination_number, 2) == 0) {
-                               snprintf(name, sizeof(name), "skypopen/RR/%s%s", tech_pvt->name, outbound_profile->destination_number + 2);
+                               snprintf(name, sizeof(name), "skypopen/%s%s", tech_pvt->name, outbound_profile->destination_number + 2);
                        } else {
                                snprintf(name, sizeof(name), "skypopen/%s", outbound_profile->destination_number);
                        }