satish patel
2011-Mar-11 20:35 UTC
[asterisk-users] Asterisk 1.8 AGI error ast_carefulwrite: write() returned error
Hey Guys, We upgrade asterisk from 1.2.x to 1.8.2.3 and my one of agi script doesn't working We have allpage.agi script for paging system on all polycom 501 but after upgrade it broke. Any idea what is this error ? extension.conf exten => 7770,1,agi(allpage.agi) exten => 7770,2,meetme(7770,dq) exten => 7770,3,playback(beep) exten => 7770,4,hangup following is agi debug.... -- Executing [7770 at from-sip:1] AGI("SIP/7657-00000015", "allpage.agi") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/allpage.agi <SIP/7657-00000015>AGI Tx >> agi_request: allpage.agi <SIP/7657-00000015>AGI Tx >> agi_channel: SIP/7657-00000015 <SIP/7657-00000015>AGI Tx >> agi_language: en <SIP/7657-00000015>AGI Tx >> agi_type: SIP <SIP/7657-00000015>AGI Tx >> agi_uniqueid: 1299876046.29 <SIP/7657-00000015>AGI Tx >> agi_version: 1.8.2.3 <SIP/7657-00000015>AGI Tx >> agi_callerid: 7657 <SIP/7657-00000015>AGI Tx >> agi_calleridname: iPhone <SIP/7657-00000015>AGI Tx >> agi_callingpres: 0 <SIP/7657-00000015>AGI Tx >> agi_callingani2: 0 <SIP/7657-00000015>AGI Tx >> agi_callington: 0 <SIP/7657-00000015>AGI Tx >> agi_callingtns: 0 <SIP/7657-00000015>AGI Tx >> agi_dnid: 7770 <SIP/7657-00000015>AGI Tx >> agi_rdnis: unknown <SIP/7657-00000015>AGI Tx >> agi_context: from-sip <SIP/7657-00000015>AGI Tx >> agi_extension: 7770 <SIP/7657-00000015>AGI Tx >> agi_priority: 1 <SIP/7657-00000015>AGI Tx >> agi_enhanced: 0.0 <SIP/7657-00000015>AGI Tx >> agi_accountcode: <SIP/7657-00000015>AGI Tx >> agi_threadid: -1345438864 <SIP/7657-00000015>AGI Tx >> -- Remote UNIX connection -- Remote UNIX connection disconnected -- Remote UNIX connection -- Remote UNIX connection disconnected <SIP/7657-00000015>AGI Rx << VERBOSE "Found extension (None) in use." 1 allpage.agi: Found extension (None) in use. <SIP/7657-00000015>AGI Tx >> 200 result=1 <SIP/7657-00000015>AGI Rx << VERBOSE "Found extension 7657 in use." 1 allpage.agi: Found extension 7657 in use. <SIP/7657-00000015>AGI Tx >> 200 result=1 [Mar 11 15:40:46] ERROR[3140]: utils.c:1130 ast_carefulwrite: write() returned error: Broken pipe <SIP/7657-00000015>AGI Rx << VERBOSE "Adding extension 7527 to call list" 1 allpage.agi: Adding extension 7527 to call list <SIP/7657-00000015>AGI Tx >> 200 result=1 [Mar 11 15:40:46] ERROR[3140]: utils.c:1130 ast_carefulwrite: write() returned error: Broken pipe <SIP/7657-00000015>AGI Rx << VERBOSE "Adding extension 7623 to call list" 1 allpage.agi: Adding extension 7623 to call list <SIP/7657-00000015>AGI Tx >> 200 result=1 [Mar 11 15:40:46] ERROR[3140]: utils.c:1130 ast_carefulwrite: write() returned error: Broken pipe <SIP/7657-00000015>AGI Rx << VERBOSE "NOT Adding extension 7657 to call list" 2 == allpage.agi: NOT Adding extension 7657 to call list <SIP/7657-00000015>AGI Tx >> 200 result=1 [Mar 11 15:40:46] ERROR[3140]: utils.c:1130 ast_carefulwrite: write() returned error: Broken pipe <SIP/7657-00000015>AGI Rx << VERBOSE "Doing 7527" 0 allpage.agi: Doing 7527 <SIP/7657-00000015>AGI Tx >> 200 result=1 [Mar 11 15:40:46] ERROR[3140]: utils.c:1130 ast_carefulwrite: write() returned error: Broken pipe -- <SIP/7657-00000015>AGI Script allpage.agi completed, returning 0 -- Executing [7770 at from-sip:2] MeetMe("SIP/7657-00000015", "7770,dq") in new stack -- Created MeetMe conference 1023 for conference '7770' -- Hungup 'DAHDI/pseudo-729745277' == Spawn extension (from-sip, 7770, 2) exited non-zero on 'SIP/7657-00000015' -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110311/9c70b7b5/attachment.htm>
Steve Edwards
2011-Mar-11 21:58 UTC
[asterisk-users] Asterisk 1.8 AGI error ast_carefulwrite: write() returned error
On Fri, 11 Mar 2011, satish patel wrote:> We upgrade asterisk from 1.2.x to 1.8.2.3 and my one of agi script > doesn't working We have allpage.agi script for paging system on all > polycom 501 but after upgrade it broke. Any idea what is this error ?> [Mar 11 15:40:46] ERROR[3140]: utils.c:1130 ast_carefulwrite: write() > returned error: Broken pipeWithout source code, I'd guess you are violation the AGI protocol. What language are you using? which AGI library are you using? Can you reduce your source code to a simple application that reliably reproduces the error. Can you post the source to the simplified application? -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
Apparently Analagous Threads
- [1.4.39.1/AGI] ast_carefulwrite: write() returned error: Broken pipe
- after 1.4.26 upgrade: "ast_carefulwrite: write() returned error: Broken pipe"
- Newbie: Mac OS X - Asterisk Gui 2.0 (svn) loops at " Verifying Dialplan Contexts needed for GUI"
- Asterisk 1.8 paging with ploycom
- allpage issu on asterisk 1.8.3.x