I am actually doing a lua script for IVR as follows

-- answer the call
session:answer();

while session:ready() == true do
        -- sleep a second
        session:sleep(1000);

        -- play a file
        session:streamFile("/path/to/blah.wav");
        
        -- hangup
        session:hangup();
end

The problem lies in: when I picked up my phone, blah.wav was already
played for a while, instead of from the beginning.

I shall greatly appreciate any input.

On Wed, Aug 12, 2009 at 12:58 AM, Paul Li<plite2...@gmail.com> wrote:
> I have a dummy question. Say, you have an outbound call to the demo
> IVR as below:
>
> originate sofia/gateway/myvoip/19876543210 5000
>
> How do I delay the IVR response until the recipient at 19876543210
> picks up the call? I tried "ignore_early_media=true", which had no
> effect.
>
> Many thanks in advance.
>

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to