[Asterisk-Users] Floating point exception help

Manfred Petz pm at deuromedia.at
Thu Aug 19 04:08:29 MST 2004


On Thu, 19 Aug 2004, Gary Pigott wrote:

| I'm running a fresh install of * (CVS-HEAD-08/13/04 with bristuff from
| bri-stuff.0.1.0-RC4) on a Debian Sarge box...
| I've got a generic HFC-S BRI ISDN card using i4l for inbound & outbound calls
| (I gave up on getting zaphfc working).
| 
| Asterisk is crashing out with a floating point exception a couple of minutes
| into a SIP > PSTN call. SIP > SIP calls seem fine. Any idea where to start
| with this issue?
| 
| Gary
| 

Hi,

I had the same problem. For me, the patch below works. It may not be the 
correct way to solve this, though.

Let me know, if it works also for you. 

Manfred




--- ../asterisk-v-1_0_RC2/dsp.c 2004-07-24 23:06:54.000000000 +0200
+++ dsp.c       2004-08-18 10:11:26.017124954 +0200
@@ -1229,6 +1229,13 @@
        int x;
        int res = 0;

+       /*PM BEGIN*/
+       if (len==0) {
+               ast_log(LOG_WARNING, "zero length packet\n");
+               return 0;
+       }
+       /*PM END*/
+
        accum = 0;
        for (x=0;x<len; x++)
                accum += abs(s[x]);





More information about the asterisk-users mailing list