patch-apps_app_followme_c 940 B

1234567891011121314151617181920212223242526
  1. --- asterisk-1.6.2.1.orig/apps/app_followme.c 2009-09-15 18:06:24.000000000 +0200
  2. +++ asterisk-1.6.2.1/apps/app_followme.c 2010-02-14 10:33:51.540422962 +0100
  3. @@ -172,7 +172,9 @@ static int ynlongest = 0;
  4. static const char *featuredigittostr;
  5. static int featuredigittimeout = 5000; /*!< Feature Digit Timeout */
  6. -static const char *defaultmoh = "default"; /*!< Default Music-On-Hold Class */
  7. +static const char *defaultmoh; /*!< Default Music-On-Hold Class */
  8. +
  9. +
  10. static char takecall[20] = "1", nextindp[20] = "2";
  11. static char callfromprompt[PATH_MAX] = "followme/call-from";
  12. @@ -236,6 +238,7 @@ static struct call_followme *alloc_profi
  13. static void init_profile(struct call_followme *f)
  14. {
  15. + defaultmoh = "default";
  16. f->active = 1;
  17. ast_copy_string(f->moh, defaultmoh, sizeof(f->moh));
  18. }
  19. @@ -1195,3 +1198,4 @@ AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MO
  20. .unload = unload_module,
  21. .reload = reload,
  22. );
  23. +