Index: apps/app_stack.c =================================================================== --- apps/app_stack.c (revision 199221) +++ apps/app_stack.c (working copy) @@ -164,6 +164,19 @@ Return + + + Cause the channel to execute the specified dialplan subroutine. + + + + + + + + Cause the cahnnel to execute the specified dialplan subroutine, returning to the dialplan with execution of a Return(). + + ***/ static const char * const app_gosub = "Gosub"; @@ -627,10 +640,7 @@ return RESULT_SUCCESS; } -static const char usage_gosub[] = -" Usage: GOSUB []\n" -" Cause the channel to execute the specified dialplan subroutine, returning\n" -" to the dialplan with execution of a Return()\n"; +static const char usage_gosub[]; struct agi_command gosub_agi_command = { { "gosub", NULL }, handle_gosub, "Execute a dialplan subroutine", usage_gosub , 0 };