Genesys CTI User Forum
Genesys CTI User Forum => Genesys-related Development => Topic started by: S on November 06, 2007, 08:35:12 PM
-
I am working on a java application using genji.jar libraries and j2se1.6.0
Purpose: to connect to a Tserver and register a DN. if it is logged in, then based on a input-logout that DN.
I know I have this functionality in genesys toolkit app, but I want to create this app to give to a client who can use only this functionality of logging out a DN. that's it.
now I faced with hurdles of developing it.
my app doesn't open the teleline.
[size=8pt]private void connectTeleLine() {
this.phTLine = null;
System.out.println("?open line Tserver ");
try {
System.out.println("?open line Tserver2 "); /// IT STOPS HERE... NO MESSAGES AFTER THIS... NEITHER IN MY APP NOR IN TSERVER LOGS...
this.phTLine = new PhTeleLine(new TeleServerContext(strHost,intPort), strTsName, this);
phTLine.setAppName("testApp");
phTLine.open();
System.out.println("?open line Tserver3 ");
registerDN(strTsName, "7001" );
} catch (TeleLineException e) {
System.out.println("Cannot open line Tserver --" + e.getMessage());
//e.printStackTrace();
} catch (TeleServerContextException e) {
System.out.println("Cannot get Tserver context --" + e.getMessage());
}
}[/size]
Can someone please help me fix it?
what am I missing?
Thanks
-
Hi,
I would suggest you to try older version of Java SDK. Java Desktop Toolkit has been built with JDK 1.4.2.
René
-
did u mean Genji was built around jdk1.4.2?
-
The answer is yes. You can find that information in "Desktop Toolkit 7.2 Java Developer's Guide".
René
-
The genji library comes with examples, check TestSoftPhone_ansCall.java for an idea on logging that DN out.
-
;D :) ;) :) ;D ;D 8) :)> :)> :)> >:D >:D >:D[move][move][shadow=red,left][shadow=red,left][ftp][email][url][flash=200,200][sup][sub][tt][code][quote][list]
[li][font=Verdana][size=10pt][hr][center][left][pre][glow=red,2,300][glow=red,2,300][/glow][/glow][/pre][/left][/center][/size][/font][/li]
[li][/li]
[/list][/quote][/code][/tt][/sub][/sup][/flash][/url][/email][/ftp][/shadow][/shadow][/move][/move]
-
Where can i get the sample code? E.J. TestSoftPhone_ansCall.java Thanks
-
Sample code is part of Genesys SDK - Platform SDK has tonns of it. What exactly are you having problem with?
-
[quote author=S link=topic=2561.msg9883#msg9883 date=1194381312]
I am working on a java application using genji.jar libraries and j2se1.6.0
Purpose: to connect to a Tserver and register a DN. if it is logged in, then based on a input-logout that DN.
I know I have this functionality in genesys toolkit app, but I want to create this app to give to a client who can use only this functionality of logging out a DN. that's it.
now I faced with hurdles of developing it.
my app doesn't open the teleline.
[size=8pt]private void connectTeleLine() {
this.phTLine = null;
System.out.println("?open line Tserver ");
try {
System.out.println("?open line Tserver2 "); /// IT STOPS HERE... NO MESSAGES AFTER THIS... NEITHER IN MY APP NOR IN TSERVER LOGS...
this.phTLine = new PhTeleLine(new TeleServerContext(strHost,intPort), strTsName, this);
phTLine.setAppName("testApp");
phTLine.open();
System.out.println("?open line Tserver3 ");
registerDN(strTsName, "7001" );
} catch (TeleLineException e) {
System.out.println("Cannot open line Tserver --" + e.getMessage());
//e.printStackTrace();
} catch (TeleServerContextException e) {
System.out.println("Cannot get Tserver context --" + e.getMessage());
}
}[/size]
Can someone please help me fix it?
what am I missing?
Thanks
[/quote]
S:
Java 1.4.2 is the answer to your prayer. I think you are using 1.6, right?