aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_features.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-30 16:06:37 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-30 16:06:37 +0000
commit2b3233aa865cfee97f565311d504ac766630c214 (patch)
tree94d4e1ff736c1fa30b76996fbdc681e4b912de2f /channels/chan_features.c
parenteb9dff7553b0131509a2bcd79c2fb197d4b7b44e (diff)
Change how channel names are generated a bit. (issue #9825 reported by eldadran)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@66602 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_features.c')
-rw-r--r--channels/chan_features.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_features.c b/channels/chan_features.c
index d72838601..5b0f9af90 100644
--- a/channels/chan_features.c
+++ b/channels/chan_features.c
@@ -461,7 +461,7 @@ static struct ast_channel *features_new(struct feature_pvt *p, int state, int in
for (x=1;x<4;x++) {
if (b2)
free(b2);
- b2 = ast_safe_string_alloc("Feature/%s/%s-%d", p->tech, p->dest, x);
+ b2 = ast_safe_string_alloc("%s/%s-%d", p->tech, p->dest, x);
for (y=0;y<3;y++) {
if (y == index)
continue;
@@ -471,7 +471,7 @@ static struct ast_channel *features_new(struct feature_pvt *p, int state, int in
if (y >= 3)
break;
}
- tmp = ast_channel_alloc(0, state, 0,0, "", "", "", 0, b2);
+ tmp = ast_channel_alloc(0, state, 0,0, "", "", "", 0, "Feature/%s", b2);
/* free up the name, it was copied into the channel name */
if (b2)
free(b2);