[Asterisk-cvs] asterisk/channels chan_sip.c,1.492,1.493
mattf at lists.digium.com
mattf at lists.digium.com
Tue Sep 7 11:15:34 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv26651/channels
Modified Files:
chan_sip.c
Log Message:
bug fixes
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.492
retrieving revision 1.493
diff -u -d -r1.492 -r1.493
--- chan_sip.c 7 Sep 2004 14:40:34 -0000 1.492
+++ chan_sip.c 7 Sep 2004 15:18:14 -0000 1.493
@@ -4546,6 +4546,7 @@
char *respheader = "Proxy-Authenticate";
char *authtoken;
#ifdef OSP_SUPPORT
+ char tmp[80];
char *osptoken;
unsigned int osptimelimit;
#endif
@@ -4574,6 +4575,10 @@
/* Validate token */
if (ast_osp_validate(NULL, osptoken, &p->osphandle, &osptimelimit, p->callerid, p->sa.sin_addr, p->exten) < 1)
return -1;
+
+ snprintf(tmp, sizeof(tmp), "%d", p->osphandle);
+ pbx_builtin_setvar_helper(p->owner, "OSPHANDLE", tmp);
+
/* If ospauth is 'exclusive' don't require further authentication */
if ((p->ospauth > 1) || (ast_strlen_zero(secret) && ast_strlen_zero(md5secret)))
return 0;
More information about the svn-commits
mailing list