Skip to content

Instantly share code, notes, and snippets.

@marks
Created January 5, 2009 14:47
Show Gist options
  • Select an option

  • Save marks/43416 to your computer and use it in GitHub Desktop.

Select an option

Save marks/43416 to your computer and use it in GitHub Desktop.
Swift Helper for Adhearsion
# Example usage of say_swift:
say_swift("Welcome to the ABC PBX")
say_swift("#{action}")
# Helpers by Mark S. - [email protected]
def say_swift(text)
text = %{"#{text}"}
execute 'swift', text.to_s
end
if require('helpers.rb') # (you may need to tweak the file path depending where you put helpers.rb)
ahn_log "Loaded helper functions of config/helpers.rb"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment