struct chan_list *ch=MISDN_ASTERISK_TECH_PVT(ast);
struct misdn_bchannel *newbc;
char *opts=NULL, *ext;
- char dest_cp[256];
{
- strncpy(dest_cp,dest,sizeof(dest_cp)-1);
- dest_cp[sizeof(dest_cp)]=0;
-
- ext=dest_cp;
+ ext = ast_strdupa(dest);
strsep(&ext,"/");
if (ext) {
opts=ext;
case PH_CONTROL|INDICATION:
{
- unsigned int cont = *((unsigned int *)&frm->data.p);
+ unsigned int *cont = (unsigned int *) &frm->data.p;
cb_log(4, stack->port, "PH_CONTROL: channel:%d oad%d:%s dad%d:%s \n", bc->channel, bc->onumplan,bc->oad, bc->dnumplan,bc->dad);
- if ((cont&~DTMF_TONE_MASK) == DTMF_TONE_VAL) {
- int dtmf = cont & DTMF_TONE_MASK;
+ if ((*cont & ~DTMF_TONE_MASK) == DTMF_TONE_VAL) {
+ int dtmf = *cont & DTMF_TONE_MASK;
cb_log(4, stack->port, " --> DTMF TONE: %c\n",dtmf);
bc->dtmf=dtmf;
cb_event(EVENT_DTMF_TONE, bc, glob_mgr->user_data);
free_msg(msg);
return 1;
}
- if (cont == BF_REJECT) {
+ if (*cont == BF_REJECT) {
cb_log(4, stack->port, " --> BF REJECT\n");
free_msg(msg);
return 1;
}
- if (cont == BF_ACCEPT) {
+ if (*cont == BF_ACCEPT) {
cb_log(4, stack->port, " --> BF ACCEPT\n");
free_msg(msg);
return 1;
$(if $(filter codec_lpc10,$(EMBEDDED_MODS)),modules.link,codec_lpc10.so): $(LIBLPC10)
$(LIBILBC):
- @$(MAKE) -C ilbc all
+ @$(MAKE) -C ilbc all ASTCFLAGS="$(ASTCFLAGS) $(AST_NO_STRICT_OVERFLOW)"
$(if $(filter codec_ilbc,$(EMBEDDED_MODS)),modules.link,codec_ilbc.so): $(LIBILBC)