From 4957a3ef69e0435d0c945c076dd4feab8b72b8e6 Mon Sep 17 00:00:00 2001 From: Giovanni Maruzzelli Date: Fri, 27 Feb 2009 13:54:07 +0000 Subject: [PATCH] skypiax: works on * too :-) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12322 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- .../endpoints/mod_skypiax/asterisk/chan_skypiax.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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? */