[Home]

Summary:ASTERISK-13759: AUDIOHOOK_INHERIT
Reporter:Henry Huang (bbhenry)Labels:
Date Opened:2009-03-16 19:39:28Date Closed:2011-06-07 14:08:06
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Functions/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Hi, I recently found out a new dialplan function called AUDIOHOOK_INHERIT
And I tried to use it to fix the MixMonitor not recording after attended transfer. But once I implemented this function, whenever I do an attended transfer it kills the channel.

The example goes like this. I called from my cell phone to the company DID, picked up by IVR menu, I enter 4102 for extension 4102. Now 4102 picks up fine. And 4102 tries to do an attended transfer to 4105. While it's doing the attended transfer , I can hear the music on hold from cell phone. Once extension 4102 hit transfer to 4105, there is no more music on hold nor ring tones if 4105 is not picked up. Let's say 4105 is picked up , the call would be hang up by the system, but the 4105 extension will still show on the phone screen that 4102 is trying to ring 4105 with silence until I manually hit the hangup function button on the phone to hang up.

I am using Asterisk 1.4.22.2 because I experience some issue with 1.4.23
Comments:By: Joshua C. Colp (jcolp) 2009-04-20 09:14:36

I've just tried to reproduce this using the scenario you've given on both version 1.4.23 and the latest 1.4 in SVN. Both work fine as expected. I would therefore ask for the complete console output to go along with this.

By: Henry Huang (bbhenry) 2009-04-21 19:52:54

Did you use the Asterisk transfer function or did you use the phone's transfer function? In my scenario, I was using Polycom phone's transfer function

By: Joshua C. Colp (jcolp) 2009-04-22 08:39:44

I used my Polycom's transfer button.

By: Henry Huang (bbhenry) 2009-04-24 12:54:34

Does it make a difference if I use the function inside a macro? Here is what I have in the recording Macro: (you can ignore all the variables, it's for cdr puposes)

macro monitor( io, ctx, line, fromcustsvc, dnr ) {
   Set(CDR(userfield)="${io}|${ctx}|${line}|${fromcustsvc}");
   NoOp(${fromcustsvc});
   NoOp(${dnr});

   if ( ${ISNULL(${dnr})} ) {
       MixMonitor(${UNIQUEID}.wav|b|/usr/local/bin/savemeta.sh ${UNIQUEID} '${io}|${ctx}|${line}|${fromcustsvc}');
       Set(AUDIOHOOK_INHERIT(MixMonitor)=yes);
};


Can the audiohook_inherit function be carry back from macro?

By: Joshua C. Colp (jcolp) 2009-04-27 08:31:32

I just tested using a Macro and it worked fine. What I can't do, though, is scenario up exactly what you are doing without seeing your dialplan logic and console output. You may be doing things differently then I expect. Can you please provide it?

By: Joshua C. Colp (jcolp) 2009-05-12 09:48:41

bbhenry: Any update on this?

By: Joshua C. Colp (jcolp) 2009-05-26 08:23:52

Suspended due to lack of feedback. If this is an issue and you can provide what I need feel free to reopen and add it.