summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-11-26 14:50:51 +0000
committerJoshua Colp <jcolp@digium.com>2007-11-26 14:50:51 +0000
commit71c602a2d1f86c741459bcbaf4e3d0e79e0b62dd (patch)
tree3b75a45a67abb3fda768a68c9c4a5c584e723327 /channels/chan_sip.c
parent5303abd58d1fa10d076f53580f3924fd200039c1 (diff)
Instead of printing out one codec in sip show channels print out all of the native ones (this is for video).
(closes issue #11366) Reported by: ovi git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89573 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 873f59af0..607ab6b7d 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -11923,12 +11923,13 @@ static int show_channels_cb(void *__cur, void *__arg, int flags)
if (cur->subscribed == NONE && !arg->subscriptions) {
/* set if SIP transfer in progress */
const char *referstatus = cur->refer ? referstatus2str(cur->refer->status) : "";
+ char formatbuf[BUFSIZ/2];
ast_cli(arg->fd, FORMAT, ast_inet_ntoa(dst->sin_addr),
S_OR(cur->username, S_OR(cur->cid_num, "(None)")),
cur->callid,
- cur->ocseq, cur->icseq,
- ast_getformatname(cur->owner ? cur->owner->nativeformats : 0),
+ cur->ocseq, cur->icseq,
+ ast_getformatname_multiple(formatbuf, sizeof(formatbuf), cur->owner ? cur->owner->nativeformats : 0),
cli_yesno(ast_test_flag(&cur->flags[1], SIP_PAGE2_CALL_ONHOLD)),
cur->needdestroy ? "(d)" : "",
cur->lastmsg ,