}
/*
- * got dtmf from bchannel
+ * got dtmf from bchannel (locked state)
*/
void lcr_in_dtmf(struct chan_call *call, int val)
{
if (!call->pbx_started)
return;
- CDEBUG(call, call->ast, "Frowarding DTMF digit '%c' to Asterisk.\n", val);
+ CDEBUG(call, call->ast, "Forwarding DTMF digit '%c' to Asterisk.\n", val);
/* send digit to asterisk */
memset(&fr, 0, sizeof(fr));
strncpy(call->dialstring, dial, sizeof(call->dialstring)-1);
apply_opt(call, (char *)opt);
- /* if hdlc is forced by option, we change transcap to data */
- if (call->hdlc
- && ast->transfercapability != INFO_BC_DATAUNRESTRICTED
- && ast->transfercapability != INFO_BC_DATARESTRICTED
- && ast->transfercapability != INFO_BC_VIDEO)
- ast->transfercapability = INFO_BC_DATAUNRESTRICTED;
-
ast_mutex_unlock(&chan_lock);
return ast;
}
|| ast->transfercapability == INFO_BC_DATARESTRICTED
|| ast->transfercapability == INFO_BC_VIDEO)
call->hdlc = 1;
-
+ /* if hdlc is forced by option, we change transcap to data */
+ if (call->hdlc
+ && ast->transfercapability != INFO_BC_DATAUNRESTRICTED
+ && ast->transfercapability != INFO_BC_DATARESTRICTED
+ && ast->transfercapability != INFO_BC_VIDEO)
+ ast->transfercapability = INFO_BC_DATAUNRESTRICTED;
+
ast_mutex_unlock(&chan_lock);
return 0;
}