ExtenSpy tries to listen to the wrong extension?

I have Asterisk 1.4.22 and FreePBX 2.5.1. I made 3 applications for cll monitoring and whispering:

[custom-exten-spy]
exten => s,1,Playback(vm-extension)
exten => s,n,Read(EXTENSION)
exten => s,n,ExtenSpy(${EXTENSION}@from-internal,b)

[custom-exten-whisper]
exten => s,1,Playback(vm-extension)
exten => s,n,Read(EXTENSION)
exten => s,n,ExtenSpy(${EXTENSION}@from-internal,bw)

[custom-exten-silent-whisper]
exten => s,1,Playback(vm-extension)
exten => s,n,Read(EXTENSION)
exten => s,n,ExtenSpy(${EXTENSION}@from-internal,bW)

To test this I made a call from SIP extension 202 to SIP extension 201, and I tried listening and whispering through an FXS extension 208. I am trying to listen/whisper to 201, and this is what I get:

[Dec 11 11:15:53] VERBOSE[5424] logger.c:     -- Executing [s@custom-exten-silent-whisper:3] ExtenSpy("Zap/32-1", "201@from-internal|bW") in new stack
[Dec 11 11:15:53] VERBOSE[5424] logger.c:     -- <Zap/32-1> Playing 'beep' (language 'en')
[Dec 11 11:15:53] VERBOSE[5424] logger.c:     -- <Zap/32-1> Playing 'spy-sip' (language 'en')
[Dec 11 11:15:54] VERBOSE[5424] logger.c:     -- <Zap/32-1> Playing 'digits/2' (language 'en')
[Dec 11 11:15:55] VERBOSE[5424] logger.c:     -- <Zap/32-1> Playing 'digits/0' (language 'en')
[Dec 11 11:15:55] VERBOSE[5424] logger.c:     -- <Zap/32-1> Playing 'digits/2' (language 'en')
[Dec 11 11:15:56] VERBOSE[5424] logger.c:   == Spying on channel SIP/202-09f6edb0
[Dec 11 11:15:56] NOTICE[5424] app_chanspy.c: Attaching Zap/32-1 to SIP/202-09f6edb0
[Dec 11 11:15:56] NOTICE[5424] app_chanspy.c: Attaching Zap/32-1 to SIP/202-09f6edb0

As you can see, ExtenSpy executes with 201@from-internal, but it listens twice to 202. Listening works but whispering doesn’t. Another issue is if I try to spy on 202, I get nothing.

I also tried calling from 201 to 202 and got the same effect but with the other extension (listening twice to 201).

Is this my fault or a bug in the system?

I might be mistaken but I think ChanSpy and ExtenSpy only works when you have a PSTN (Phone Line) component. Since it uses the Zaptel / Dahdi resources to spy.

Dave

I didn’t see any mention of ExtenSpy supporting only zap channels, and it works when listening to SIP channels, so that is probably not the problem.

Sorry, I was thinking of ZapBarge / DahdiBarge. For those, you need a PSTN Component. (You can Barge on a Sip call if one of the legs is PSTN)