# Problems with features and AUDIOHOOK\_INHERIT(MixMonitor)

**URL:** <https://community.asterisk.org/t/problems-with-features-and-audiohook-inherit-mixmonitor/36659>\
**Category:** Asterisk General\
**Created:** [September 13, 2011, 2:46pm UTC](https://community.asterisk.org/t/problems-with-features-and-audiohook-inherit-mixmonitor/36659 "2011-09-13T14:46:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnu](https://avatars.discourse-cdn.com/v4/letter/g/71e660/32.png) [@gnu](https://community.asterisk.org/u/gnu)\
**Post date:** [September 13, 2011, 2:46pm UTC](https://community.asterisk.org/t/problems-with-features-and-audiohook-inherit-mixmonitor/36659/1 "2011-09-13T14:46:26Z")

</div>

Hi, i have configured a feature in features.conf to MixMonitor the calls but i have configured too a dialplan to Put in Queue the calls using features.conf

The problem is that when i answer the incoming call and i use the feature \*77 to MixMonitor the call, Ok the call is recording… but if i Put the call in a Queue using my feature 74, it stop to MixMonitor the call and i want it continue MixMonitoring the call without stop.

How can i?

I have this in extensions.conf

[quote][macro-RecordExtensions]  
exten =\> s,1,Set(MONITOR\_FILENAME=Recording-call-by-${CALLERID(num)}-at-${STRFTIME(${EPOCH},%I:%M:%S-%p)})  
exten =\> s,2,Playback(beep) ; optional - hear when recording starts  
exten =\> s,3,Playback(beep) ; optional - hear when recording starts  
exten =\> s,4,MixMonitor(/dev/shm/${MONITOR\_FILENAME}.wav,b)  
exten =\> s,5,Set(AUDIOHOOK\_INHERIT(MixMonitor)=yes)

[macro-InQueue]  
exten=\>s,1,Answer()  
exten=\>s,2,Set(AUDIOHOOK\_INHERIT(MixMonitor)=yes)  
exten=\>s,3,Set(TIMEOUT(absolute)=0)  
exten=\>s,4,Set(TIMEOUT(digit)=2)  
exten=\>s,5,DISA(no-password,macro-InQueue)  
exten=\>\_XXX,1,ChannelRedirect(${BRIDGEPEER},InQueue-part1,${EXTEN},1)

[InQueue-part1]  
exten=\>\_XXX,1,Set(QUEUE\_PRIO=100)  
exten=\>\_XXX,2,Queue(lista${EXTEN},wWxX,1)  
exten=\>\_XXX,3,Queue(lista${EXTEN},wWxX,5)  
exten=\>\_XXX,4,Queue(lista${EXTEN},wWxX,5)  
exten=\>\_XXX,5,Queue(lista${EXTEN},wWxX,5)  
exten=\>\_XXX,6,Queue(lista${EXTEN},wWxX,5)  
exten=\>\_XXX,7,Queue(lista${EXTEN},wWxX,5)  
exten=\>\_XXX,8,Queue(lista${EXTEN},wWxX,5)  
exten=\>\_XXX,9,Queue(lista${EXTEN},wWxX)  
exten=\>\_XXX,10,Congestion(2)[/quote]

in features i have configured this:

[quote]RecExt=\>\*78,callee,Macro,RecordExtensions  
ParkExt=\>74,callee,Macro,InQueue[/quote]

Everything is working fine, but when i use the feature 74 it stop to MixMonitor

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [September 13, 2011, 2:58pm UTC](https://community.asterisk.org/t/problems-with-features-and-audiohook-inherit-mixmonitor/36659/2 "2011-09-13T14:58:30Z")

</div>

Which version of Asterisk are you using? Macro is deprecated in 1.6 upwards. I don’t think that Macro is supported in this context in any version, although it might possibly work to a limited extent. E.g. 1.4 branch:

[quote]; IMPORTANT NOTE: The applicationmap is not intended to be used for all Asterisk  
; applications. When applications are used in extensions.conf, they are executed  
; by the PBX core. In this case, these applications are executed outside of the  
; PBX core, so it does _not_ make sense to use any application which has any  
; concept of dialplan flow. Examples of this would be things like Macro, Goto,  
; Background, WaitExten, and many more.[/quote]

1.6.2 and 1.8 branch and trunk: the same.

---

<div class="post-metadata">

**Author:** ![gnu](https://avatars.discourse-cdn.com/v4/letter/g/71e660/32.png) [@gnu](https://community.asterisk.org/u/gnu)\
**Post date:** [September 13, 2011, 3:10pm UTC](https://community.asterisk.org/t/problems-with-features-and-audiohook-inherit-mixmonitor/36659/3 "2011-09-13T15:10:44Z")

</div>

I am using Asterisk 1.8.4.2… but is working fine, the only problem is that when i execute another feature, ins this case, code 74 to put the call in a queue, the MixMonitor stop to record… What can i do?

---

<div class="post-metadata">

**Author:** ![navaismo](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/navaismo/32/2481_2.png) [@navaismo](https://community.asterisk.org/u/navaismo)\
**Post date:** [September 13, 2011, 3:32pm UTC](https://community.asterisk.org/t/problems-with-features-and-audiohook-inherit-mixmonitor/36659/4 "2011-09-13T15:32:59Z")

</div>

If you define the mixmonitor app in the queue definition, the queue overwrite your audio because the queue use the ID as default, try with Set(MONITOR\_FILENAME=yourname) before enter the queue.

---

<div class="post-metadata">

**Author:** ![gnu](https://avatars.discourse-cdn.com/v4/letter/g/71e660/32.png) [@gnu](https://community.asterisk.org/u/gnu)\
**Post date:** [September 14, 2011, 11:59am UTC](https://community.asterisk.org/t/problems-with-features-and-audiohook-inherit-mixmonitor/36659/5 "2011-09-14T11:59:53Z")

</div>

It keep stop record…

Please, how can i fix that and get this Work?
