[svn-commits] branch bweschke/findme_followme r31978 - /team/bweschke/findme_followme/apps/

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sun Jun 4 01:26:20 MST 2006


Author: bweschke
Date: Sun Jun  4 03:26:20 2006
New Revision: 31978

URL: http://svn.digium.com/view/asterisk?rev=31978&view=rev
Log:
 Don't quit the find-me process if the caller doesn't record a name. Just, play nothing when it comes time to play the name. 


Modified:
    team/bweschke/findme_followme/apps/app_followme.c

Modified: team/bweschke/findme_followme/apps/app_followme.c
URL: http://svn.digium.com/view/asterisk/team/bweschke/findme_followme/apps/app_followme.c?rev=31978&r1=31977&r2=31978&view=diff
==============================================================================
--- team/bweschke/findme_followme/apps/app_followme.c (original)
+++ team/bweschke/findme_followme/apps/app_followme.c Sun Jun  4 03:26:20 2006
@@ -435,9 +435,16 @@
 								if (!ast_streamfile(tmpuser->ochan, namerecloc, tmpuser->ochan->language)) {
 									tmpuser->state = 2;
 								} else {
-									ast_log(LOG_WARNING, "Unable to playback %s.\n", namerecloc);
-									free(to);
-									return NULL;
+									ast_log(LOG_NOTICE, "Unable to playback %s. Maybe the caller didn't record their name?\n", namerecloc);
+									memset(tmpuser->yn, 0, sizeof(tmpuser->yn));
+									tmpuser->ynidx = 0;
+									if (!ast_streamfile(tmpuser->ochan, pressbuttonname, tmpuser->ochan->language))
+										tmpuser->state = 3;
+									else {
+										ast_log(LOG_WARNING, "Unable to playback %s.\n", pressbuttonname);
+										free(to);
+										return NULL;
+									} 
 								}
 							} else if (tmpuser->state == 2) {
 								if (option_verbose > 2)



More information about the svn-commits mailing list