[asterisk-commits] mmichelson: branch group/CCSS r236147 - /team/group/CCSS/channels/chan_dahdi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Dec 22 16:12:14 CST 2009
Author: mmichelson
Date: Tue Dec 22 16:12:11 2009
New Revision: 236147
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=236147
Log:
Prepend "DAHDI" to the interface name in dahdi_cc_callback.
Modified:
team/group/CCSS/channels/chan_dahdi.c
Modified: team/group/CCSS/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/channels/chan_dahdi.c?view=diff&rev=236147&r1=236146&r2=236147
==============================================================================
--- team/group/CCSS/channels/chan_dahdi.c (original)
+++ team/group/CCSS/channels/chan_dahdi.c Tue Dec 22 16:12:11 2009
@@ -12334,6 +12334,7 @@
/* We found a potential match. call the callback */
struct ast_str *interface_name;
char dialstring[AST_CHANNEL_NAME];
+ char full_interface_name[AST_CHANNEL_NAME];
#ifdef HAVE_PRI
char dnid[AST_CHANNEL_NAME];
sig_pri_extract_called_num_subaddr(p->sig_pvt, dest, dnid, sizeof(dnid));
@@ -12344,8 +12345,9 @@
#else
interface_name = create_channel_name(p);
#endif
+ snprintf(full_interface_name, sizeof(full_interface_name) - 1, "DAHDI/%s", ast_str_buffer(interface_name));
snprintf(dialstring, sizeof(dialstring) - 1, "DAHDI/%s", dest);
- callback(inbound, p->cc_params, ast_str_buffer(interface_name), dialstring);
+ callback(inbound, p->cc_params, full_interface_name, dialstring);
ast_free(interface_name);
}
p = backwards ? p->prev : p->next;
More information about the asterisk-commits
mailing list