]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 137847 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 14 Aug 2008 16:52:43 +0000 (16:52 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 14 Aug 2008 16:52:43 +0000 (16:52 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r137847 | tilghman | 2008-08-14 11:47:30 -0500 (Thu, 14 Aug 2008) | 9 lines

When creating the secondary subchannel name, it is necessary to compare to
the existing channel name without the "Zap/" or "DAHDI/" prefix, since our
test string is also without that prefix.
(closes issue #13027)
 Reported by: dferrer
 Patches:
       chan_zap-1.4.21.1_fix2.patch uploaded by dferrer (license 525)
       (Slightly modified by me, to compensate for both names)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@137848 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index 7018e4e110811fe4a93f3cb1a1a1a84f2cb46fc9..7ca68ff2467a0af60d41e90653f33210dfef1afb 100644 (file)
@@ -5840,7 +5840,7 @@ static struct ast_channel *dahdi_new(struct dahdi_pvt *i, int state, int startpb
                else    
                        ast_str_set(&chan_name, 0, "%d-%d", i->channel, y);
                for (x = 0; x < 3; x++) {
-                       if ((idx != x) && i->subs[x].owner && !strcasecmp(chan_name->str, i->subs[x].owner->name))
+                       if ((idx != x) && i->subs[x].owner && !strcasecmp(chan_name->str, i->subs[x].owner->name + 6))
                                break;
                }
                y++;