[svn-commits] oej: branch oej/multiparking r55332 - in /team/oej/multiparking: ./ apps/ cha...

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sun Feb 18 08:31:05 MST 2007


Author: oej
Date: Sun Feb 18 09:31:04 2007
New Revision: 55332

URL: http://svn.digium.com/view/asterisk?view=rev&rev=55332
Log:
Fix compile bug, reset automerge etc etc etc

Now ASTOBJification

Modified:
    team/oej/multiparking/   (props changed)
    team/oej/multiparking/Makefile
    team/oej/multiparking/apps/app_voicemail.c
    team/oej/multiparking/channels/chan_misdn.c
    team/oej/multiparking/channels/chan_oss.c
    team/oej/multiparking/channels/misdn/isdn_msg_parser.c
    team/oej/multiparking/main/ast_expr2.c
    team/oej/multiparking/main/editline/refresh.c
    team/oej/multiparking/main/enum.c
    team/oej/multiparking/main/srv.c
    team/oej/multiparking/pbx/ael/ael.tab.c
    team/oej/multiparking/res/res_features.c

Propchange: team/oej/multiparking/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Sun Feb 18 09:31:04 2007
@@ -1,1 +1,1 @@
-/trunk:1-55309
+/trunk:1-55331

Modified: team/oej/multiparking/Makefile
URL: http://svn.digium.com/view/asterisk/team/oej/multiparking/Makefile?view=diff&rev=55332&r1=55331&r2=55332
==============================================================================
--- team/oej/multiparking/Makefile (original)
+++ team/oej/multiparking/Makefile Sun Feb 18 09:31:04 2007
@@ -189,7 +189,7 @@
 ASTCFLAGS+=-include $(ASTTOPDIR)/include/asterisk/autoconfig.h
 
 ifeq ($(AST_DEVMODE),yes)
-  ASTCFLAGS+=-Werror -Wunused
+  ASTCFLAGS+=-Werror -Wunused -Wundef
 endif
 
 ifneq ($(findstring BSD,$(OSARCH)),)

Modified: team/oej/multiparking/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/team/oej/multiparking/apps/app_voicemail.c?view=diff&rev=55332&r1=55331&r2=55332
==============================================================================
--- team/oej/multiparking/apps/app_voicemail.c (original)
+++ team/oej/multiparking/apps/app_voicemail.c Sun Feb 18 09:31:04 2007
@@ -415,9 +415,9 @@
 #define PWDCHANGE_EXTERNAL (1 << 2)
 static int pwdchange = PWDCHANGE_INTERNAL;
 
-#if ODBC_STORAGE
+#ifdef ODBC_STORAGE
 #define tdesc "Comedian Mail (Voicemail System) with ODBC Storage"
-#elif IMAP_STORAGE
+#elifdef IMAP_STORAGE
 #define tdesc "Comedian Mail (Voicemail System) with IMAP Storage"
 #else
 #define tdesc "Comedian Mail (Voicemail System)"

Modified: team/oej/multiparking/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/team/oej/multiparking/channels/chan_misdn.c?view=diff&rev=55332&r1=55331&r2=55332
==============================================================================
--- team/oej/multiparking/channels/chan_misdn.c (original)
+++ team/oej/multiparking/channels/chan_misdn.c Sun Feb 18 09:31:04 2007
@@ -2623,7 +2623,7 @@
 		return 0;
 	}
 	
