[Asterisk-cvs] asterisk/channels chan_sip.c,1.907,1.908

kpfleming kpfleming
Fri Nov 11 16:51:15 CST 2005


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

Modified Files:
	chan_sip.c 
Log Message:
minor fixes


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.907
retrieving revision 1.908
diff -u -d -r1.907 -r1.908
--- chan_sip.c	8 Nov 2005 01:55:30 -0000	1.907
+++ chan_sip.c	11 Nov 2005 21:41:54 -0000	1.908
@@ -4845,11 +4845,9 @@
 			add_header(&req, "Referred-By", p->referred_by);
 	}
 #ifdef OSP_SUPPORT
-	if (p->options && !ast_strlen_zero(p->options->osptoken)) {
+	if ((req.method != SIP_OPTIONS) && p->options && !ast_strlen_zero(p->options->osptoken)) {
 		ast_log(LOG_DEBUG,"Adding OSP Token: %s\n", p->options->osptoken);
 		add_header(&req, "P-OSP-Auth-Token", p->options->osptoken);
-	} else {
-		ast_log(LOG_DEBUG,"NOT Adding OSP Token\n");
 	}
 #endif
 	if (p->options && !ast_strlen_zero(p->options->distinctive_ring))




More information about the svn-commits mailing list