Method: Librevox::Applications#redirect

Defined in:
lib/librevox/applications.rb

#redirect(uri, &block) ⇒ Object

Redirect a channel to another endpoint. You must take care to not redirect incompatible channels, as that wont have the desired effect. I.e. if you redirect to a SIP URI, it should be a SIP channel.

#redirect can only be used on non-established calls, i.e. calls that has not been answered with the #answer application yet. If the call has been answered, use #deflect instead.



209
210
211
# File 'lib/librevox/applications.rb', line 209

def redirect uri, &block
  application "redirect", uri, &block
end