Asterisk 11 Originate Errors

Home » Asterisk Users » Asterisk 11 Originate Errors
Asterisk Users 1 Comment

Hi, I’m getting errors while originating a call through AMI.
[Dec 12 21:18:35] ERROR[8661]: utils.c:1236 ast_careful_fwrite: fwrite() returned error: Broken pipe
[Dec 12 21:18:35] ERROR[8661]: utils.c:1236 ast_careful_fwrite: fwrite() returned error: Broken pipe
[Dec 12 21:18:35] ERROR[8661]: utils.c:1236 ast_careful_fwrite: fwrite() returned error: Broken pipe Asterisk version 11.0.1
OS:

One thought on - Asterisk 11 Originate Errors

  • I’ve observed the same behavior. This is what happens when you close the socket before logoff is completed. You need to wait until the logoff action is completed before closing the socket (your fclose() call). Alternately, use a proxy or a daemon that will sit between your script and the AMI and keep the socket open.