[Asterisk-cvs] asterisk/channels chan_sip.c,1.752,1.753
markster at lists.digium.com
markster at lists.digium.com
Sun Jun 5 21:26:23 CDT 2005
- Previous message: [Asterisk-cvs] asterisk/res res_agi.c,1.35,1.36
- Next message: [Asterisk-cvs] asterisk app.c, 1.63, 1.64 channel.c, 1.200,
1.201 cli.c, 1.82, 1.83 manager.c, 1.97, 1.98 pbx.c, 1.252, 1.253
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv4374/channels
Modified Files:
chan_sip.c
Log Message:
Fix minor OSP compile issue
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.752
retrieving revision 1.753
diff -u -d -r1.752 -r1.753
--- chan_sip.c 5 Jun 2005 14:47:09 -0000 1.752
+++ chan_sip.c 6 Jun 2005 01:28:54 -0000 1.753
@@ -1671,7 +1671,7 @@
#ifdef OSP_SUPPORT
- else if (!osptoken && !strcasecmp(ast_var_name(current), "OSPTOKEN")) {
+ else if (!options.osptoken && !strcasecmp(ast_var_name(current), "OSPTOKEN")) {
options.osptoken = ast_var_value(current);
} else if (!osphandle && !strcasecmp(ast_var_name(current), "OSPHANDLE")) {
osphandle = ast_var_value(current);
@@ -5351,7 +5351,7 @@
ast_log(LOG_DEBUG, "Checking OSP Authentication!\n");
osptoken = get_header(req, "P-OSP-Auth-Token");
/* Check for token existence */
- if (!strlen(osptoken))
+ if (ast_strlen_zero(osptoken))
return -1;
/* Validate token */
if (ast_osp_validate(NULL, osptoken, &p->osphandle, &osptimelimit, p->cid_num, p->sa.sin_addr, p->exten) < 1)
- Previous message: [Asterisk-cvs] asterisk/res res_agi.c,1.35,1.36
- Next message: [Asterisk-cvs] asterisk app.c, 1.63, 1.64 channel.c, 1.200,
1.201 cli.c, 1.82, 1.83 manager.c, 1.97, 1.98 pbx.c, 1.252, 1.253
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list