Ticket #3696: app_mixmonitor.patch
| File app_mixmonitor.patch, 1.3 kB (added by Nick_Lewis, 3 years ago) |
|---|
-
old/app_mixmonitor.c
old new 73 73 "The variable MIXMONITOR_FILENAME will contain the filename used to record.\n" 74 74 ""; 75 75 76 static const char *stop_app = "StopMixMonitor"; 77 static const char *stop_synopsis = "Stop recording a call through MixMonitor"; 78 static const char *stop_desc = "" 79 " StopMixMonitor():\n" 80 "Stops the audio recording that was started with a call to MixMonitor()\n" 81 "on the current channel.\n" 82 ""; 83 76 84 STANDARD_LOCAL_USER; 77 85 78 86 LOCAL_USER_DECL; … … 381 389 return 0; 382 390 } 383 391 392 static int stop_mixmonitor_exec(struct ast_channel *chan, void *data) 393 { 394 ast_channel_spy_stop_by_type(chan, mixmonitor_spy_type); 395 return 0; 396 } 397 384 398 static int mixmonitor_cli(int fd, int argc, char **argv) 385 399 { 386 400 struct ast_channel *chan; … … 418 432 419 433 res = ast_cli_unregister(&cli_mixmonitor); 420 434 res |= ast_unregister_application(app); 421 435 res |= ast_unregister_application(stop_app); 422 436 STANDARD_HANGUP_LOCALUSERS; 423 437 424 438 return res; … … 430 444 431 445 res = ast_cli_register(&cli_mixmonitor); 432 446 res |= ast_register_application(app, mixmonitor_exec, synopsis, desc); 447 res |= ast_register_application(stop_app, stop_mixmonitor_exec, stop_synopsis, stop_desc); 433 448 434 449 return res; 435 450 }
