From: Anthony Minessale Date: Thu, 17 Sep 2009 20:11:56 +0000 (+0000) Subject: try to fix mod_iax X-Git-Tag: v1.0.6~1858 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=119ee4e0ad4ccc15b783ee9eb5dfe8e651a7bc0b;p=thirdparty%2Ffreeswitch.git try to fix mod_iax git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14908 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_iax/iax2-parser.c b/src/mod/endpoints/mod_iax/iax2-parser.c index 6c0e88c141..80a9d80af0 100644 --- a/src/mod/endpoints/mod_iax/iax2-parser.c +++ b/src/mod/endpoints/mod_iax/iax2-parser.c @@ -422,6 +422,15 @@ void iax_showframe(struct iax_frame *f, struct ast_iax2_full_hdr *fhi, int rx, s snprintf(subclass2, (int) sizeof(subclass2), "%d", fh->csub); subclass = subclass2; } + + if (!subclass) { + subclass = ""; + } + + if (!class) { + class = ""; + } + snprintf(tmp, (int) sizeof(tmp), "%s-Frame Retry[%s] -- OSeqno: %3.3d ISeqno: %3.3d Type: %s Subclass: %s\n", (rx ? "Rx" : "Tx"), retries, fh->oseqno, fh->iseqno, class, subclass);