My dial plan answers automatically?

Hi, I’m doing a Java application implemented with AsteriskJava. I used the OriginateAction to process the calls

OriginateAction originateAction = new OriginateAction(); originateAction.setChannel(SIP/639187778878@myvoipprovider); originateAction.setContext("default"); originateAction.setExten("6000"); originateAction.setPriority(1); originateAction.setTimeout(30000);
This code works and calls my mobile number and plays the voice menu I specified. However, there are a lot of times that it doesn’t call my phone and when I check the CLI logs, I can see that my voice menu is playing. But as I’ve said, it happens most of the time. On my Java app logs:

Jan 28, 2009 10:17:50 AM org.asteriskjava.manager.internal.ManagerConnectionImpl disconnect INFO: Closing socket.


If the application is opening a socket, then originating the call, you may want to pause a split second, as it can be slow opening sockets.


Hi, thanks for the insight. How can I make the pause btw? :cry: