Fix for Polycom bug...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
ea4235c56c
commit
9468e5cd06
1 changed files with 8 additions and 2 deletions
|
@ -350,6 +350,8 @@ static const struct cfsip_options {
|
||||||
} sip_options[] = { /* XXX used in 3 places */
|
} sip_options[] = { /* XXX used in 3 places */
|
||||||
/* Replaces: header for transfer */
|
/* Replaces: header for transfer */
|
||||||
{ SIP_OPT_REPLACES, SUPPORTED, "replaces" },
|
{ SIP_OPT_REPLACES, SUPPORTED, "replaces" },
|
||||||
|
/* One version of Polycom firmware has the wrong label */
|
||||||
|
{ SIP_OPT_REPLACES, SUPPORTED, "replace" },
|
||||||
/* RFC3262: PRACK 100% reliability */
|
/* RFC3262: PRACK 100% reliability */
|
||||||
{ SIP_OPT_100REL, NOT_SUPPORTED, "100rel" },
|
{ SIP_OPT_100REL, NOT_SUPPORTED, "100rel" },
|
||||||
/* SIP Session Timers */
|
/* SIP Session Timers */
|
||||||
|
@ -8167,9 +8169,13 @@ static int _sip_show_peer(int type, int fd, struct mansession *s, struct message
|
||||||
ast_cli(fd, " Def. Username: %s\n", peer->username);
|
ast_cli(fd, " Def. Username: %s\n", peer->username);
|
||||||
ast_cli(fd, " SIP Options : ");
|
ast_cli(fd, " SIP Options : ");
|
||||||
if (peer->sipoptions) {
|
if (peer->sipoptions) {
|
||||||
|
int lastoption = -1;
|
||||||
for (x=0 ; (x < (sizeof(sip_options) / sizeof(sip_options[0]))); x++) {
|
for (x=0 ; (x < (sizeof(sip_options) / sizeof(sip_options[0]))); x++) {
|
||||||
if (peer->sipoptions & sip_options[x].id)
|
if (sip_options[x].id != lastoption) {
|
||||||
ast_cli(fd, "%s ", sip_options[x].text);
|
if (peer->sipoptions & sip_options[x].id)
|
||||||
|
ast_cli(fd, "%s ", sip_options[x].text);
|
||||||
|
lastoption = x;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
ast_cli(fd, "(none)");
|
ast_cli(fd, "(none)");
|
||||||
|
|
Loading…
Reference in a new issue