[asterisk-bugs] [Asterisk 0011954]: [patch] When the caller hangs up - transfer the called party to the specified context and extension provided by this option.

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Feb 22 10:31:21 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11954 
====================================================================== 
Reported By:                johan
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11954
Category:                   Applications/app_dial
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 102933 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             02-08-2008 02:07 CST
Last Modified:              02-22-2008 10:31 CST
====================================================================== 
Summary:                    [patch] When the caller hangs up - transfer the
called party to the specified context and extension provided by this option.
Description: 
Basically I don't want to hang up on the called party, just because the
caller slammed the phone. I would like to be able to continue dialplan
execution of the called party.

Right now we have the flag 'g': Proceed with dialplan execution at the
current extension if the destination channel hangs up.

This patch add the flag 'F(context^exten^pri)': When the caller hangs up -
transfer the called party to the specified context and extension and
continue execution.
====================================================================== 

---------------------------------------------------------------------- 
 johan - 02-22-08 10:31  
---------------------------------------------------------------------- 
It seemed like the right thing to do... I couldn't understand why these
sections are defined differently. The first 30 options is in a enum, and
the following 4 are declared by a #define. I asked about this in
asterisk-dev but got no response.

The code in question is:

  234 enum {
  235   OPT_ANNOUNCE =          (1 << 0),
  236   OPT_RESETCDR =          (1 << 1),
  237   OPT_DTMF_EXIT =         (1 << 2),
  238   OPT_SENDDTMF =          (1 << 3),
  239   OPT_FORCECLID =         (1 << 4),
  240   OPT_GO_ON =             (1 << 5),
  241   OPT_CALLEE_HANGUP =     (1 << 6),
  242   OPT_CALLER_HANGUP =     (1 << 7),
  243   OPT_DURATION_LIMIT =    (1 << 9),
  244   OPT_MUSICBACK =         (1 << 10),
  245   OPT_CALLEE_MACRO =      (1 << 11),
  246   OPT_SCREEN_NOINTRO =    (1 << 12),
  247   OPT_SCREEN_NOCLID =     (1 << 13),
  248   OPT_ORIGINAL_CLID =     (1 << 14),
  249   OPT_SCREENING =         (1 << 15),
  250   OPT_PRIVACY =           (1 << 16),
  251   OPT_RINGBACK =          (1 << 17),
  252   OPT_DURATION_STOP =     (1 << 18),
  253   OPT_CALLEE_TRANSFER =   (1 << 19),
  254   OPT_CALLER_TRANSFER =   (1 << 20),
  255   OPT_CALLEE_MONITOR =    (1 << 21),
  256   OPT_CALLER_MONITOR =    (1 << 22),
  257   OPT_GOTO =              (1 << 23),
  258   OPT_OPERMODE =          (1 << 24),
  259   OPT_CALLEE_PARK =       (1 << 25),
  260   OPT_CALLER_PARK =       (1 << 26),
  261   OPT_IGNORE_FORWARDING = (1 << 27),
  262   OPT_CALLEE_GOSUB =      (1 << 28),
  263   OPT_CALLEE_MIXMONITOR = (1 << 29),
  264   OPT_CALLER_MIXMONITOR = (1 << 30),
  265 };
  266 
  267 #define DIAL_STILLGOING      (1 << 31)
  268 #define DIAL_NOFORWARDHTML   ((uint64_t)1 << 32) /* flags are now 64
bits, so keep it up! */
  269 #define OPT_CANCEL_ELSEWHERE ((uint64_t)1 << 33)
  270 #define OPT_PEER_H           ((uint64_t)1 << 34)

Should this go to the end?
I will update the patch, you can delete the first one anyway,
app_dial.patch 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-22-08 10:31  johan          Note Added: 0082779                          
======================================================================




More information about the asterisk-bugs mailing list