[Asterisk-cvs] asterisk/channels chan_sip.c,1.510.2.33,1.510.2.34

russell at lists.digium.com russell at lists.digium.com
Thu Jan 6 13:33:03 CST 2005


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

Modified Files:
      Tag: v1-0
	chan_sip.c 
Log Message:
fix SIP presence (bug #3251)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.510.2.33
retrieving revision 1.510.2.34
diff -u -d -r1.510.2.33 -r1.510.2.34
--- chan_sip.c	3 Jan 2005 02:36:24 -0000	1.510.2.33
+++ chan_sip.c	6 Jan 2005 19:37:55 -0000	1.510.2.34
@@ -3829,6 +3829,8 @@
 		}
 		mto = c;
 
+		add_header(&req, "Event", "presence");
+		add_header(&req, "Subscription-State", "active");
 		add_header(&req, "Content-Type", "application/xpidf+xml");
 
 		if ((state==AST_EXTENSION_UNAVAILABLE) || (state==AST_EXTENSION_BUSY))




More information about the svn-commits mailing list