[Asterisk-java-users] Is this a bug?
Brought to you by:
srt
From: Jason W. <ja...@cl...> - 2006-03-08 17:40:11
|
Hello, The following code hangs evertime on my machine. It's because of the concatenation; if I take it out (dmail=email1+email2+email3;) then it works fine... How can I further nail down the problem? I get 'INFO: Received Connection.' and nothing else... subsequent to failure, calls to this script show 'SEVERE: no script configured' error //************************************************************************** ******** import net.sf.asterisk.fastagi.AGIChannel; import net.sf.asterisk.fastagi.AGIException; import net.sf.asterisk.fastagi.AGIRequest; import net.sf.asterisk.fastagi.BaseAGIScript; import java.util.*; import javax.mail.*; import javax.mail.internet.*; public class imailnew extends BaseAGIScript { public void service(AGIRequest request, AGIChannel channel) throws AGIException { String dmail,email1,email2,email3; email1 = "jason"; email2 = "clickforacall"; email3 = "com"; dmail = email1 + email2 + email3; //removal of this line will cause it to succeed System.out.println("success"); } } //************************************************************************** ******* Thank you, Jason |