sbensen Report post Posted 04/11/2005 09:39 PM Is there a way to accept user input through the COM interface? Share this post Link to post
SupportTeam Report post Posted 04/11/2005 11:39 PM You mean like a COM function which would 'inject' a DTMF tone as if the caller had pressed it? Or something else? What application would you use this function for? Share this post Link to post
sbensen Report post Posted 04/12/2005 03:16 PM More like a way to trap the DTMF tones that a caller presses (trap on an incoming event). It's for an active x dll that VoiceGuide will call through a vbscript Share this post Link to post
SupportTeam Report post Posted 04/12/2005 09:47 PM You can use the COM function: Events_ListenStart(iLineId) and all line events (including DTMF tone keypresses) for specified Line will be sent to your program. But this will not really work within VBScript as VBScript cannot accept events... Why don’t you just use the "Get Number" VoiceGuide module to accept caller input? BTW event handler has this header: LineEvent(iLineId as Integer, sEventType as String, lData as Long, sData as String) Share this post Link to post
sbensen Report post Posted 04/12/2005 10:02 PM Great it worked! Do you happen to have a list of all of the event types? Share this post Link to post
SupportTeam Report post Posted 04/12/2005 10:39 PM There is no full list available at this time. The contents of sData should be self explanatory in most cases. Events with numbers in range 8000-9000 are internal VoiceGuide state machine transition events. Share this post Link to post
SupportTeam Report post Posted 04/26/2006 09:48 AM In VG for Dialogic the event handler has this header: LineEvent(iLineId as Long, sEventType as String, lData as Long, sData as String) in VG for TAPI the event handler has this header: LineEvent(iLineId as Integer, sEventType as String, lData as Long, sData as String) iLineId is Integer on one version and a Long in the other...! Make sure you define the event handler correctly else your program will not compile! Share this post Link to post