..

DataAvailable event never fires

..

Developer Group

Developer Group
Connect with thousands of other developers to brainstorm ideas, share best practices and tips - or just chat about the latest emerging technologies making noise in the field. And of course, get the most up-to-date service and support news from Dialogic.
Dialogic Diva SDK programming questions

DataAvailable event never fires

  • Hello,

    We are currently using the DIVA.NET API wrapper to record calls.

    I am able to record to file but unable to mimic the functionality of the sample "AudioMonitorRxStream".

    Ultimately what we are trying to do is stream audio from the diva based app to another application.

    The issue that we are having is that we cannot get the DataAvailable to fire off.

    We're using a V-2PRI/E1/TI-60 card in monitoring mode (unfortunately we cannot test in a different mode).

    MonitorCallInitiated

    MonitorCallConnected

    MonitorCallDisconnected

    MonitorCallInfo

    MonitorStatus

  • Did you enable the collection of audio data by the application? You can try using DSAPI.MonitorEnableAudioData and wait for the DivaMonitorAudioData event. Then use DivaMonitorReceiveAudio to retrieve the buffer contents.

    Refer to the SDK documentation for details on those functions/events.

  • MonitorFunctions.PNG

    Hi Mathieu,

    Thank you for responding. I’ve looked for DSAPI.MonitorEnableAudioData but it does not show up as a function that I can use.

    I am currently using DivaServer.dll v.5.5.5.3. Attached is an image of the monitor functions that the object browser does allow me to use.

    Is this a function that existed in a previous version of the SDK? 

  • Hi Mathieu,

    Thank you for responding. I’ve looked for MonitorEnableAudioData but it does not show up as a function that I can use.

    I am currently using DivaServer.dll v.5.5.5.3. I've tried using the object browser to see if it's under a different name but no luck.

    Is this a function that existed in a previous version of the SDK? 

    These are the only functions I see with intellisense when I type monitor:

    MonitorAttachToLine
    MonitorAttachToTimeslot
    MonitorCloseCallHandle
    MonitorDetachHandle
    MonitorGetCallInfo
    MonitorGetCallProperties
    MonitorGetCallTimeStatistics
    MonitorGetFrame
    MonitorGetSetupMessage
    MonitorRecordAudio
    MonitorReportFrames
    MonitorSetVolume
    MonitorSpecifyTone
    MonitorStopAudio

    Kind Regards

  • It is not a new function in 5.5SU5 nor has it been removed, I see it listed in dsSDK.dll 5.5.5.3576 (in Basic\bin\ and Basic\bin64\).

  • We have the latest dsSDK.dll and I am referencing the DivaServer.dll in my C# .NET project but that function is not in the DSAPI.

    I tried modifying the sample included in the SDK "Basic\samples\VCSharp\AudioMonitorSingleTrunk" and it gave me the same error as well.

    Below is the error that VS gives me, intellisense doesn't give me that function as an option:

    Error 1 The type name 'MonitorEnableAudioData' does not exist in the type 'DivaServer.DSAPI' 

    Regards,