著作权为作者本人所有,未经授权,禁止转贴
Lucent isgsdk一般在linux下面安装到/opt/LUisg目录下
启动ISGSDK:
[root@zhanglei ~]# cd /opt
[root@zhanglei opt]# cd LUisg/
[root@zhanglei LUisg]# cd bin
[root@zhanglei bin]# ./isgsim.sh
仿真器启动,大概几秒钟后网络连接成功,如果网络连接不成功的话,大多数的可能性是启用了SElinux,打开"系统设置"->"安全级别"将SElinux关闭即可。网络防火墙依旧可以打开,至少我在网络防火墙打开的情况下ISGSDK是顺利启动的。
点击最左边的"load script file",打开samples.xml。(如果要运行其自带的SAMPLES应用程序的话,一定要在ISG simulator里装载和执行samples.xml文件。)
这个samples.xml描述的场景是两个用户在地图上随机的移动,我们可以对这两个用户进行各种各样的操作。
编译sample源代码,我们将编译UserStatusSample.java,这个程序主要是用来获得用户状态:
[root@zhanglei bin]# ./compilesample.sh samples/UserStatusSample.java
ISGSDKROOT /opt/LUisg/bin/./..
Using CLASSPATH = /opt/LUisg/bin/./..:/opt/LUisg/bin/./../lib/activation.jar:/opt/LUisg/bin/./../lib/bcprov-jdk14-118.jar:/opt/LUisg/bin/./../lib/concurrent.jar:/opt/LUisg/bin/./../lib/framework.jar:/opt/LUisg/bin/./../lib/fw_jacorb_idl_classes.jar:/opt/LUisg/bin/./../lib/fwmodule.jar:/opt/LUisg/bin/./../lib/hsqldb.jar:/opt/LUisg/bin/./../lib/isgsdk-idl-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-idl.jar:/opt/LUisg/bin/./../lib/isgsdk-monitor-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-samples-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-script-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-sdk-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-sim-4_0.jar:/opt/LUisg/bin/./../lib/jacorb.jar:/opt/LUisg/bin/./../lib/kunststoff.jar:/opt/LUisg/bin/./../lib/ldapserver.jar:/opt/LUisg/bin/./../lib/log4j-1.2.7.jar:/opt/LUisg/bin/./../lib/mailapi.jar:/opt/LUisg/bin/./../lib/vecmath.jar:/opt/LUisg/bin/./../lib/xalan.jar:/opt/LUisg/bin/./../lib/xercesImpl.jar:/opt/LUisg/bin/./../lib/xmlParserAPIs.jar
[root@zhanglei bin]# cd ..
[root@zhanglei LUisg]# cd samples/
[root@zhanglei samples]# ls
BypassSample.java HelloWorld.java ScriptSample2.java
CallControlSample.java MessagingSample.java UserInteractionSample.java
ChargingSample.java pizza UserStatusSample.class
CORBAUserStatusSample.java PizzaSample.java UserStatusSample.java
ExtendedSample.java ScriptSample1.java
我们可以看到在samples文件夹中生成了UserStatusSample.class文件,如果我们要执行它的话,则需要先执行simulator:
[root@zhanglei samples]# cd ../bin
[root@zhanglei bin]# ./runsample.sh samples.UserStatusSample 150111111111
ISGSDKROOT=/opt/LUisg/bin/./..
Using CLASSPATH = /opt/LUisg/bin/./..:/opt/LUisg/bin/./../etc:/opt/LUisg/bin/./../lib/activation.jar:/opt/LUisg/bin/./../lib/bcprov-jdk14-118.jar:/opt/LUisg/bin/./../lib/concurrent.jar:/opt/LUisg/bin/./../lib/framework.jar:/opt/LUisg/bin/./../lib/fw_jacorb_idl_classes.jar:/opt/LUisg/bin/./../lib/fwmodule.jar:/opt/LUisg/bin/./../lib/hsqldb.jar:/opt/LUisg/bin/./../lib/isgsdk-idl-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-idl.jar:/opt/LUisg/bin/./../lib/isgsdk-monitor-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-samples-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-script-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-sdk-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-sim-4_0.jar:/opt/LUisg/bin/./../lib/jacorb.jar:/opt/LUisg/bin/./../lib/kunststoff.jar:/opt/LUisg/bin/./../lib/ldapserver.jar:/opt/LUisg/bin/./../lib/log4j-1.2.7.jar:/opt/LUisg/bin/./../lib/mailapi.jar:/opt/LUisg/bin/./../lib/vecmath.jar:/opt/LUisg/bin/./../lib/xalan.jar:/opt/LUisg/bin/./../lib/xercesImpl.jar:/opt/LUisg/bin/./../lib/xmlParserAPIs.jar
150111111111 REACHABLE
程序执行后打印出用户150111111111的状态——REACHABLE。
执行HelloWorld.java
该程序主要是确认ISG仿真器的OSA层是否可用。
[root@zhanglei bin]# ./compilesample.sh samples/HelloWorld.java
ISGSDKROOT /opt/LUisg/bin/./..
Using CLASSPATH = /opt/LUisg/bin/./..:/opt/LUisg/bin/./../lib/activation.jar:/opt/LUisg/bin/./../lib/bcprov-jdk14-118.jar:/opt/LUisg/bin/./../lib/concurrent.jar:/opt/LUisg/bin/./../lib/framework.jar:/opt/LUisg/bin/./../lib/fw_jacorb_idl_classes.jar:/opt/LUisg/bin/./../lib/fwmodule.jar:/opt/LUisg/bin/./../lib/hsqldb.jar:/opt/LUisg/bin/./../lib/isgsdk-idl-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-idl.jar:/opt/LUisg/bin/./../lib/isgsdk-monitor-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-samples-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-script-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-sdk-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-sim-4_0.jar:/opt/LUisg/bin/./../lib/jacorb.jar:/opt/LUisg/bin/./../lib/kunststoff.jar:/opt/LUisg/bin/./../lib/ldapserver.jar:/opt/LUisg/bin/./../lib/log4j-1.2.7.jar:/opt/LUisg/bin/./../lib/mailapi.jar:/opt/LUisg/bin/./../lib/vecmath.jar:/opt/LUisg/bin/./../lib/xalan.jar:/opt/LUisg/bin/./../lib/xercesImpl.jar:/opt/LUisg/bin/./../lib/xmlParserAPIs.jar
[root@zhanglei bin]# ./runsample.sh samples.HelloWorld
ISGSDKROOT=/opt/LUisg/bin/./..
Using CLASSPATH = /opt/LUisg/bin/./..:/opt/LUisg/bin/./../etc:/opt/LUisg/bin/./../lib/activation.jar:/opt/LUisg/bin/./../lib/bcprov-jdk14-118.jar:/opt/LUisg/bin/./../lib/concurrent.jar:/opt/LUisg/bin/./../lib/framework.jar:/opt/LUisg/bin/./../lib/fw_jacorb_idl_classes.jar:/opt/LUisg/bin/./../lib/fwmodule.jar:/opt/LUisg/bin/./../lib/hsqldb.jar:/opt/LUisg/bin/./../lib/isgsdk-idl-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-idl.jar:/opt/LUisg/bin/./../lib/isgsdk-monitor-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-samples-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-script-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-sdk-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-sim-4_0.jar:/opt/LUisg/bin/./../lib/jacorb.jar:/opt/LUisg/bin/./../lib/kunststoff.jar:/opt/LUisg/bin/./../lib/ldapserver.jar:/opt/LUisg/bin/./../lib/log4j-1.2.7.jar:/opt/LUisg/bin/./../lib/mailapi.jar:/opt/LUisg/bin/./../lib/vecmath.jar:/opt/LUisg/bin/./../lib/xalan.jar:/opt/LUisg/bin/./../lib/xercesImpl.jar:/opt/LUisg/bin/./../lib/xmlParserAPIs.jar
Successfully connected to the OSA Framework.
The following Service Capability Servers (SCS) are running:
8/P_GENERIC_CALL_CONTROL
2/P_USER_LOCATION_CAMEL
4/P_CHARGING
7/P_PAM_PRESENCE_AND_AVAILABILITY
6/P_PAM_PROVISIONING
5/P_ACCOUNT_MANAGEMENT
10/P_GENERIC_MESSAGING
9/P_USER_INTERACTION
1/P_USER_STATUS
3/P_USER_LOCATION
Lucent isgsdk一般在linux下面安装到/opt/LUisg目录下
启动ISGSDK:
[root@zhanglei ~]# cd /opt
[root@zhanglei opt]# cd LUisg/
[root@zhanglei LUisg]# cd bin
[root@zhanglei bin]# ./isgsim.sh
仿真器启动,大概几秒钟后网络连接成功,如果网络连接不成功的话,大多数的可能性是启用了SElinux,打开"系统设置"->"安全级别"将SElinux关闭即可。网络防火墙依旧可以打开,至少我在网络防火墙打开的情况下ISGSDK是顺利启动的。
点击最左边的"load script file",打开samples.xml。(如果要运行其自带的SAMPLES应用程序的话,一定要在ISG simulator里装载和执行samples.xml文件。)
这个samples.xml描述的场景是两个用户在地图上随机的移动,我们可以对这两个用户进行各种各样的操作。
编译sample源代码,我们将编译UserStatusSample.java,这个程序主要是用来获得用户状态:
[root@zhanglei bin]# ./compilesample.sh samples/UserStatusSample.java
ISGSDKROOT /opt/LUisg/bin/./..
Using CLASSPATH = /opt/LUisg/bin/./..:/opt/LUisg/bin/./../lib/activation.jar:/opt/LUisg/bin/./../lib/bcprov-jdk14-118.jar:/opt/LUisg/bin/./../lib/concurrent.jar:/opt/LUisg/bin/./../lib/framework.jar:/opt/LUisg/bin/./../lib/fw_jacorb_idl_classes.jar:/opt/LUisg/bin/./../lib/fwmodule.jar:/opt/LUisg/bin/./../lib/hsqldb.jar:/opt/LUisg/bin/./../lib/isgsdk-idl-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-idl.jar:/opt/LUisg/bin/./../lib/isgsdk-monitor-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-samples-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-script-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-sdk-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-sim-4_0.jar:/opt/LUisg/bin/./../lib/jacorb.jar:/opt/LUisg/bin/./../lib/kunststoff.jar:/opt/LUisg/bin/./../lib/ldapserver.jar:/opt/LUisg/bin/./../lib/log4j-1.2.7.jar:/opt/LUisg/bin/./../lib/mailapi.jar:/opt/LUisg/bin/./../lib/vecmath.jar:/opt/LUisg/bin/./../lib/xalan.jar:/opt/LUisg/bin/./../lib/xercesImpl.jar:/opt/LUisg/bin/./../lib/xmlParserAPIs.jar
[root@zhanglei bin]# cd ..
[root@zhanglei LUisg]# cd samples/
[root@zhanglei samples]# ls
BypassSample.java HelloWorld.java ScriptSample2.java
CallControlSample.java MessagingSample.java UserInteractionSample.java
ChargingSample.java pizza UserStatusSample.class
CORBAUserStatusSample.java PizzaSample.java UserStatusSample.java
ExtendedSample.java ScriptSample1.java
我们可以看到在samples文件夹中生成了UserStatusSample.class文件,如果我们要执行它的话,则需要先执行simulator:
[root@zhanglei samples]# cd ../bin
[root@zhanglei bin]# ./runsample.sh samples.UserStatusSample 150111111111
ISGSDKROOT=/opt/LUisg/bin/./..
Using CLASSPATH = /opt/LUisg/bin/./..:/opt/LUisg/bin/./../etc:/opt/LUisg/bin/./../lib/activation.jar:/opt/LUisg/bin/./../lib/bcprov-jdk14-118.jar:/opt/LUisg/bin/./../lib/concurrent.jar:/opt/LUisg/bin/./../lib/framework.jar:/opt/LUisg/bin/./../lib/fw_jacorb_idl_classes.jar:/opt/LUisg/bin/./../lib/fwmodule.jar:/opt/LUisg/bin/./../lib/hsqldb.jar:/opt/LUisg/bin/./../lib/isgsdk-idl-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-idl.jar:/opt/LUisg/bin/./../lib/isgsdk-monitor-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-samples-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-script-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-sdk-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-sim-4_0.jar:/opt/LUisg/bin/./../lib/jacorb.jar:/opt/LUisg/bin/./../lib/kunststoff.jar:/opt/LUisg/bin/./../lib/ldapserver.jar:/opt/LUisg/bin/./../lib/log4j-1.2.7.jar:/opt/LUisg/bin/./../lib/mailapi.jar:/opt/LUisg/bin/./../lib/vecmath.jar:/opt/LUisg/bin/./../lib/xalan.jar:/opt/LUisg/bin/./../lib/xercesImpl.jar:/opt/LUisg/bin/./../lib/xmlParserAPIs.jar
150111111111 REACHABLE
程序执行后打印出用户150111111111的状态——REACHABLE。
执行HelloWorld.java
该程序主要是确认ISG仿真器的OSA层是否可用。
[root@zhanglei bin]# ./compilesample.sh samples/HelloWorld.java
ISGSDKROOT /opt/LUisg/bin/./..
Using CLASSPATH = /opt/LUisg/bin/./..:/opt/LUisg/bin/./../lib/activation.jar:/opt/LUisg/bin/./../lib/bcprov-jdk14-118.jar:/opt/LUisg/bin/./../lib/concurrent.jar:/opt/LUisg/bin/./../lib/framework.jar:/opt/LUisg/bin/./../lib/fw_jacorb_idl_classes.jar:/opt/LUisg/bin/./../lib/fwmodule.jar:/opt/LUisg/bin/./../lib/hsqldb.jar:/opt/LUisg/bin/./../lib/isgsdk-idl-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-idl.jar:/opt/LUisg/bin/./../lib/isgsdk-monitor-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-samples-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-script-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-sdk-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-sim-4_0.jar:/opt/LUisg/bin/./../lib/jacorb.jar:/opt/LUisg/bin/./../lib/kunststoff.jar:/opt/LUisg/bin/./../lib/ldapserver.jar:/opt/LUisg/bin/./../lib/log4j-1.2.7.jar:/opt/LUisg/bin/./../lib/mailapi.jar:/opt/LUisg/bin/./../lib/vecmath.jar:/opt/LUisg/bin/./../lib/xalan.jar:/opt/LUisg/bin/./../lib/xercesImpl.jar:/opt/LUisg/bin/./../lib/xmlParserAPIs.jar
[root@zhanglei bin]# ./runsample.sh samples.HelloWorld
ISGSDKROOT=/opt/LUisg/bin/./..
Using CLASSPATH = /opt/LUisg/bin/./..:/opt/LUisg/bin/./../etc:/opt/LUisg/bin/./../lib/activation.jar:/opt/LUisg/bin/./../lib/bcprov-jdk14-118.jar:/opt/LUisg/bin/./../lib/concurrent.jar:/opt/LUisg/bin/./../lib/framework.jar:/opt/LUisg/bin/./../lib/fw_jacorb_idl_classes.jar:/opt/LUisg/bin/./../lib/fwmodule.jar:/opt/LUisg/bin/./../lib/hsqldb.jar:/opt/LUisg/bin/./../lib/isgsdk-idl-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-idl.jar:/opt/LUisg/bin/./../lib/isgsdk-monitor-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-samples-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-script-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-sdk-4_0.jar:/opt/LUisg/bin/./../lib/isgsdk-sim-4_0.jar:/opt/LUisg/bin/./../lib/jacorb.jar:/opt/LUisg/bin/./../lib/kunststoff.jar:/opt/LUisg/bin/./../lib/ldapserver.jar:/opt/LUisg/bin/./../lib/log4j-1.2.7.jar:/opt/LUisg/bin/./../lib/mailapi.jar:/opt/LUisg/bin/./../lib/vecmath.jar:/opt/LUisg/bin/./../lib/xalan.jar:/opt/LUisg/bin/./../lib/xercesImpl.jar:/opt/LUisg/bin/./../lib/xmlParserAPIs.jar
Successfully connected to the OSA Framework.
The following Service Capability Servers (SCS) are running:
8/P_GENERIC_CALL_CONTROL
2/P_USER_LOCATION_CAMEL
4/P_CHARGING
7/P_PAM_PRESENCE_AND_AVAILABILITY
6/P_PAM_PROVISIONING
5/P_ACCOUNT_MANAGEMENT
10/P_GENERIC_MESSAGING
9/P_USER_INTERACTION
1/P_USER_STATUS
3/P_USER_LOCATION