Sample screen pop gadget not working as expected

Version 1
    This document was generated from CDN thread

    Created by: yogesh kumar on 10-08-2013 10:27:34 AM
    Hi All,

    I am having some issue with  screen pop gadget. I found that sometimes the handleNewDialog() or handleEndDialog() or other function which needs to be called during call are not getting invoked. Sometimes only one of them getting invoked ...for example handleEndDialog. Making numdialogs value to negative other times it just opposite only handleNewDialog() getting invoked.
     
    What can be the possible reason fo this?

    I get this message in my console. Is it related to the issue I am facing?
     :  Dialog: Received the following event with an invalid or unknown requestId:

    thanks

    Subject: RE: New Message from yogesh kumar in Finesse - General Questions: Sample sc
    Replied by: David Lender on 12-08-2013 09:43:39 AM
    I have never seen a missing handleNewDialog or handleEndDialog event.  Did you make any changes to the screenpop gadget?

    Is the call appearing in the CallControl gadget correctly?  (it uses the same handleNewDialog and handleEndDialog events).

    Are you able to hold/retrieve the call from the CallControl gadget?

    Subject: RE: Sample screen pop gadget not working as expected
    Replied by: yogesh kumar on 15-08-2013 05:58:55 AM
    I face this issue generally at the start of the session. Can it be due to time taken by the gadget to load and initialize the event handler?
    My gadget is uploaded outside the finesse server.

    Subject: RE: New Message from yogesh kumar in Finesse - General Questions: RE: Sampl
    Replied by: David Lender on 15-08-2013 12:28:39 PM
    I suppose it could be.  Is the issue with an existing call that is present before the gadgets come up?  The screenpop sample gadget does not handle this case.  You would need to call User.getDialogs to get any existing dialogs.  If the call is received after the desktop is loaded I do not know why you would be missing events, especially if the Call Control gadget displays the call correctly.