[asterisk-commits] russell: trunk r131207 - /trunk/channels/chan_agent.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jul 16 10:08:22 CDT 2008
Author: russell
Date: Wed Jul 16 10:08:22 2008
New Revision: 131207
URL: http://svn.digium.com/view/asterisk?view=rev&rev=131207
Log:
Add missing terminator to ast_event_subscribe to fix a crash.
(from rev 131206 in the 1.6.0 branch)
Modified:
trunk/channels/chan_agent.c
Modified: trunk/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_agent.c?view=diff&rev=131207&r1=131206&r2=131207
==============================================================================
--- trunk/channels/chan_agent.c (original)
+++ trunk/channels/chan_agent.c Wed Jul 16 10:08:22 2008
@@ -2488,7 +2488,7 @@
/* Dialplan Functions */
ast_custom_function_register(&agent_function);
- agent_devicestate_sub = ast_event_subscribe(AST_EVENT_DEVICE_STATE, agent_devicestate_cb, NULL);
+ agent_devicestate_sub = ast_event_subscribe(AST_EVENT_DEVICE_STATE, agent_devicestate_cb, NULL, AST_EVENT_IE_END);
return AST_MODULE_LOAD_SUCCESS;
}
More information about the asterisk-commits
mailing list