[Asterisk-java-users] Originate and multiple variables
Brought to you by:
srt
From: Edu <jav...@ba...> - 2006-07-06 07:33:10
|
I'm using Asterisk-java 0.2 and I want to put 3 variables in a originate action. In my devel machine with asterisk 1.2 works Ok, but in the production machine with asterisk 1.0 doesn't work. Example code: (...) Map<String,String> variables=new LinkedHashMap<String,String>(2); variables.put("callId",call.getIdCall()); while(i.hasNext())//Locuciones variables.put(LOCUTIONSNAME+(++n),i.next()); originate.setVariables(variables); And later, in extensions.conf I have an UserEvent like this: exten => s, 3,UserEvent(Foo| callId: ${callId}) As commented in Asterisk wiki, Originate syntax and variables differ in 1.0 and 1.2, so I think that there is the problem so only want to confirm this behaviour :) Regards, Edu |