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?