[asterisk-bugs] [Asterisk 0011161]: New application app_pickupextn.c

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Nov 26 06:37:13 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11161 
====================================================================== 
Reported By:                eurodrew555
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11161
Category:                   Applications/NewFeature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     feedback
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 88116 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-05-2007 06:56 CST
Last Modified:              11-26-2007 06:37 CST
====================================================================== 
Summary:                    New application app_pickupextn.c
Description: 

We attempted to implement call pickup using the cmd
Pickup(extension[@context]) but found it was limited to only being able to
pickup a channel that is in the DIAL state.

This application app_pickupextn.c extends the Asterisk pickup application
to be able to do the following:

- will pickup any ringing CHANNEL (whether it be SIP, IAX, or ZAP).
- will pickup any ringing CHANNEL which can be from a DIAL or QUEUE 

I believe the command Pickup() is restricted in that it only picks up from
a DIAL.

Examples of using the command:

PickupExtn(SIP/usera)
PickupExtn(SIP/usera&SIP/userb)
PickupExtn(SIP/usera&SIP/userb&SIP/userc)

You could also pickup 

SIP/usera&SIP/userb&SIP/userc 

by simply

PickupExtn(SIP/user)

which is useful but represents a possibly issue at the same time (see
additional information).

====================================================================== 

---------------------------------------------------------------------- 
 eurodrew555 - 11-26-07 06:37  
---------------------------------------------------------------------- 
New code has been uploaded.

Command is now named PickupChan and is used in the following format:

PickupChan(Technology/extension)

For example if we have a SIP user called 2821, we would use

PickupChan(SIP/2821)

And this will pickup the first ringing channel for that user regardless of
whether the call is from a QUEUE or DIAL.

Have made further modifications so that it matches on the exact channel,
rather than a part of the name, as this could of potentially picked up the
wrong channel.

Have also followed Corydon76's note to change the variable names - hope
this clears up any confusion! 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-26-07 06:37  eurodrew555    Note Added: 0074306                          
======================================================================




More information about the asterisk-bugs mailing list