Hi guys,
I have some progress on my script but still facing the issues. I found out that I have to insert pauses between digits sent by DTMF. So I've redesigned my script to have the following logic:
1. Acknowledge a call setup, provide a dial tone and collect digits. And transfer to GOTDIGITS state.
2. Check whether the call is international or not. If it is not just place the call to destination and proceed with CALLACTIVE state. If it is international place the call to the local service number. And transfer to PLACECALL state.
3. After the call setup done check if status it ls_000 (call is active or was successful). If it is not - close the call. If it is - play 2 seconds silence. And transfer to PAUSESENT state.
4. Wait for ev_media_done (after playing 2 seconds silence) and send first digit. Then play 400 msec silence. Remain in the same state until last digit. Then transfer to CALLACTIVE state.
Fourth proc should do "media play leg_outgoing %s400" and the ev_media_done after it should trigger it again until all digits are sent. But this is not happen. According to debug script fails on third proc trying to play 2 seconds silence. Specifically it doesn't like "media play leg_outgoing %s2000" step.
I've attache both current version of the script and output of "debug voip application". If somebody has any ideas I would appreciate it.
Yuriy.