|
|
@ -3900,13 +3900,11 @@ static int restart_monitor(void)
|
|
|
|
|
|
|
|
|
|
|
|
static struct ast_channel *mgcp_request(const char *type, format_t format, const struct ast_channel *requestor, void *data, int *cause)
|
|
|
|
static struct ast_channel *mgcp_request(const char *type, format_t format, const struct ast_channel *requestor, void *data, int *cause)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
format_t oldformat;
|
|
|
|
|
|
|
|
struct mgcp_subchannel *sub;
|
|
|
|
struct mgcp_subchannel *sub;
|
|
|
|
struct ast_channel *tmpc = NULL;
|
|
|
|
struct ast_channel *tmpc = NULL;
|
|
|
|
char tmp[256];
|
|
|
|
char tmp[256];
|
|
|
|
char *dest = data;
|
|
|
|
char *dest = data;
|
|
|
|
|
|
|
|
|
|
|
|
oldformat = format;
|
|
|
|
|
|
|
|
format &= capability;
|
|
|
|
format &= capability;
|
|
|
|
if (!format) {
|
|
|
|
if (!format) {
|
|
|
|
ast_log(LOG_NOTICE, "Asked to get a channel of unsupported format '%s'\n", ast_getformatname_multiple(tmp, sizeof(tmp), format));
|
|
|
|
ast_log(LOG_NOTICE, "Asked to get a channel of unsupported format '%s'\n", ast_getformatname_multiple(tmp, sizeof(tmp), format));
|
|
|
|