FreeSWITCH Version 1.4.26~64bit ( 64bit)

 

We receive this error, “[ERR] switch_ivr_originate.c:224 sofia/sipinterface_1/  Error Playing File!” whenever the leg receiving the call hangs up before the extant media can start playing.

 

After looking through switch_ivr_originate.c, I tried setting the global variables playback_timeout_sec=10 and playback_timeout_as_success=true but did not see a change in behavior.

 

            status = switch_ivr_read(collect->session,

                                    (uint32_t)len,

                                    (uint32_t)len,

                                    collect->file, NULL, buf, sizeof(buf), collect->confirm_timeout, NULL, 0);

           

           

            if (status != SWITCH_STATUS_SUCCESS && status != SWITCH_STATUS_BREAK && status != SWITCH_STATUS_TOO_SMALL) {

                  switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(collect->session), SWITCH_LOG_ERROR, "%s Error Playing File!\n",

                                            switch_channel_get_name(channel));

                  switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);

            }

 

Is there some other setting that can inform switch_ivr_originate to not worry about having not played the media after the recipient has hung up?

 

john nowlin

Senior Software Developer

 

Tresta

office: 850.383.7756

mobile: 850.294.5635

www.tresta.com

—

A Better Phone Experience