Newbie Q: Callback Originate with asterisk-java


I’m a bit new to Asterisk, and I want to achieve a callback originate action, between two phone numbers, which are came from a web form for eg.
The originate successfully queued, but 1 second after the pickup, the call destroyed.
What am I doing wrong?

originateAction.setPriority(new Integer(1));
originateAction.setAsync(new Boolean(true));
originateResponse = managerConnection.sendAction(originateAction, 30000);

Thanks in advance!

To get some help you shoud include the relevant parts of your dialplan and the actual values for channel, context, called, and so on as well as the output on the Asterisk CLI.
Another hint might be to have a look at the package and the originateXXX methods in AsteriskServer.