Skip to content

Instantly share code, notes, and snippets.

@bklang
Created May 4, 2011 14:13
Show Gist options
  • Save bklang/955283 to your computer and use it in GitHub Desktop.
Save bklang/955283 to your computer and use it in GitHub Desktop.
Using Adhearsion and Asterisk Local channels to play sound files to a conference
trigger_context {
ami = Adhearsion::VoIP::Asterisk.manager_interface
ami.originate :Channel => 'Local/s@local-meetme', :Application => 'AGI', :Data => 'agi://localhost/play_announce'
}
play_announce {
play 'my-super-cool-announcement', 'thanks-and-goodbye'
}
[local-meetme]
; Assumes MeetMe room number 1234 does not require a PIN
exten => s,1,Answer
exten => s,n,MeetMe(1234)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment