FS-6285 skypopen: ANY, RR NOT work fine in mod_skypopen

This commit is contained in:
Giovanni Maruzzelli 2014-05-13 11:00:47 +02:00
parent 7dbab7b1c6
commit cbe6f74fa9
1 changed files with 2 additions and 2 deletions

View 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);
}