Asterisk func AUDIOHOOK_INHERIT

Synopsis:

Set whether an audiohook may be inherited to another channel

Description:

AUDIOHOOK_INHERIT(source)

The built-in sources in Asterisk are
  • MixMonitor
  • Chanspy
  • Volume
  • Speex
  • JACK_HOOK

Notes

  • *CLI> core show function AUDIOHOOK_INHERIT

By enabling audiohook inheritance on the channel, you are giving
permission for an audiohook to be inherited by a descendent channel.
Inheritance may be be disabled at any point as well.

Return value

None

Examples

Example scenario:
exten => 2000,1,MixMonitor(blah.wav)
exten => 2000,n,Set(AUDIOHOOK_INHERIT(MixMonitor)=yes)
exten => 2000,n,Dial(SIP/2000)

exten => 4000,1,Dial(SIP/4000)

exten => 5000,1,MixMonitor(blah2.wav)
exten => 5000,n,Dial(SIP/5000)

In this basic dialplan scenario, let's consider the following sample calls
Call 1: Caller dials 2000. The person who answers then executes an attended
transfer to 4000.
Result: Since extension 2000 set MixMonitor to be inheritable, after the
transfer to 400 has completed, the call will continue to be recorded
to blah.wav

Call 2: Caller dials 5000. The person who answers then executes an attended
transfer to 4000.
Result: Since extension 5000 did not set MixMonitor to be inheritable, the
recording will stop once the call has been transferred to 4000.


See also


Synopsis:

Set whether an audiohook may be inherited to another channel

Description:

AUDIOHOOK_INHERIT(source)

The built-in sources in Asterisk are
  • MixMonitor
  • Chanspy
  • Volume
  • Speex
  • JACK_HOOK

Notes

  • *CLI> core show function AUDIOHOOK_INHERIT

By enabling audiohook inheritance on the channel, you are giving
permission for an audiohook to be inherited by a descendent channel.
Inheritance may be be disabled at any point as well.

Return value

None

Examples

Example scenario:
exten => 2000,1,MixMonitor(blah.wav)
exten => 2000,n,Set(AUDIOHOOK_INHERIT(MixMonitor)=yes)
exten => 2000,n,Dial(SIP/2000)

exten => 4000,1,Dial(SIP/4000)

exten => 5000,1,MixMonitor(blah2.wav)
exten => 5000,n,Dial(SIP/5000)

In this basic dialplan scenario, let's consider the following sample calls
Call 1: Caller dials 2000. The person who answers then executes an attended
transfer to 4000.
Result: Since extension 2000 set MixMonitor to be inheritable, after the
transfer to 400 has completed, the call will continue to be recorded
to blah.wav

Call 2: Caller dials 5000. The person who answers then executes an attended
transfer to 4000.
Result: Since extension 5000 did not set MixMonitor to be inheritable, the
recording will stop once the call has been transferred to 4000.


See also


Created by: dant, Last modification: Thu 15 of Oct, 2009 (08:51 UTC)
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+