[svn-commits] branch file/bug5998 - r7495 /team/file/bug5998/apps/app_directed_pickup.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Dec 15 12:07:39 CST 2005


Author: file
Date: Thu Dec 15 12:07:38 2005
New Revision: 7495

URL: http://svn.digium.com/view/asterisk?rev=7495&view=rev
Log:
Add some error messages so people can see what behavior is occuring

Modified:
    team/file/bug5998/apps/app_directed_pickup.c

Modified: team/file/bug5998/apps/app_directed_pickup.c
URL: http://svn.digium.com/view/asterisk/team/file/bug5998/apps/app_directed_pickup.c?rev=7495&r1=7494&r2=7495&view=diff
==============================================================================
--- team/file/bug5998/apps/app_directed_pickup.c (original)
+++ team/file/bug5998/apps/app_directed_pickup.c Thu Dec 15 12:07:38 2005
@@ -117,6 +117,8 @@
 				if (tmp != NULL) {
 					target = ast_get_channel_by_name_locked(tmp);
 				}
+			} else {
+				ast_log(LOG_ERROR, "No CDR record on %s to check for directed pickup\n", origin->name);
 			}
 			ast_mutex_unlock(&origin->lock);
 		}
@@ -129,6 +131,8 @@
 					/* All went fine! */
 					ast_mutex_unlock(&target->lock);
 					break;
+				} else {
+					ast_log(LOG_ERROR, "Error occured when trying to pickup on %s\n", target->name);
 				}
 				res = 0;
 			}



More information about the svn-commits mailing list