Change IAX2 naming convention

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 22 years ago
parent 823f4559c9
commit 68070c82d0

@ -2569,9 +2569,9 @@ static struct ast_channel *ast_iax2_new(int callno, int state, int capability)
i = iaxs[callno]; i = iaxs[callno];
if (i && tmp) { if (i && tmp) {
if (!ast_strlen_zero(i->username)) if (!ast_strlen_zero(i->username))
snprintf(tmp->name, sizeof(tmp->name), "IAX2[%s@%s]/%d", i->username, i->host, i->callno); snprintf(tmp->name, sizeof(tmp->name), "IAX2/%s@%s/%d", i->username, i->host, i->callno);
else else
snprintf(tmp->name, sizeof(tmp->name), "IAX2[%s]/%d", i->host, i->callno); snprintf(tmp->name, sizeof(tmp->name), "IAX2/%s/%d", i->host, i->callno);
tmp->type = type; tmp->type = type;
/* We can support any format by default, until we get restricted */ /* We can support any format by default, until we get restricted */
tmp->nativeformats = capability; tmp->nativeformats = capability;

Loading…
Cancel
Save