Provide more info when native bridge cannot occur (bug #3627)
authorMark Spencer <markster@digium.com>
Sat, 19 Feb 2005 20:46:34 +0000 (20:46 +0000)
committerMark Spencer <markster@digium.com>
Sat, 19 Feb 2005 20:46:34 +0000 (20:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5057 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index cc2cf79..7c53833 100755 (executable)
@@ -2765,8 +2765,13 @@ static int iax2_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags
                        return -2;
                }
                if (c0->nativeformats != c1->nativeformats) {
-                       if (option_verbose > 2)
-                               ast_verbose(VERBOSE_PREFIX_3 "Operating with different codecs, can't native bridge...\n");
+                       if (option_verbose > 2) {
+                               char buf0[255];
+                               char buf1[255];
+                               ast_getformatname_multiple(buf0, sizeof(buf0) -1, c0->nativeformats);
+                               ast_getformatname_multiple(buf1, sizeof(buf1) -1, c1->nativeformats);
+                               ast_verbose(VERBOSE_PREFIX_3 "Operating with different codecs %d[%s] %d[%s] , can't native bridge...\n", c0->nativeformats, buf0, c1->nativeformats, buf1);
+                       }
                        /* Remove from native mode */
                        lock_both(callno0, callno1);
                        iaxs[callno0]->bridgecallno = 0;