Newbie Q: Callback Originate with asterisk-java

Hi!

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.setChannel(channel);
originateAction.setContext(context);
originateAction.setExten(called);
originateAction.setPriority(new Integer(1));
originateAction.setActionId("123456789"+channel);
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 org.asteriskjava.live package and the originateXXX methods in AsteriskServer.

=Stefan