[Home]

Summary:ASTERISK-08011: chan_sip crashes while trying to find video codecs
Reporter:Matt Riddell (zx81)Labels:
Date Opened:2006-10-25 18:56:14Date Closed:2006-10-26 12:45:18
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Video
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) debug.txt
Description:Hi, we've got a problem with latest 1.4 (SVN branch) crashing whenever we make an outgoing call.

The backtrace pointed to the following code (which we're not using because we don't use video).  After commenting out this section we were able to make calls again.  If you need the full bt let me know.  Sorry I can't be of more help with tracking down the cause, I tried videosupport=yes/no, disallow=all, allow=ulaw etc. IAX2 calls worked, SIP not.  Same to three different providers.

We got a warning before the crash as well.

So here we go, warning:

[Oct 25 19:49:35] WARNING[16773]: translate.c:86 powerof: No bits set? 0

bt all:

#0  0x0000000000497a86 in ast_translate_available_formats (dest=Variable "dest" is not available.
) at translate.c:856
856                     if (!tr_matrix[src_video][powerof(x)].step)

patch we used (just a temp workaround):

Index: main/translate.c
===================================================================
--- main/translate.c    (revision 46286)
+++ main/translate.c    (working copy)
@@ -852,11 +852,11 @@
                       continue;

               /* if we don't have a translation path from the src
-                  to this format, remove it from the result */
+                  to this format, remove it from the result
               if (!tr_matrix[src_video][powerof(x)].step)
-                       res &= ~x;
+                       res &= ~x;*/
       }
-
+
Comments:By: Olle Johansson (oej) 2006-10-26 01:24:30

ZX81: You should know the bug report guidelines... :-)

Where's the SIP debug so I can see what's going on? And the backtrace?

By: Ronald Chan (loloski) 2006-10-26 11:23:57

oej: although i'm not experiencing a crash and my outgoing calls seems to be fine. i will attach here my sip debug with set verbose to 9 this might help you to figure out what's really happening i'm running on SVN-branch-1.4-r46165M


--Ronald

By: Russell Bryant (russell) 2006-10-26 12:45:18

This has been fixed in 1.4 and the trunk in revisions 46329 and 46330.