]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Use strrchr() so SoftHangup will correctly truncate multi-hyphen channel names
authorDwayne M. Hubbard <dwayne.hubbard@gmail.com>
Tue, 1 Sep 2009 23:04:52 +0000 (23:04 +0000)
committerDwayne M. Hubbard <dwayne.hubbard@gmail.com>
Tue, 1 Sep 2009 23:04:52 +0000 (23:04 +0000)
commitfad010ebe75f95fc7981e71b1abb511ad281dc1f
tree350163e8aa520438d258c7b6734075f26dbbfaea
parentfa27e8dffac83441e08e568f39fef0aa494fd99e
Use strrchr() so SoftHangup will correctly truncate multi-hyphen channel names

In general channel names are in the form Foo/Bar-Z, but the channel name
could have multiple hyphens and look like Foo/B-a-r-Z.  Use strrchr to
truncate the channel name at the last hyphen.

(closes issue #15810)
Reported by: dhubbard
Patches:
      dw-softhangup-1.4.patch uploaded by dhubbard (license 733)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@215270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_softhangup.c