if (outbound_profile->destination_number && !strncasecmp(outbound_profile->destination_number, "endpoint", sizeof("endpoint")-1)) {
codec_ms = -1;
- samples_per_packet = -1;
endpoint = NULL;
endpoint_name = switch_core_strdup(outbound_profile->pool, outbound_profile->destination_number);
endpoint_name = strchr(endpoint_name, '/');
stream->write_function(stream, ",");
}
stream->write_function(stream, "o");
- prev = 1;
}
stream->write_function(stream, "\n");
static switch_status_t do_flags(char **argv, int argc, switch_stream_handle_t *stream)
{
char *action = argv[0];
- char *flag_str = argv[1];
+ char *flag_str;
GFLAGS flags = GFLAG_NONE;
char *p;
int x = 0;
}
switch_mutex_lock(globals.pa_mutex);
- status = func(&argv[lead], argc - lead, stream);
+ func(&argv[lead], argc - lead, stream);
status = SWITCH_STATUS_SUCCESS; /*if func was defined we want to always return success as the command was found */
switch_mutex_unlock(globals.pa_mutex);
bytesWritten = PaUtil_WriteRingBuffer(&aStream->outFIFOs[chan], p, numBytes);
numBytes -= bytesWritten;
- p += bytesWritten;
if (numBytes > 0) {
PaUtil_FlushRingBuffer(&aStream->outFIFOs[chan]);
//printf("AVAILABLE BYTES %ld pass %d\n", avail, 5000 - max);
if (avail >= neededBytes * 6) {
PaUtil_FlushRingBuffer(&aStream->inFIFOs[chan]);
- avail = 0;
} else {
bytesRead = 0;