[Asterisk-java-users] OriginateActionsetVariables() and CommandAction.setCommand(meetme list)
Brought to you by:
srt
From: g f <gf...@gm...> - 2006-02-17 19:05:40
|
Hello all, I have a question. In my application I send people to Conference rooms. I can then monitor the rooms by calling the CommandAction.setCommand("meetm= e list 8200"); Problem I am having is that when I join the users via OriginateAction I ge= t the following output when I call the meetme list 8200 command: This is before anyone is in the room (dont know why I get this, see my previous post) User #: 01 <unknown> sip/202 Channel: SIP/202-6b5f (unmonitored) 1 users in that conference. This is after I join someone to the conference (they are in by themselves) User #: 01 <unknown> sip/202 Channel: SIP/202-6b5f (unmonitored) User #: 02 <unknown> John Smith Channel: SIP/202-e588 (unmonitored) 2 users in that conference. This is the output if I dial from the phone to 8200 (omitting my application) User #: 01 <unknown> sip/202 Channel: SIP/202-6b5f (unmonitored) User #: 02 202 John Smith Channel: SIP/202-e588 (unmonitored) 2 users in that conference. So in my code that is returned from meetme list 8200 I search for <unknown> and if it contains this string I disregard. And then I grab the next string and parse it to return the User Name (in this case : John Smith)as long as it does not contain String <unknown>. As you can see, if the conferences are made through my app, all strings returned from meetme list 8200 are omitted (this displays no users in conference) cus they all contain a string <unknown> From what I understand this Variable with the value of <unknown> is called AMPUSER. So in my OriginateAction I try to do: Map map; map =3D new LinkedHashMap(); map.put("AMPUSER","ZZZ"); oAction =3D new OriginateAction(); oAction.setVariables(map); Still I get <unknown> Is it possible to set this to something other than <unknown> ? Perhaps I am going about this wrong? Any advice is greatly appreciated!! TIA!!! |