[asterisk-bugs] [Asterisk 0014241]: [patch] h exten getting run at the wrong time

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jan 23 14:56:50 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14241 
====================================================================== 
Reported By:                jmls
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   14241
Category:                   Resources/res_features
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     ready for testing
Target Version:             1.4.24
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 168602 
Request Review:              
====================================================================== 
Date Submitted:             2009-01-14 12:34 CST
Last Modified:              2009-01-23 14:56 CST
====================================================================== 
Summary:                    [patch] h exten getting run at the wrong time
Description: 
in 1.4 svn, If A calls B, and A is redirected via AMI to another extension
(meetme room for example), the h extension is being run on A before it is
redirected.

The h extension should be run on A when A hangs up.
====================================================================== 

---------------------------------------------------------------------- 
 (0098626) SomeJ (reporter) - 2009-01-23 14:56
 http://bugs.digium.com/view.php?id=14241#c98626 
---------------------------------------------------------------------- 
Would this patch also fix an issue where the h exten is run when called
party picks up after being called through the local channel? (Asterisk
version 1.4.22-rc5)

Example: party A calls party B. (both parties have local extensions on the
box)
Due to needing a separate copy of the CDR for each party as well as each
channel needing its own set of variables, the callee must be run through
the local channel before the dial macro can be run. (hopefully that makes
since.)

What I am seeing is that when A calls B and when B picks up, the h exten
for B is run but the call remains in tact.  When B or A hangs up, the h
exten for B is not run, and no CDR for B is every generated.  Everything
functions properly for A.  Also I have noticed that for these local to
local calls, B is not receiving its accountID from the sip config.

These are all sip to sip calls.

pseudo of the dialplan:
local caller makes the call
is this a local to local call (local to local meaning both extensions are
on the box)
no: dial(sip/trunk to external provider/did)
yes: dial(local/did) -> now call looks like an “inbound call” and is
treated like all calls that originate off network and are run through the
dial macro to process things before calling the actual exten.

If I need to submit a new bug for this let me know.
I have tried calling ForkCDR() before executing the dial(local/did)
command and still no CDR from the person being called.

Just wandering if this patch deals with this any. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-23 14:56 SomeJ          Note Added: 0098626                          
======================================================================




More information about the asterisk-bugs mailing list