From dd28b3132c51cbeb50932e599b00ebfc72a116e3 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Sat, 2 Jan 2010 13:46:54 -0500 Subject: [PATCH] Shout: Trim off the channel type from device names --- shout/lib/Driver/Ldap.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shout/lib/Driver/Ldap.php b/shout/lib/Driver/Ldap.php index bef003c5f..3414a230f 100644 --- a/shout/lib/Driver/Ldap.php +++ b/shout/lib/Driver/Ldap.php @@ -123,8 +123,9 @@ class Shout_Driver_Ldap extends Shout_Driver $res[$i]['astextension']['count'] = -1; } while ($j < $res[$i]['astextension']['count']) { - $entries[$context][$extension]['devices'][] = - $res[$i]['astextension'][$j]; + // Trim off the Asterisk channel type from the device string + $device = explode('/', $res[$i]['astextension'][$j], 2); + $entries[$context][$extension]['devices'][] = $device[1]; $j++; } -- 2.11.0