All pastes #51114 Raw Edit

Unnamed

public text v1 · immutable
#51114 ·published 2006-04-25 05:37 UTC
rendered paste body
Index: channels/chan_sip.c
===================================================================
--- channels/chan_sip.c (revision 177)
+++ channels/chan_sip.c (working copy)
@@ -2976,6 +2976,11 @@
                return &null_frame;
        if (p->owner) {
                /* We already hold the channel lock */
+               if (!f) {
+                       /* We have no RTP allocated for this channel */
+                       return &null_frame;
+               }
+
                if (f->frametype == AST_FRAME_VOICE) {
                        if (f->subclass != p->owner->nativeformats) {
                                ast_log(LOG_DEBUG, "Oooh, format changed to %d\n", f->subclass);