mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
get rid of some more compiler warnings (thanks tholo for making me fix the lpc10 stuff... that had been a problem for far too long)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -162,7 +162,7 @@ static int ospauth_exec(struct ast_channel *chan, void *data)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
ast_log(LOG_DEBUG, "OSPAuth: source '%s'\n", source);
|
ast_log(LOG_DEBUG, "OSPAuth: source '%s'\n", source);
|
||||||
ast_log(LOG_DEBUG, "OSPAuth: token size '%d'\n", strlen(token));
|
ast_log(LOG_DEBUG, "OSPAuth: token size '%zd'\n", strlen(token));
|
||||||
|
|
||||||
res = ast_osp_auth(provider, &handle, source, chan->cid.cid_num, chan->exten, token, &timelimit);
|
res = ast_osp_auth(provider, &handle, source, chan->cid.cid_num, chan->exten, token, &timelimit);
|
||||||
if (res > 0) {
|
if (res > 0) {
|
||||||
@@ -294,11 +294,11 @@ static int osplookup_exec(struct ast_channel *chan, void *data)
|
|||||||
pbx_builtin_setvar_helper(chan, "OSPCALLING", result.calling);
|
pbx_builtin_setvar_helper(chan, "OSPCALLING", result.calling);
|
||||||
ast_log(LOG_DEBUG, "OSPLookup: OSPCALLING '%s'\n", result.calling);
|
ast_log(LOG_DEBUG, "OSPLookup: OSPCALLING '%s'\n", result.calling);
|
||||||
pbx_builtin_setvar_helper(chan, "OSPOUTTOKEN", result.token);
|
pbx_builtin_setvar_helper(chan, "OSPOUTTOKEN", result.token);
|
||||||
ast_log(LOG_DEBUG, "OSPLookup: OSPOUTTOKEN size '%d'\n", strlen(result.token));
|
ast_log(LOG_DEBUG, "OSPLookup: OSPOUTTOKEN size '%zd'\n", strlen(result.token));
|
||||||
if (!ast_strlen_zero(result.token)) {
|
if (!ast_strlen_zero(result.token)) {
|
||||||
snprintf(buffer, sizeof(buffer), "P-OSP-Auth-Token: %s", result.token);
|
snprintf(buffer, sizeof(buffer), "P-OSP-Auth-Token: %s", result.token);
|
||||||
pbx_builtin_setvar_helper(chan, "_SIPADDHEADER", buffer);
|
pbx_builtin_setvar_helper(chan, "_SIPADDHEADER", buffer);
|
||||||
ast_log(LOG_DEBUG, "OSPLookup: SIPADDHEADER size '%d'\n", strlen(buffer));
|
ast_log(LOG_DEBUG, "OSPLookup: SIPADDHEADER size '%zd'\n", strlen(buffer));
|
||||||
}
|
}
|
||||||
snprintf(buffer, sizeof(buffer), "%d", result.numresults);
|
snprintf(buffer, sizeof(buffer), "%d", result.numresults);
|
||||||
pbx_builtin_setvar_helper(chan, "OSPRESULTS", buffer);
|
pbx_builtin_setvar_helper(chan, "OSPRESULTS", buffer);
|
||||||
@@ -440,11 +440,11 @@ static int ospnext_exec(struct ast_channel *chan, void *data)
|
|||||||
pbx_builtin_setvar_helper(chan, "OSPCALLING", result.calling);
|
pbx_builtin_setvar_helper(chan, "OSPCALLING", result.calling);
|
||||||
ast_log(LOG_DEBUG, "OSPNext: OSPCALLING '%s'\n", result.calling);
|
ast_log(LOG_DEBUG, "OSPNext: OSPCALLING '%s'\n", result.calling);
|
||||||
pbx_builtin_setvar_helper(chan, "OSPOUTTOKEN", result.token);
|
pbx_builtin_setvar_helper(chan, "OSPOUTTOKEN", result.token);
|
||||||
ast_log(LOG_DEBUG, "OSPNext: OSPOUTTOKEN size '%d'\n", strlen(result.token));
|
ast_log(LOG_DEBUG, "OSPNext: OSPOUTTOKEN size '%zd'\n", strlen(result.token));
|
||||||
if (!ast_strlen_zero(result.token)) {
|
if (!ast_strlen_zero(result.token)) {
|
||||||
snprintf(buffer, sizeof(buffer), "P-OSP-Auth-Token: %s", result.token);
|
snprintf(buffer, sizeof(buffer), "P-OSP-Auth-Token: %s", result.token);
|
||||||
pbx_builtin_setvar_helper(chan, "_SIPADDHEADER", buffer);
|
pbx_builtin_setvar_helper(chan, "_SIPADDHEADER", buffer);
|
||||||
ast_log(LOG_DEBUG, "OSPNext: SIPADDHEADER size '%d'\n", strlen(buffer));
|
ast_log(LOG_DEBUG, "OSPNext: SIPADDHEADER size '%zd'\n", strlen(buffer));
|
||||||
}
|
}
|
||||||
snprintf(buffer, sizeof(buffer), "%d", result.numresults);
|
snprintf(buffer, sizeof(buffer), "%d", result.numresults);
|
||||||
pbx_builtin_setvar_helper(chan, "OSPRESULTS", buffer);
|
pbx_builtin_setvar_helper(chan, "OSPRESULTS", buffer);
|
||||||
|
@@ -31,6 +31,8 @@ Add broken lpc10 code... It's not too far from working I don't think...
|
|||||||
#ifndef __LPC10_H__
|
#ifndef __LPC10_H__
|
||||||
#define __LPC10_H__
|
#define __LPC10_H__
|
||||||
|
|
||||||
|
#define P_R_O_T_O_T_Y_P_E_S
|
||||||
|
|
||||||
#define LPC10_SAMPLES_PER_FRAME 180
|
#define LPC10_SAMPLES_PER_FRAME 180
|
||||||
#define LPC10_BITS_IN_COMPRESSED_FRAME 54
|
#define LPC10_BITS_IN_COMPRESSED_FRAME 54
|
||||||
|
|
||||||
|
@@ -29,13 +29,6 @@ Some OSS fixes and a few lpc changes to make it actually work
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef P_R_O_T_O_T_Y_P_E_S
|
|
||||||
extern int lpcini_(void);
|
|
||||||
/* comlen contrl_ 12 */
|
|
||||||
/*:ref: initlpcenc_ 14 0 */
|
|
||||||
/*:ref: initlpcdec_ 14 0 */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* -- translated by f2c (version 19951025).
|
/* -- translated by f2c (version 19951025).
|
||||||
You must link the resulting object file with the libraries:
|
You must link the resulting object file with the libraries:
|
||||||
-lf2c -lm (in that order)
|
-lf2c -lm (in that order)
|
||||||
@@ -44,6 +37,13 @@ extern int lpcini_(void);
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "f2c.h"
|
#include "f2c.h"
|
||||||
|
|
||||||
|
#ifdef P_R_O_T_O_T_Y_P_E_S
|
||||||
|
extern int lpcini_(void);
|
||||||
|
/* comlen contrl_ 12 */
|
||||||
|
/*:ref: initlpcenc_ 14 0 */
|
||||||
|
/*:ref: initlpcdec_ 14 0 */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Common Block Declarations */
|
/* Common Block Declarations */
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
|
Reference in New Issue
Block a user