stop adding 'username@' to incoming IAX2 channel names, so that they can be properly...
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 31 Aug 2005 22:13:40 +0000 (22:13 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 31 Aug 2005 22:13:40 +0000 (22:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6477 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index eda76d0..4b9e537 100755 (executable)
@@ -3284,10 +3284,7 @@ static struct ast_channel *ast_iax2_new(int callno, int state, int capability)
        i = iaxs[callno];
        if (i && tmp) {
                tmp->tech = &iax2_tech;
-               if (!ast_strlen_zero(i->username))
-                       snprintf(tmp->name, sizeof(tmp->name), "IAX2/%s@%s-%d", i->username, i->host, i->callno);
-               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 = channeltype;
                /* We can support any format by default, until we get restricted */
                tmp->nativeformats = capability;