[Asterisk-cvs] asterisk/channels chan_sip.c,1.254,1.255

markster at lists.digium.com markster at lists.digium.com
Wed Nov 26 15:33:45 CST 2003


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

Modified Files:
	chan_sip.c 
Log Message:
Have a contact line in responses, merge logging patches


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.254
retrieving revision 1.255
diff -u -d -r1.254 -r1.255
--- chan_sip.c	26 Nov 2003 19:24:57 -0000	1.254
+++ chan_sip.c	26 Nov 2003 22:00:07 -0000	1.255
@@ -5057,6 +5057,7 @@
 				ast_queue_frame(p->owner, &af, 0);
 		} else if (sipdebug)
 			ast_verbose("Ignoring this request\n");
+		strncpy(p->our_contact, get_header(req, "Contact"), sizeof(p->our_contact) - 1);
 		if (!p->lastinvite) {
 			/* Handle authentication if this is our first invite */
 			res = check_user(p, req, cmd, e, 1, sin);
@@ -5276,6 +5277,7 @@
 		} else if (sipdebug)
 			ast_verbose("Ignoring this request\n");
 			
+		strncpy(p->our_contact, get_header(req, "Contact"), sizeof(p->our_contact) - 1);
 		if (!p->lastinvite) {
 			/* Handle authentication if this is our first subscribe */
 			res = check_user(p, req, cmd, e, 0, sin);




More information about the svn-commits mailing list