Re: [Asterisk-java-users] ActionID
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2005-10-06 19:31:50
|
Hi, > actionID. I followed the trace to this point: >=20 > if (actionId !=3D null) > { > internalActionId =3D > Util.getInternalActionId(actionId); =20 > response.setActionId(Util.stripInternalActionId(actionId)); > } >=20 > , on DefaultManagerConnection. > The problem is that the first call to > Util.getInternalActionId(actionId) erases the final # > from the actionID, so the second call doesn't > recognize the format, and returns null. Util.getInternalActionId(actionId) does not change the actionId (actually it can't even do so as Strings in Java are immutable objects) it assigns the part before the first # to internalActionId. response.setActionId(Util.stripInternalActionId(actionId)); assigns the part following the first # to the actionId property of the response object, so that should contain the actionId you set on the corresponding Action object, if any. Did you set the actionId on your Action before sending it to asterisk? If you did your response should contain exactly that id. If not thats a bug. Can you provide a short test case that demonstrates your problem and open a bug in jira? (http://jira.reucon.com) Thanks =3DStefan |