Results 1 to 3 of 3

Thread: I want to implement A TIMER FUNCTION in an IVR app on HMP (AOH) on win platform

  1. #1
    rajneeshsharma Guest

    Question I want to implement A TIMER FUNCTION in an IVR app on HMP (AOH) on win platform

    I have an IVR app in C using HMP AoH. We are processing all received events on incoming calls like collecting DTMP digits, playing messages and collecting voice messages. I need to add a timer function to this so that the timer goes off every say 2 minutes and I get a message in the event queue . I use that event to handle out bound functions not initiated by the users calling in. Basically, I need a custom event ( always same event) to be generated every 2 minutes so that I can use that as a cue to initiate actions from the script. The platform is windows. Please HELP

  2. #2
    rajneeshsharma Guest

    Default is it possible this way???

    use wait on event with a timer value of say 60000 ms. if the waitonevent function returns with no event during this duration, I inject a custom event in the queue. the system again waits for an event for that specified time. now when the custom event arrives, I use it as a cue to do my own house keeping jobs.

  3. #3
    Join Date
    Jul 2008
    Posts
    268

    Default

    Yes, the built-in Windows wait on event method will work. Alternatively you could try using the PKH_TIMER APIs if using the low level HMP API ( or PKX_SYSTEM_InjectEvent if using the high level Grandprix API ). These APIs provide timer functionality through the Pika API. They are setup, captured and logged through the same mechanism as other API events.

    Hope it helps.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •