app/controllers/exotel_api/call_controller.rb
def after_keypress
      begin
        _call = direction
        if _call.present?
          urls = _call.after_keypress(params) if defined?(_call.after_keypress)
        end
      rescue => e
        logger.error e.message
        logger.error e.backtrace.join("\n")
      end
      render :plain => urls, content_type: "text/plain", status: 200
    end
#response - audio file or list of URLs of audio files
audio file or list of URLs of audio files
audio file or list of URLs of audio files
def after_keypress
      begin
        _call = direction
        if _call.present?
          urls = _call.after_keypress(params) if defined?(_call.after_keypress)
        end
      rescue => e
        logger.error e.message
        logger.error e.backtrace.join("\n")
      end
      render :plain => urls, content_type: "text/plain", status: 200
    end
def after_keypress begin _call = direction if _call . present? urls = _call . after_keypress ( params ) if defined? ( _call . after_keypress ) end rescue => e logger . error e . message logger . error e . backtrace . join ( "\n" ) end render :plain => urls , content_type : "text/plain" , status : 200 end
response - audio file or list of URLs of audio files
response - audio file or list of URLs of audio files