[asterisk-commits] rmudgett: branch rmudgett/aoc_event r248865 - /team/rmudgett/aoc_event/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 25 15:36:03 CST 2010


Author: rmudgett
Date: Thu Feb 25 15:36:00 2010
New Revision: 248865

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=248865
Log:
The terminating blank line for AMI events is automatically added for me.

Modified:
    team/rmudgett/aoc_event/channels/sig_pri.c

Modified: team/rmudgett/aoc_event/channels/sig_pri.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/aoc_event/channels/sig_pri.c?view=diff&rev=248865&r1=248864&r2=248865
==============================================================================
--- team/rmudgett/aoc_event/channels/sig_pri.c (original)
+++ team/rmudgett/aoc_event/channels/sig_pri.c Thu Feb 25 15:36:00 2010
@@ -2364,7 +2364,7 @@
 		}
 	}
 
-	ast_manager_event(owner, EVENT_FLAG_AOC, "AOC-S", "%s\r\n", ast_str_buffer(msg));
+	ast_manager_event(owner, EVENT_FLAG_AOC, "AOC-S", "%s", ast_str_buffer(msg));
 	ast_free(msg);
 }
 #endif	/* defined(HAVE_PRI_AOC_EVENTS) */
@@ -2436,7 +2436,7 @@
 		break;
 	}
 
-	ast_manager_event(owner, EVENT_FLAG_AOC, "AOC-D", "%s\r\n", ast_str_buffer(msg));
+	ast_manager_event(owner, EVENT_FLAG_AOC, "AOC-D", "%s", ast_str_buffer(msg));
 	ast_free(msg);
 }
 #endif	/* defined(HAVE_PRI_AOC_EVENTS) */
@@ -2531,7 +2531,7 @@
 	}
 
 	chans[0] = owner;
-	ast_manager_event_multichan(EVENT_FLAG_AOC, "AOC-E", owner ? 1 : 0, chans, "%s\r\n",
+	ast_manager_event_multichan(EVENT_FLAG_AOC, "AOC-E", owner ? 1 : 0, chans, "%s",
 		ast_str_buffer(msg));
 	ast_free(msg);
 }




More information about the asterisk-commits mailing list