Asterisk cmd BristuffPickUpChan
Created by: JustRumours,Last modification on Sat 24 of Nov, 2007 [01:26 UTC] by tzafrir
PickUpChan
Synopsis
Channel independent call pickup.Description
PickupChan(Technology/resource[&Technology2/resource2...])
Tries to pickup the first ringing channel in the parameter list.
Related applications
- PickUp: As included with standard Asterisk
- Bristuff PickUp: Mostly channel independent; part of BRIstuff patch to Asterisk.
- PickDown
- Steal
See also
Go back to Asterisk - documentation of application commands

Comments
333[Solved] Error in PickUpChan
Lines 137-141:
======================================
/* strip the subchannel tag */
endptr = strrchr(evalchan, '/');
if(endptr) {
*endptr = '\0';
}
======================================
These lines transform a channel from ie. "SIP/40" to "SIP", thus making ALL ringing channels with the SIP protocol match the channels in the list. Not quite what's desired in our case.
IDEO SYSTEMS
innovative communication solutions
www.ideo-systeme.de
333Error in PickUpChan
If PickUpChan is used while two or more Channels are ringing, it always picks this channels which has last began to ring:
-- SIP/20-ca4a is ringing
-- SIP/40-4e9f is ringing
-- Executing PickupChan("SIP/10-a9f8", "SIP/20") in new stack
Nice channel, I'll take it: SIP
-- Channel SIP/10-a9f8 picked up ringing channel SIP/40-4e9f