Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv30818/channels

Modified Files:
        chan_iax2.c 
Log Message:
stop adding 'username@' to incoming IAX2 channel names, so that they can be 
properly matched in the device-state system (issue #5081)


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.336
retrieving revision 1.337
diff -u -d -r1.336 -r1.337
--- chan_iax2.c 30 Aug 2005 21:20:59 -0000      1.336
+++ chan_iax2.c 31 Aug 2005 22:13:40 -0000      1.337
@@ -3284,10 +3284,7 @@
        i = iaxs[callno];
        if (i && tmp) {
                tmp->tech = &iax2_tech;
-               if (!ast_strlen_zero(i->username))
-                       snprintf(tmp->name, sizeof(tmp->name), "IAX2/[EMAIL 
PROTECTED]", 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;

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to