[Asterisk-java-users] RedirectAction to MeetMe
Brought to you by:
srt
From: Johannes B. <j....@ad...> - 2006-10-16 09:10:30
|
Hello, =20 I'm currently implementing 'join' for the GJTapi-Asterisk-Provider. This = enables conference and transfer for GJTapi applications using that = provider. It's based on Asterisk-Java's manager interface. But I'm = running into problems ... maybe one can help me here. =20 A scenario is:=20 someone calls me on my SIP-phone from 'outside' over Zap. I place that = person on hold and call another party. That done my application knows = there are two active calls with four different channels.=20 What I want to do next is to 'join' those two calls by using MeetMe and = the RedirectAction. Asterisk has an extension called 'custom-conf': = 'exten =3D> s,1,MeetMe(${EXTEN},dpqM)'. So I try to redirect one of my = SIP-Channels and the other two channels connected to the other parties = to a MeetMe-Conference: RedirectAction redAct =3D new RedirectAction(channel1, "custom-conf", = "222", new Integer(1)); managerConnection.sendAction(redAct); And the same for the other channels. The result is disconnection of all = parties. The response.getMessage() function keeps telling me "Channel = does not exist: net.sf.asterisk.manager.Channel: = id=3D'asterisk-6535-1160646952.173'; name=3D'Zap/1-1'; = callerId=3D'96....." for the external Channel no matter whether it's a = Sip or a Zap channel. Calling asteriskManager.getChannels() I can see = that it exists. Asterisk tells me " =3D=3D Spawn extension = (custom-conf, 222, 0) exited non-zero on 'Zap/1-1' in macro 'dial'" = followed by " -- Stopped music on hold on Zap/1-1 -- Hungup 'Zap/1-1'" =20 Any ideas? Maybe I should mention I'm using Asterisk-Java 0.2 because = I'm forced to use 1.4 Java. =20 Thanks, Johannes Boesl |