Problems with features and AUDIOHOOK_INHERIT(MixMonitor)


#1

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


#2

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.


#3

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?


#4

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.


#5

It keep stop record…

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