I am working with the Weemo sdk and up to now it is looking very promising. However I have encountered one problem while writing app based on it. I have registered a CallStatusChanged listener to the eventbus and I have no problem receiving the event on the receiver when the caller calls. However the WeemoCall object is not well constructed and the getCallId() method returns 0 (see the following code ). To my understanding event.getCaller will return the id of the caller so we can latter on use it to establish a call. can anyone help me to solve this ? I have attached a screenshot of the call object I took during debuging.
@WeemoEventListener
public void onCallStatusChanged(final CallStatusChangedEvent event){
String msg = "";
Log.i(TAG,"onCallStatusChanged" + event.toString());
switch (event.getCallStatus()){
case CREATED:
msg = "call created";
break;
...
case RINGING:
msg = "call is ringing";
Intent i = new Intent(this, VideoCallingActivity.class);
i.putExtra(INCOMING_CALL_ID_EXTRA, event.getCall().getCallId()); //getCallId returns 0 ?!
startActivity(i);
break;
...
}
Log.i(TAG,msg);
}