Chanspy whisper mode cannot talk

dear sirs,

i am using asterisk 1.4.31rc1 on fc11 to implement a call center application. we’d like to allow supervisor to coach his agents via chanspy whisper.

however, the supervisor can only listen to the agent channel, but could not talk to it. Below messages were found in CLI.

-- SIP/8100-00000018 answered Local/8100@crm-9351,2
   > Channel Local/8100@crm-9351,1 was answered.
   > Launching ChanSpy(LOCAL/810185298082203|qbv(4)w) on Local/8100@crm-9351,1

[May 3 10:54:06] ERROR[10576]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
[May 3 10:54:06] WARNING[10585]: channel.c:1979 ast_waitfordigit_full: Unexpected control subclass ‘-1’
[May 3 10:54:06] ERROR[10576]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe

your advice is much appreciated.

Can you post your extension.conf context that calls the function please? Not sure if there is a solution, but it looks like this issue has come up before ( … 41710deb10).

dear sir,

here is the dial plan. in our case, both agents and customers are reached via the pstn crm_gateway. supervisor is using xlite on extension 8100.
;; supervisor extensions 8XXX
exten => _8XXX,1,NoOp(${EXTEN})
exten => _8XXX,n,Dial(SIP/${EXTEN})
exten => _8XXX,n,Hangup

;; agent reached by hk pstn
;; extension format
;; 8XXX = agent id
;; 852XXXXXXXX = agent pstn
exten => _8XXX852XXXXXXXX,1,NoOp(${EXTEN})
exten => _8XXX852XXXXXXXX,n,NoOp(${CALLERID(all)})
exten => _8XXX852XXXXXXXX,n,Dial(SIP/crm_gateway/${EXTEN:-11})
exten => _8XXX852XXXXXXXX,n,Hangup
;; customer reached by pstn
;; extension format
;; 00 || country || area || local
;; 0085290230806
;; 008615546752354
exten => _00Z.,1,NoOp(${EXTEN})
exten => _00Z.,n,NoOp(${CALLERID(all)})
exten => _00Z.,n,Dial(SIP/crm_gateway/${EXTEN:2})
exten => _00Z.,n,Hangup

it seems that i could not find google result on “ast_carefulwrite: write()” specific to chanspy whisper mode.

thanks for your advice.

I don’t see any line pointing to your chanspy function (


the chanspy is not invoked in dialplan. rather it is called via ami from php when supervisor clicks on a web button to spy his agent.


the chanspy without whisper works fine. however, when whisper mode is used, the error below is shown in cli.
ERROR[17071]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe