Access Keys:
Skip to content (Access Key - 0)









Why is getDialog returning null?

Print this page

Question

Any idea why getDialog would be null? is the activity the dialog here? should I be able to call (Dialog)aci.getActivity()? I am attached to the dialog activity because I can iterate all attached dialogs and find the one with the same callId as the response.

public void on200Response(ResponseEvent event, ActivityContextInterface aci) {
  debug("received 200 response");
  try{
    //Acknowledge the conference server
    event.getClientTransaction().getDialog().sendAck(event.getClientTransaction().createAck());
  }
  catch(SipException xSIP){
    severe("could not ACK conference bridge OK",xSIP);
  }
}

Answer

Register/login to use all DevPortal features - Log in | Sign up )

Adaptavist Theme Builder Powered by Atlassian Confluence