Backport de la aplicación pickup de asterisk 1.6. Este módulo incluye tres aplicaciones: PickUp2, PickDown2 y Steal2.
PickUp2(<prefijo_canal>[&<prefijo_canal>[&...]][,B])
Compares the list of prefixes with channels in RINGING state. If a match is found the channel is picked up and PICKUP_CHANNEL is set to the picked up channel name. If no matching channel is found PICKUP_CHANNEL is empty. If the B option is specified, the prefix list is compared to the channel name of the other endpoint of a bridged channel.
PickDown2(<channel_prefix>[&<channel_prefix>[&...]][,B])
Compares the list of prefixes with channels in RINGING state. If a match is found the channel is hung up and PICKDOWN_CHANNEL is set to the hung up channel name. If no matching channel is found PICKDOWN_CHANNEL is empty. If the B option is specified, the prefix list is compared to the channel name of the other endpoint of a bridged channel.
Steal2(<channel_prefix>[&<channel_prefix>[&...]][,B])
Compares the list of prefixes with channels in UP state. If a match is found the channel is stolen and STEAL_CHANNEL is set to the stolen channel name. If no matching channel is found STEAL_CHANNEL is empty. If the B option is specified, the prefix list is compared to the channel name of the other endpoint of a bridged channel.
Aplicacion(valor,valor)
Los valores posibles que devuleve la aplicación en la variables elegida son:
1 | PICKUP_CHANNEL PICKDOWN_CHANNEL STEAL_CHANNEL
-- Executing [*8106@horari-desactivacio:9] GotoIf("SIP/100-00004ba8", "1?perfil-3|*8106|1:perfil-1|*8106|1") in new stack
-- Goto (perfil-3,*8106,1)
-- Executing [*8106@perfil-3:1] PickUp2("SIP/100-00004ba8", "SIP/106") in new stack
> find_matching_channel: pattern='SIP/106' option='' state=5
> find_matching_channel: trying channel='SIP/100-00004ba8' state=4 pattern='SIP/106'
> find_matching_channel: trying channel='DAHDI/128-1' state=6 pattern='SIP/106'
> find_matching_channel: trying channel='SIP/227-00004ba6' state=6 pattern='SIP/106'
> find_matching_channel: trying channel='SIP/117-00004ba5' state=6 pattern='SIP/106'
> find_matching_channel: trying channel='DAHDI/2-1' state=6 pattern='SIP/106'