-#if MISDN_DEBUG
+#ifdef MISDN_DEBUG
 	{
 		int i, max=5>frame->samples?frame->samples:5;
 		

Modified: team/oej/multiparking/channels/chan_oss.c
URL: http://svn.digium.com/view/asterisk/team/oej/multiparking/channels/chan_oss.c?view=diff&rev=55332&r1=55331&r2=55332
==============================================================================
--- team/oej/multiparking/channels/chan_oss.c (original)
+++ team/oej/multiparking/channels/chan_oss.c Sun Feb 18 09:31:04 2007
@@ -1553,7 +1553,7 @@
 		return NULL;
 
   openit:
-#if TRYOPEN
+#ifdef TRYOPEN
 	if (setformat(o, O_RDWR) < 0) {	/* open device */
 		if (option_verbose > 0) {
 			ast_verbose(VERBOSE_PREFIX_2 "Device %s not detected\n", ctg);

Modified: team/oej/multiparking/channels/misdn/isdn_msg_parser.c
URL: http://svn.digium.com/view/asterisk/team/oej/multiparking/channels/misdn/isdn_msg_parser.c?view=diff&rev=55332&r1=55331&r2=55332
==============================================================================
--- team/oej/multiparking/channels/misdn/isdn_msg_parser.c (original)
+++ team/oej/multiparking/channels/misdn/isdn_msg_parser.c Sun Feb 18 09:31:04 2007
@@ -65,7 +65,7 @@
 	dec_ie_progress(proceeding->PROGRESS, (Q931_info_t *)proceeding, &bc->progress_coding, &bc->progress_location, &bc->progress_indicator, nt, bc);
 	
 	
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing PROCEEDING Msg\n"); 
 #endif
 }
@@ -83,7 +83,7 @@
 		enc_ie_progress(&proceeding->PROGRESS, msg, 0, nt?1:5, 8, nt,bc);
   
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building PROCEEDING Msg\n"); 
 #endif
 	return msg; 
@@ -97,7 +97,7 @@
 	
 	dec_ie_progress(alerting->PROGRESS, (Q931_info_t *)alerting, &bc->progress_coding, &bc->progress_location, &bc->progress_indicator, nt, bc);
 	
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing ALERTING Msg\n"); 
 #endif
 
@@ -116,7 +116,7 @@
 	
 	if (nt) 
 		enc_ie_progress(&alerting->PROGRESS, msg, 0, nt?1:5, 8, nt,bc);
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building ALERTING Msg\n"); 
 #endif
 	return msg; 
@@ -131,7 +131,7 @@
 	
 	dec_ie_progress(progress->PROGRESS, (Q931_info_t *)progress, &bc->progress_coding, &bc->progress_location, &bc->progress_indicator, nt, bc);
 	
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing PROGRESS Msg\n"); 
 #endif
 }
@@ -144,7 +144,7 @@
  
 	progress=(PROGRESS_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building PROGRESS Msg\n"); 
 #endif
 	return msg; 
@@ -156,7 +156,7 @@
 	SETUP_t *setup= (SETUP_t*)((unsigned long)msg->data+HEADER_LEN);
 	Q931_info_t *qi=(Q931_info_t*)((unsigned long)msg->data+HEADER_LEN);
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing SETUP Msg\n"); 
 #endif
 	{
@@ -331,7 +331,7 @@
 		enc_ie_complete(&setup->BEARER,msg, bc->sending_complete, nt, bc);
 	}
   
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building SETUP Msg\n"); 
 #endif
 	return msg; 
@@ -355,7 +355,7 @@
 		cb_log(1,bc->port,"CONNETED PN: %s cpn_dialplan:%d\n", connected_pn, type);
 	*/
 	
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing CONNECT Msg\n"); 
 #endif
 }
@@ -381,7 +381,7 @@
 		enc_ie_connected_pn(&connect->CONNECT_PN, msg, type,plan, present, screen, bc->cad, nt , bc);
 	}
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building CONNECT Msg\n"); 
 #endif
 	return msg; 
@@ -401,7 +401,7 @@
 	}
 	
 	dec_ie_progress(setup_acknowledge->PROGRESS, (Q931_info_t *)setup_acknowledge, &bc->progress_coding, &bc->progress_location, &bc->progress_indicator, nt, bc);
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing SETUP_ACKNOWLEDGE Msg\n"); 
 #endif
 
@@ -421,7 +421,7 @@
 	if (nt) 
 		enc_ie_progress(&setup_acknowledge->PROGRESS, msg, 0, nt?1:5, 8, nt,bc);
   
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building SETUP_ACKNOWLEDGE Msg\n"); 
 #endif
 	return msg; 
