[Asterisk-java-users] Other manager behavior modification
Brought to you by:
srt
From: <gm...@ea...> - 2007-06-01 07:54:18
|
Hi Stefan While I'm on it, I have another older pending modification related to asterisk 1.2 (I made this change as a workaround for 1.2.9 + BRIStuff iirc). I think this modification comes from the Bristuff patches. In the DbGetRespnse, the value is not returned after "Val" but after "Value". So I just added an additional extra setter to have it work with both versions. Gaetan Index: /Users/Gaetan/Documents/workspace/asterisk-java-trunk/src/main/ java/org/asteriskjava/manager/event/DbGetResponseEvent.java =================================================================== --- /Users/Gaetan/Documents/workspace/asterisk-java-trunk/src/main/ java/org/asteriskjava/manager/event/DbGetResponseEvent.java (revision 650) +++ /Users/Gaetan/Documents/workspace/asterisk-java-trunk/src/main/ java/org/asteriskjava/manager/event/DbGetResponseEvent.java (working copy) @@ -104,4 +104,16 @@ { this.val = val; } + + /** + * Sets the value of the database entry that was queried. + * It seems that in ast 1.2 ( 1.2.9 +BRIStuff ? ) at least the key is + * not val anymore but value. + * + * @param val the value of the database entry that was queried. + */ + public void setValue(String val) + { + this.val = val; + } } |