diff --git a/src/mod/endpoints/mod_skypiax/asterisk/chan_skypiax.c b/src/mod/endpoints/mod_skypiax/asterisk/chan_skypiax.c index d80e8cac51..2ebdafe9d2 100644 --- a/src/mod/endpoints/mod_skypiax/asterisk/chan_skypiax.c +++ b/src/mod/endpoints/mod_skypiax/asterisk/chan_skypiax.c @@ -313,12 +313,21 @@ struct ast_channel *skypiax_request(const char *type, int format, void *data, in return NULL; } +char interface[256]; +int i; +memset(interface, '\0', sizeof(interface)); + +for (i=0; iname); + //size_t length = strlen(p->name); /* is this the requested interface? */ - if (strncmp(name, p->name, length) == 0) { + if (strcmp(interface, p->name) == 0) { /* is the requested format supported by this interface? */ if ((format & AST_FORMAT_SLINEAR) != 0) { /* is this interface unowned? */