@@ -429,7 +429,7 @@
 
 static void parse_connect_acknowledge (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) 
 {
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing CONNECT_ACKNOWLEDGE Msg\n"); 
 #endif
 
@@ -446,7 +446,7 @@
   
 	enc_ie_channel_id(&connect_acknowledge->CHANNEL_ID, msg, 1, bc->channel, nt,bc);
   
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building CONNECT_ACKNOWLEDGE Msg\n"); 
 #endif
 	return msg; 
@@ -454,7 +454,7 @@
 
 static void parse_user_information (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) 
 {
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing USER_INFORMATION Msg\n"); 
 #endif
 
@@ -469,7 +469,7 @@
  
 	user_information=(USER_INFORMATION_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building USER_INFORMATION Msg\n"); 
 #endif
 	return msg; 
@@ -477,7 +477,7 @@
 
 static void parse_suspend_reject (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) 
 {
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing SUSPEND_REJECT Msg\n"); 
 #endif
 
@@ -492,7 +492,7 @@
  
 	suspend_reject=(SUSPEND_REJECT_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building SUSPEND_REJECT Msg\n"); 
 #endif
 	return msg; 
@@ -500,7 +500,7 @@
 
 static void parse_resume_reject (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) 
 {
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing RESUME_REJECT Msg\n"); 
 #endif
 
@@ -515,7 +515,7 @@
  
 	resume_reject=(RESUME_REJECT_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building RESUME_REJECT Msg\n"); 
 #endif
 	return msg; 
@@ -523,7 +523,7 @@
 
 static void parse_hold (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) 
 {
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing HOLD Msg\n"); 
 #endif
 
@@ -538,7 +538,7 @@
  
 	hold=(HOLD_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building HOLD Msg\n"); 
 #endif
 	return msg; 
@@ -546,7 +546,7 @@
 
 static void parse_suspend (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) 
 {
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing SUSPEND Msg\n"); 
 #endif
 
@@ -561,7 +561,7 @@
  
 	suspend=(SUSPEND_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building SUSPEND Msg\n"); 
 #endif
 	return msg; 
@@ -569,7 +569,7 @@
 
 static void parse_resume (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) 
 {
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing RESUME Msg\n"); 
 #endif
 
@@ -584,7 +584,7 @@
  
 	resume=(RESUME_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building RESUME Msg\n"); 
 #endif
 	return msg; 
@@ -592,7 +592,7 @@
 
 static void parse_hold_acknowledge (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) 
 {
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing HOLD_ACKNOWLEDGE Msg\n"); 
 #endif
 
@@ -607,7 +607,7 @@
  
 	hold_acknowledge=(HOLD_ACKNOWLEDGE_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building HOLD_ACKNOWLEDGE Msg\n"); 
 #endif
 	return msg; 
@@ -615,7 +615,7 @@
 
 static void parse_suspend_acknowledge (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) 
 {
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing SUSPEND_ACKNOWLEDGE Msg\n"); 
 #endif
 
@@ -630,7 +630,7 @@
  
 	suspend_acknowledge=(SUSPEND_ACKNOWLEDGE_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building SUSPEND_ACKNOWLEDGE Msg\n"); 
 #endif
 	return msg; 
@@ -638,7 +638,7 @@
 
 static void parse_resume_acknowledge (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) 
 {
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing RESUME_ACKNOWLEDGE Msg\n"); 
 #endif
 
@@ -653,7 +653,7 @@
  
 	resume_acknowledge=(RESUME_ACKNOWLEDGE_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building RESUME_ACKNOWLEDGE Msg\n"); 
 #endif
 	return msg; 
@@ -661,7 +661,7 @@
 
 static void parse_hold_reject (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) 
 {
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing HOLD_REJECT Msg\n"); 
 #endif
 
@@ -676,7 +676,7 @@
  
 	hold_reject=(HOLD_REJECT_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building HOLD_REJECT Msg\n"); 
 #endif
 	return msg; 
@@ -684,7 +684,7 @@
 
 static void parse_retrieve (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) 
 {
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing RETRIEVE Msg\n"); 
 #endif
 
@@ -699,7 +699,7 @@
  
 	retrieve=(RETRIEVE_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building RETRIEVE Msg\n"); 
 #endif
 	return msg; 
@@ -707,7 +707,7 @@
 
 static void parse_retrieve_acknowledge (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) 
 {
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing RETRIEVE_ACKNOWLEDGE Msg\n"); 
 #endif
 
@@ -723,7 +723,7 @@
 	retrieve_acknowledge=(RETRIEVE_ACKNOWLEDGE_t*)((msg->data+HEADER_LEN)); 
 
 	enc_ie_channel_id(&retrieve_acknowledge->CHANNEL_ID, msg, 1, bc->channel, nt,bc);
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building RETRIEVE_ACKNOWLEDGE Msg\n"); 
 #endif
 	return msg; 
@@ -731,7 +731,7 @@
 
 static void parse_retrieve_reject (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) 
 {
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing RETRIEVE_REJECT Msg\n"); 
 #endif
 
@@ -746,7 +746,7 @@
  
 	retrieve_reject=(RETRIEVE_REJECT_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building RETRIEVE_REJECT Msg\n"); 
 #endif
 	return msg; 
@@ -762,7 +762,7 @@
 	if (cause>0) bc->cause=cause;
 
 	dec_ie_progress(disconnect->PROGRESS, (Q931_info_t *)disconnect, &bc->progress_coding, &bc->progress_location, &bc->progress_indicator, nt, bc);
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing DISCONNECT Msg\n"); 
 #endif
 
@@ -780,7 +780,7 @@
 	enc_ie_cause(&disconnect->CAUSE, msg, (nt)?1:0, bc->out_cause,nt,bc);
 	if (nt) enc_ie_progress(&disconnect->PROGRESS, msg, 0, nt?1:5, 8 ,nt,bc);
   
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building DISCONNECT Msg\n"); 
 #endif
 	return msg; 
@@ -793,7 +793,7 @@
 
 	struct misdn_stack *stack=get_stack_by_bc(bc);
 	
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing RESTART Msg\n");
 #endif
   
@@ -817,7 +817,7 @@
  
 	restart=(RESTART_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building RESTART Msg\n"); 
 #endif
 	return msg; 
@@ -832,7 +832,7 @@
   
 	dec_ie_cause(release->CAUSE, (Q931_info_t *)(release), &location, &cause, nt,bc);
 	if (cause>0) bc->cause=cause;
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing RELEASE Msg\n"); 
 #endif
 
@@ -850,7 +850,7 @@
 	if (bc->out_cause>= 0)
 		enc_ie_cause(&release->CAUSE, msg, nt?1:0, bc->out_cause, nt,bc);
   
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building RELEASE Msg\n"); 
 #endif
 	return msg; 
@@ -885,7 +885,7 @@
 	dec_ie_cause(release_complete->CAUSE, (Q931_info_t *)(release_complete), &location, &cause, nt,bc);
 	if (cause>0) bc->cause=cause;
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing RELEASE_COMPLETE Msg\n"); 
 #endif
 }
@@ -900,7 +900,7 @@
 	
 	enc_ie_cause(&release_complete->CAUSE, msg, nt?1:0, bc->out_cause, nt,bc);
   
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building RELEASE_COMPLETE Msg\n"); 
 #endif
 	return msg; 
@@ -914,7 +914,7 @@
 	unsigned char *p = NULL;
 	int err;
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing FACILITY Msg\n"); 
 #endif
 
@@ -943,7 +943,7 @@
 	FACILITY_t *facility = (FACILITY_t*)(msg->data+HEADER_LEN); 
 	Q931_info_t *qi;
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building FACILITY Msg\n"); 
 #endif
 	
@@ -971,7 +971,7 @@
 
 static void parse_notify (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) 
 {
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing NOTIFY Msg\n"); 
 #endif
 }
@@ -984,7 +984,7 @@
  
 	notify=(NOTIFY_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building NOTIFY Msg\n"); 
 #endif
 	return msg; 
@@ -992,7 +992,7 @@
 
 static void parse_status_enquiry (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) 
 {
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing STATUS_ENQUIRY Msg\n"); 
 #endif
 }
@@ -1005,7 +1005,7 @@
  
 	status_enquiry=(STATUS_ENQUIRY_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building STATUS_ENQUIRY Msg\n"); 
 #endif
 	return msg; 
@@ -1024,7 +1024,7 @@
 		strcpy(bc->info_dad, number);
 		strcpy(bc->keypad,keypad);
 	}
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing INFORMATION Msg\n"); 
 #endif
 }
@@ -1048,7 +1048,7 @@
 		}
 	}
   
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building INFORMATION Msg\n"); 
 #endif
 	return msg; 
@@ -1065,7 +1065,7 @@
 	if (cause>0) bc->cause=cause;
 	;
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing STATUS Msg\n"); 
 #endif
 }
@@ -1078,7 +1078,7 @@
  
 	status=(STATUS_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building STATUS Msg\n"); 
 #endif
 	return msg; 
@@ -1086,7 +1086,7 @@
 
 static void parse_timeout (struct isdn_msg msgs[], msg_t *msg, struct misdn_bchannel *bc, int nt) 
 {
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Parsing STATUS Msg\n"); 
 #endif 
 }
@@ -1099,7 +1099,7 @@
  
 	status=(STATUS_t*)((msg->data+HEADER_LEN)); 
 
-#if DEBUG 
+#ifdef DEBUG 
 	printf("Building STATUS Msg\n"); 
 #endif
 	return msg; 

Modified: team/oej/multiparking/main/ast_expr2.c
URL: http://svn.digium.com/view/asterisk/team/oej/multiparking/main/ast_expr2.c?view=diff&rev=55332&r1=55331&r2=55332
==============================================================================
--- team/oej/multiparking/main/ast_expr2.c (original)
+++ team/oej/multiparking/main/ast_expr2.c Sun Feb 18 09:31:04 2007
@@ -367,7 +367,7 @@
 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
 
 #ifndef YY_
-# if YYENABLE_NLS
+# ifdef YYENABLE_NLS
 #  if ENABLE_NLS
 #   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
 #   define YY_(msgid) dgettext ("bison-runtime", msgid)

Modified: team/oej/multiparking/main/editline/refresh.c
URL: http://svn.digium.com/view/asterisk/team/oej/multiparking/main/editline/refresh.c?view=diff&rev=55332&r1=55331&r2=55332
==============================================================================
--- team/oej/multiparking/main/editline/refresh.c (original)
+++ team/oej/multiparking/main/editline/refresh.c Sun Feb 18 09:31:04 2007
@@ -215,7 +215,7 @@
 	prompt_print(el, EL_PROMPT);
 
 	/* draw the current input buffer */
-#if notyet
+#ifdef notyet
 	termsz = el->el_term.t_size.h * el->el_term.t_size.v;
 	if (el->el_line.lastchar - el->el_line.buffer > termsz) {
 		/*

Modified: team/oej/multiparking/main/enum.c
URL: http://svn.digium.com/view/asterisk/team/oej/multiparking/main/enum.c?view=diff&rev=55332&r1=55331&r2=55332
==============================================================================
--- team/oej/multiparking/main/enum.c (original)
+++ team/oej/multiparking/main/enum.c Sun Feb 18 09:31:04 2007
@@ -48,8 +48,10 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/nameser.h>
+#ifdef __APPLE__
 #if __APPLE_CC__ >= 1495
 #include <arpa/nameser_compat.h>
+#endif
 #endif
 #include <resolv.h>
 #include <stdlib.h>

Modified: team/oej/multiparking/main/srv.c
URL: http://svn.digium.com/view/asterisk/team/oej/multiparking/main/srv.c?view=diff&rev=55332&r1=55331&r2=55332
==============================================================================
--- team/oej/multiparking/main/srv.c (original)
+++ team/oej/multiparking/main/srv.c Sun Feb 18 09:31:04 2007
@@ -36,8 +36,10 @@
 #include <sys/types.h>
 #include <netinet/in.h>
 #include <arpa/nameser.h>
+#ifdef __APPLE__
 #if __APPLE_CC__ >= 1495
 #include <arpa/nameser_compat.h>
+#endif
 #endif
 #include <resolv.h>
 #include <stdio.h>

Modified: team/oej/multiparking/pbx/ael/ael.tab.c
URL: http://svn.digium.com/view/asterisk/team/oej/multiparking/pbx/ael/ael.tab.c?view=diff&rev=55332&r1=55331&r2=55332
==============================================================================
--- team/oej/multiparking/pbx/ael/ael.tab.c (original)
+++ team/oej/multiparking/pbx/ael/ael.tab.c Sun Feb 18 09:31:04 2007
@@ -335,7 +335,7 @@
 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
 
 #ifndef YY_
-# if YYENABLE_NLS
+# ifdef YYENABLE_NLS
 #  if ENABLE_NLS
 #   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
 #   define YY_(msgid) dgettext ("bison-runtime", msgid)

Modified: team/oej/multiparking/res/res_features.c
URL: http://svn.digium.com/view/asterisk/team/oej/multiparking/res/res_features.c?view=diff&rev=55332&r1=55331&r2=55332
==============================================================================
--- team/oej/multiparking/res/res_features.c (original)
+++ team/oej/multiparking/res/res_features.c Sun Feb 18 09:31:04 2007
@@ -1574,17 +1574,20 @@
 	return res;
 }
 
-static void post_manager_event(const char *s, char *parkingexten, struct ast_channel *chan)
+/*! \brief Output parking event to manager */
+static void post_manager_event(const char *s, struct parkeduser *pu)
 {
 	manager_event(EVENT_FLAG_CALL, s,
 		"Exten: %s\r\n"
 		"Channel: %s\r\n"
+		"Parkinglot: %s\r\n"
 		"CallerIDNum: %s\r\n"
 		"CallerIDName: %s\r\n\r\n",
-		parkingexten, 
-		chan->name,
-		S_OR(chan->cid.cid_num, "<unknown>"),
-		S_OR(chan->cid.cid_name, "<unknown>")
+		pu->parkingexten, 
+		pu->chan->name,
+		pu->parkinglot->name,
+		S_OR(pu->chan->cid.cid_num, "<unknown>"),
+		S_OR(pu->chan->cid.cid_name, "<unknown>")
 		);
 }
 
@@ -1638,9 +1641,8 @@
 						con = ast_context_find(pu->parkinglot->parking_con_dial);
 						if (!con)
 							con = ast_context_create(NULL, pu->parkinglot->parking_con_dial, registrar);
-							if (!con) {
-								ast_log(LOG_ERROR, "Parking dial context '%s' does not exist and unable to create\n", pu->parkinglot->parking_con_dial);
-							}
+						if (!con) 
+							ast_log(LOG_ERROR, "Parking dial context '%s' does not exist and unable to create\n", pu->parkinglot->parking_con_dial);
 						if (con) {
 							char returnexten[AST_MAX_EXTENSION];
 
@@ -1662,6 +1664,7 @@
 						set_c_e_p(chan, pu->context, pu->exten, pu->priority);
 
 					}
+					post_manager_event("ParkedCallTimeOut", pu);
 
 					if (option_verbose > 1) 
 						ast_verbose(VERBOSE_PREFIX_2 "Timeout for %s parked on %d (%s). Returning to %s,%s,%d\n", pu->chan->name, pu->parkingnum, pu->parkinglot->name, pu->chan->context, pu->chan->exten, pu->chan->priority);
@@ -1705,7 +1708,8 @@
 						if (!f || ((f->frametype == AST_FRAME_CONTROL) && (f->subclass ==  AST_CONTROL_HANGUP))) {
 							if (f)
 								ast_frfree(f);
-							post_manager_event("ParkedCallGiveUp", pu->parkingnum, chan);
+							post_manager_event("ParkedCallGiveUp", pu);
+
 							/* There's a problem, hang them up*/
 							if (option_verbose > 1) 
 								ast_verbose(VERBOSE_PREFIX_2 "%s got tired of being parked\n", chan->name);
@@ -1746,18 +1750,19 @@
 							if (chan->fds[x] > -1) {
 								FD_SET(chan->fds[x], &nrfds);
 								FD_SET(chan->fds[x], &nefds);
-							if (chan->fds[x] > max)
-								max = chan->fds[x];
+								if (chan->fds[x] > max)
+									max = chan->fds[x];
+							}
 						}
+						/* Keep track of our shortest wait */
+						if (tms < ms || ms < 0)
+							ms = tms;
+						pl = pu;
+						pu = pu->next;
 					}
-					/* Keep track of our shortest wait */
-					if (tms < ms || ms < 0)
-						ms = tms;
-					pl = pu;
-					pu = pu->next;
 				}
-			}
-		} /* end while */
+			} /* end while */
+		}
 		ast_mutex_unlock(&parking_lock);
 		rfds = nrfds;
 		efds = nefds;



More information about the svn-commits mailing list