Asterisk cmd ZapBarge
Synopsis
Listen to a Zap channel callDescription
ZapBarge(channel)Lets you listens to the conversation on a specified Zap channel, or prompts if one is not specified. You can hear them, but they can't hear you. No indication is given to the other parties that their call is being listened to.
Multiple people can all use ZapBarge to listen in on the same channel.
Return Code
Returns -1 when caller user hangs up and is independent of the state of the channel being monitored.Example
; barge monitoring extensionexten => 8159,1,ZapBarge
exten => 8159,2,Hangup
If you dial 8159 on a phone, you get asked which line you want to listen in on, for Zap/1-1 you would press 1#, for Zap/25-1 you would press 25#.
See also
- Recording Calls with Asterisk
- Asterisk cmd ZapScan: Scan Zap channels to monitor calls
- Asterisk cmd ChanSpy: Spy on any (!) bridged call
Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ

Comments
333Re: ZapBarge Issue
ZapBarge "listens" on a channel no matter if there is an active call on it or not.
I had to change the source code of asterisk to make it return when there is no ongoing call on channel.
333ZapBarge Issue
333If you just wanted to pick up a PSTN line
exten => *1,1,Dial(Zap/1/)
I.E., just dial as normal with no phone number.
333Multiple ZapBarge's