aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-10 16:13:43 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-10 16:13:43 +0000
commit9ffbff9259498d033137354cec9108bf272ad741 (patch)
tree3019199a846152fc9cade5f0f9dab8ab669ff14c /channels/chan_sip.c
parent63a09fd7b0050ece8b4e6efdfbd53d45668a85f2 (diff)
It is possible for nativeformats to contain more then one codec, so print out multiple ones.
(closes issue #11366) Reported by: ovi git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@92200 f38db490-d61c-443f-a65b-d21fe96a405b
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 7bcf20d5a..78c2e8acc 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -10694,11 +10694,12 @@ static int __sip_show_channels(int fd, int argc, char *argv[], int subscriptions
referstatus = referstatus2str(cur->refer->status);
}
if (cur->subscribed == NONE && !subscriptions) {
+ char formatbuf[BUFSIZ/2];
ast_cli(fd, FORMAT, ast_inet_ntoa(cur->sa.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),
ast_test_flag(&cur->flags[1], SIP_PAGE2_CALL_ONHOLD) ? "Yes" : "No",
ast_test_flag(&cur->flags[0], SIP_NEEDDESTROY) ? "(d)" : "",
cur->lastmsg ,