FOP2 and FreePBX: How exactly works chanspy
Hi there.
Im building a system for an small callcenter and everything works ok except for the chanspy.
I log into FOP2 with the username and password with permissions to use it and i can see all the 10 lines we have.
When someone got connected or dial a number i can see eveything, even i can hang up the calls from the panels and so on.
But when i click on the channel i want to "spy" and click on the spy button, doesnt work.
I dont know if i should play on my computer or i should be logged on my extension (the same i used to log in into fop2) and there i will listen to my "spied channel"
If that helps, when i run the server on debug mode i got that:
FreePBX 2.11.0.1, Asterisk 11.3.0, fop2
thanks!!
Im building a system for an small callcenter and everything works ok except for the chanspy.
I log into FOP2 with the username and password with permissions to use it and i can see all the 10 lines we have.
When someone got connected or dial a number i can see eveything, even i can hang up the calls from the panels and so on.
But when i click on the channel i want to "spy" and click on the spy button, doesnt work.
I dont know if i should play on my computer or i should be logged on my extension (the same i used to log in into fop2) and there i will listen to my "spied channel"
If that helps, when i run the server on debug mode i got that:
127.0.0.1 -> Action: Originate
127.0.0.1 -> Channel: SIP/110
127.0.0.1 -> CallerID: 110
127.0.0.1 -> Application: ChanSpy
127.0.0.1 -> Data: SIP/109,bq
127.0.0.1 -> ActionID: fop2spy!SIP/109
127.0.0.1 -> Async: True
127.0.0.1 <- Response: Success
127.0.0.1 <- ActionID: fop2spy!SIP/109
127.0.0.1 <- Message: Originate successfully queued
127.0.0.1 <- Server: 0
Response: Success
ActionID: fop2spy!SIP/109
Message: Originate successfully queued
Server: 0
127.0.0.1 <- Event: OriginateResponse
127.0.0.1 <- Privilege: call,all
127.0.0.1 <- ActionID: fop2spy!SIP/109
127.0.0.1 <- Response: Failure
127.0.0.1 <- Channel: SIP/110
127.0.0.1 <- Context:
127.0.0.1 <- Exten:
127.0.0.1 <- Reason: 0
127.0.0.1 <- Uniqueid: <null>
127.0.0.1 <- CallerIDNum: 110
127.0.0.1 <- CallerIDName: <unknown>
127.0.0.1 <- Server: 0
FreePBX 2.11.0.1, Asterisk 11.3.0, fop2
thanks!!
Comments
FOP2 is not a phone. The spy action launches chanspy originating a call to your phone (SIP/110) first. Your phone should ring, and when you pickup, you will be listening to the other party.
In the debug it shows that the origination to SIP/110 failed. Was your phone available/free at the time you initiated the spy action? If you are busy talking to someone, then it will fail unless you have call waiting enabled.
I cannot tell you the reason for that failure, you might see some more information in the asterisk full log. But FOP2 did its job, it sent the correct command to asterisk.
Best regards,