chan_lcr: fixed SRCUPDATE
authorPeter Schlaile <root@asterisk.schlaile.de>
Sat, 25 Oct 2008 17:02:14 +0000 (19:02 +0200)
committerroot <root@asterisk.schlaile.de>
Sat, 25 Oct 2008 17:02:14 +0000 (19:02 +0200)
Asterisk 1.4.21 already has source update, so let's check for it by
ifdef again.

chan_lcr.c

index 1cf4656..3573e27 100644 (file)
@@ -2132,7 +2132,7 @@ static int lcr_indicate(struct ast_channel *ast, int cond, const void *data, siz
                        ast_moh_stop(ast);
                        call->on_hold = 0;
                        break;
-#if ASTERISK_VERSION_NUM >= 10600
+#ifdef AST_CONTROL_SRCUPDATE
                case AST_CONTROL_SRCUPDATE:
                        CDEBUG(call, ast, "Received AST_CONTROL_SRCUPDATE from Asterisk.\n");
                         break;