Interacting with IVR system using Python s60 telephone module
Hi All,
I am new to Python s60 (5th edition) application development. I am trying to develop an application that will interact with IVR system and I am stuck with the telephone module.
Here is what I am trying to do. Dial a number (responding with IVR), wait for 5 seconds, press "1". I want all these through the code.
[I]import telephone
import time
telephone.dial(u'12345')
time.sleep(5)
telephone.dial(u'1')[/I]
I couldnt find an API in python s60 for pressin/entering "1" after connecting a number. [B]telephone.dial(u'1') [/B]is raising exception as there is another call in progress.
Any help is greatly appreciated!
Thanks!
Re: Interacting with IVR system using Python s60 telephone module
Perhaps you could use "p" in the number - e.g. telephone.dial(u'12345pppp1')
Re: Interacting with IVR system using Python s60 telephone module
If you need sending further commands, consider checking if telephone module supports sending DTMF signals (unfortunately I can not find its documentation, searching for [b]telephone[/b] with Google seems to be rather pointless even if I pair it with Python and/or module)
Re: Interacting with IVR system using Python s60 telephone module
Hi G
How is the alignment tool development going? ;)
Re: Interacting with IVR system using Python s60 telephone module
Thanks hamishwillee. The pause (p) method works for me. [B]telephone.dial(u'12345pppp1') [/B]
Thanks everyone!