found reason for "write() returned error: Broken pipe"

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

found reason for "write() returned error: Broken pipe"

Postby marmu » Fri Aug 10, 2012 9:35 am

Hi Guys,

this is one of the errors I asked about a while ago. You told me I can ignore that. Now we found the reason for this error message. To sum it up:
You have to read the STDIN everytime after you send a command to asterisk via AGI. For example in /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi. This is "a diff" between our current version and the old one:
Code: Select all
diff /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi.2012.08.10 /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
293a294
>       $result = <STDIN>;
304a306
>       $result = <STDIN>;
1075c1077,1078
<                               checkresult($result);
---
>                       $result = <STDIN>;
>                       checkresult($result);
1077c1080,1081
<                               checkresult($result);
---
>                       $result = <STDIN>;
>                       checkresult($result);
1079c1083,1084
<                               checkresult($result);
---
>                       $result = <STDIN>;
>                       checkresult($result);
1158c1163,1164
<                               checkresult($result);
---
>                       $result = <STDIN>;
>                       checkresult($result);
1160c1166,1167
<                               checkresult($result);
---
>                       $result = <STDIN>;
>                       checkresult($result);
1162c1169,1170
<                               checkresult($result);


If you want to get rid of this, now you know how :)

Now I am again looking at the error "unexpected control subclass '-1'. I will create a new topic for that. All the best!

Cheers,
Marcus
Vicibox redux 3.1.10 64 bit (ViciBox_Redux.x86_64-3.1.10.iso)
Admin-GUI: VERSION: 2.4-310a - BUILD: 110506-1537 - with some adaptions :)
Asterisk 1.4.39.2-vici | Single Server | wanpipe_voicetime
2x Intel(R) Xeon(R) X5650 | 12 GB | SAS 15k RAID1
marmu
 
Posts: 190
Joined: Fri Mar 12, 2010 6:57 am

Re: found reason for "write() returned error: Broken pipe"

Postby williamconley » Sat Aug 11, 2012 12:29 pm

Wow. Cool. Post that in the Vicidial Issue Tracker for Matt! (and specify the version / build it is a diff against)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: found reason for "write() returned error: Broken pipe"

Postby mcargile » Mon Aug 13, 2012 7:23 am

Yep. Already caught that and have it worked into the asterisk 1.8 patches. Just waiting on Matt to get to a point he can assist me with getting the agent interface side of things worked out and plenty of testing done. Should fix it for 1.4 as well.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am


Return to Support

Who is online

Users browsing this forum: No registered users and 85 guests