Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/impl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6530/src/java/net/sf/asterisk/manager/impl
Modified Files:
EventBuilderImpl.java
Log Message:
Added internalActionId attribute to ResponseEvent
Index: EventBuilderImpl.java
===================================================================
RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/impl/EventBuilderImpl.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -p -r1.5 -r1.6
--- EventBuilderImpl.java 15 Jul 2005 19:01:33 -0000 1.5
+++ EventBuilderImpl.java 16 Jul 2005 00:16:01 -0000 1.6
@@ -243,6 +243,9 @@ public class EventBuilderImpl implements
setAttributes(event, attributes);
+ // ResponseEvents are sent in response to a ManagerAction if the
+ // response contains lots of data. They include the actionId of
+ // the corresponding ManagerAction.
if (event instanceof ResponseEvent)
{
ResponseEvent responseEvent;
@@ -253,6 +256,7 @@ public class EventBuilderImpl implements
if (actionId != null)
{
responseEvent.setActionId(Util.stripInternalActionId(actionId));
+ responseEvent.setInternalActionId(Util.getInternalActionId(actionId));
}
}
|