Hello,
I have problem calling my defined functions inside a module, while all other methods are called as you can see from out, I cant call “ping” method.
Here is a part of java code :
…
public void ping(IClient client, RequestFunction function, AMFDataList params) {
getLogger().info( client.getClientId() + “: [Custom module] ping”);
sendResult(client, params, “pong”);
}
public void onAppStart(IApplicationInstance appInstance) {
getLogger().info("[Custom module] onAppStart ");
}
public void onAppStop(IApplicationInstance appInstance) {
getLogger().info("[Custom module] onAppStop ");
}
public void onConnect(IClient client, RequestFunction function,
AMFDataList params) {
getLogger().info("[Custom module] onConnect: " + client.getClientId());
}
…
Here is the console output:
INFO server comment - [Custom module] onAppStart
INFO application app-start definst vod/definst
INFO session connect-pending 127.0.0.1 -
INFO server comment - [Custom module] onConnect: 76184548
INFO session connect 127.0.0.1 -
INFO server comment - [Custom module] onConnectAccept: 76184548
INFO server comment - [Custom module] onStreamCreate: 1
INFO stream create - -
WARN server comment - Missing function: ping
INFO stream destroy - -
INFO session disconnect 76184548 -
INFO server comment - [Custom module] onDisconnect: 76184548
Anyone have any idea what the problem might be ? (I rechecked config file and doesnt seem to be any problem there).
Thanks for your help