Fix skinny encall button to not blind xfer.
authorDamien Wedhorn <voip@facts.com.au>
Wed, 27 Mar 2013 07:24:37 +0000 (07:24 +0000)
committerDamien Wedhorn <voip@facts.com.au>
Wed, 27 Mar 2013 07:24:37 +0000 (07:24 +0000)
The softbutton endcall should not turn a transfer into a blind transfer but
hangup the exten being called and leave the original call on hold. This does
that.

(closes issue ASTERISK-21321)
Reported by: wedhorn
Tested by: snuffy, myself
Patches:
    skinny-xferendcall01.diff uploaded by wedhorn (license 5019)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@383948 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_skinny.c

index 6db4bce..17790f6 100644 (file)
@@ -7114,13 +7114,6 @@ static int handle_soft_key_event_message(struct skinny_req *req, struct skinnyse
                SKINNY_DEBUG(DEBUG_PACKET, 3, "Received SOFTKEY_ENDCALL from %s, inst %d, callref %d\n",
                        d->name, instance, callreference);
 
-               if (l->transfer && sub && sub->xferor && ast_channel_state(sub->owner) >= AST_STATE_RING) {
-                       /* We're allowed to transfer, we have two active calls and
-                           we made at least one of the calls.  Let's try and transfer */
-                       handle_transfer_button(sub);
-                       return 0;
-               }
-
                ast_devstate_changed(AST_DEVICE_NOT_INUSE, AST_DEVSTATE_CACHABLE, "Skinny/%s", l->name);
 
                if (sub) {