diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-06 01:28:54 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-06 01:28:54 +0000 |
commit | d39208dd35ce0ead92bf6a4b21361f3d13759589 (patch) | |
tree | c050eb70daaa99135a4c23227ce78b92b19b19fd /channels | |
parent | b7997fe7bd563243b2aa7074ed66fce7c08bc0c0 (diff) |
Fix minor OSP compile issue
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5852 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 63a0d2026..e2cd3ac18 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1671,7 +1671,7 @@ static int sip_call(struct ast_channel *ast, char *dest, int timeout) #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 @@ static int check_auth(struct sip_pvt *p, struct sip_request *req, char *randdata 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) |