[Asterisk-cvs] asterisk/channels chan_sip.c,1.447,1.448

markster at lists.digium.com markster at lists.digium.com
Mon Jul 12 22:58:26 CDT 2004


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

Modified Files:
	chan_sip.c 
Log Message:
Use tohost,  not the name of the peer


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.447
retrieving revision 1.448
diff -u -d -r1.447 -r1.448
--- chan_sip.c	13 Jul 2004 02:34:02 -0000	1.447
+++ chan_sip.c	13 Jul 2004 02:44:11 -0000	1.448
@@ -3968,8 +3968,8 @@
 		snprintf(from, sizeof(from), "<sip:%s>;tag=as%08x", r->username, p->tag);
 		snprintf(to, sizeof(to),     "<sip:%s>", r->username);
 	} else {
-		snprintf(from, sizeof(from), "<sip:%s@%s>;tag=as%08x", r->username, r->hostname, p->tag);
-		snprintf(to, sizeof(to),     "<sip:%s@%s>", r->username, r->hostname);
+		snprintf(from, sizeof(from), "<sip:%s@%s>;tag=as%08x", r->username, p->tohost, p->tag);
+		snprintf(to, sizeof(to),     "<sip:%s@%s>", r->username, p->tohost);
 	}
 	
 	snprintf(addr, sizeof(addr), "sip:%s", r->hostname);




More information about the svn-commits mailing list