Hi, I'm trying to figure out how to use the command API via XML-RPC. I want to do the two following things one after the other: 1) place a call, and 2) play an audio on the newly created call. The Java code for placing a call (copied from wiki) works fine and is following: XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl(); XmlRpcClient client = new XmlRpcClient(); config.setServerURL(new URL("http://192.168.50.70:8080/RPC2")); config.setBasicUserName("freeswitch"); config.setBasicPassword("works"); client.setConfig(config); String response= client.execute("freeswitch.api", new Object[] { "originate", "sofia/internal/1003 & park()" }) .toString();
From my understanding the code for playing the audio should be:
client.execute("freeswitch.api", new Object[] { "playback", "32a5e11a-8649-11dd-bb78-fd02030a93ef /var/lib/freeswitch/sounds/hello.wav" }); Unfortunately, the latter doesn't work. I suspect it's because the call has been parked. What is the proper way to address this? Thanks, Klaus. -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx