aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_iax2.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-02-19 20:46:34 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-02-19 20:46:34 +0000
commit7509856d02bf3c46a0eb59ba8ff5a93e7f9cfd8d (patch)
treee2c1561548ae476b9f85386e476b28a4cf276615 /channels/chan_iax2.c
parent7c26e8b19dbc7dfb51e48573162b896b41a2105e (diff)
Provide more info when native bridge cannot occur (bug #3627)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5057 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_iax2.c')
-rwxr-xr-xchannels/chan_iax2.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index cc2cf79dc..7c53833a5 100755
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -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;