Summary:ASTERISK-03961: [patch] goto_on_transfer for blind #transfer
Reporter:Anthony Minessale (anthm)Labels:
Date Opened:2005-04-20 15:07:36Date Closed:2008-01-15 15:32:04.000-0600
Versions:Frequency of
Environment:Attachments:( 0) goto_on_transfer.diff.txt
( 1) README.variables.diff.txt
Description:This patch looks for the variable GOTO_ON_TRANSFER in a # transferring channel and sends the transferrer to that context|exten|pri (you can use ^ to represent | to avoid escapes)

The patch also fixes a bug in pbx.c:ast_parseable_goto where non-pbx chans are not handled correctly

exten => 3001,1,SetVar(GOTO_ON_TRANSFER=woohoo^s^1)
exten => 3001,2,Dial(SIP/|60|Tt)

complete a # transfer and you will end up at woohoo,s,1


Disclaimer on File
Comments:By: Matt O'Gorman (mogorman) 2005-04-20 15:17:49


By: Kevin P. Fleming (kpfleming) 2005-04-21 00:24:03

The comment directly above your code change in pbx.c says "This channel is currently in the PBX". Should that comment be removed, given that it appears to be wrong?

The documentation update shouldn't refer to "# blind transfer", as the admin may have assigned a different key to the blind transfer functionality.

Do you intend for this to apply to attended transfers as well? If not, we'll need to change the variable name, because right now it would be logical to assume it applies to all transfers...

By: Anthony Minessale (anthm) 2005-04-21 04:23:14

attended transfer by nature is what it is because you hang up so it's not possible to transfer the transferer

be my guest to make any changes you see fit, I did this patch to be nice for matt and I have no furthur plans to edit it.

By: Kevin P. Fleming (kpfleming) 2005-04-21 11:29:22

You are correct, an attended transfer can't support this functionality.

I'll take this ball and run with it, thanks.

By: Kevin P. Fleming (kpfleming) 2005-04-21 22:05:01

Committed to CVS, with modifications. Thanks!

By: Russell Bryant (russell) 2005-05-11 21:14:13

not applicable to 1.0

By: Digium Subversion (svnbot) 2008-01-15 15:32:04.000-0600

Repository: asterisk
Revision: 5495

U   trunk/doc/README.variables
U   trunk/pbx.c
U   trunk/res/res_features.c

r5495 | kpfleming | 2008-01-15 15:32:03 -0600 (Tue, 15 Jan 2008) | 2 lines

add ability to send transferring party to a dialplan target after they blind transfer another party (bug ASTERISK-3961, with mods)