Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Dial issue - controller and dialplan
<extension name="adhearsion">
<condition>
<action application="set" data="hangup_after_bridge=false"/>
<action application="set" data="park_after_bridge=true"/>
<action application="park" />
</condition>
</extension>
# encoding: utf-8
class IvrController < Adhearsion::CallController
def run
AudioService.establish_connection(Adhearsion.config.platform.root, Adhearsion.config.platform.environment.to_s)
answer
destinations = ["sofia/gateway/re_engine_out/1001"]
status = dial destinations
case status.result
when :answer
play *AudioService.urls_for([1])
when :no_answer
play *AudioService.urls_for([2])
when :error, :timeout
play *AudioService.urls_for([3])
end
play *AudioService.urls_for([3])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.