[asterisk-commits] jpeeler: branch jpeeler/asterisk-sigwork-trunk r199094 - /team/jpeeler/asteri...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 4 11:48:02 CDT 2009


Author: jpeeler
Date: Thu Jun  4 11:47:59 2009
New Revision: 199094

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=199094
Log:
no dahdi_chan_name needed anymore

Modified:
    team/jpeeler/asterisk-sigwork-trunk/channels/chan_dahdi.c

Modified: team/jpeeler/asterisk-sigwork-trunk/channels/chan_dahdi.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/jpeeler/asterisk-sigwork-trunk/channels/chan_dahdi.c?view=diff&rev=199094&r1=199093&r2=199094
==============================================================================
--- team/jpeeler/asterisk-sigwork-trunk/channels/chan_dahdi.c (original)
+++ team/jpeeler/asterisk-sigwork-trunk/channels/chan_dahdi.c Thu Jun  4 11:47:59 2009
@@ -2259,11 +2259,10 @@
 	new->owner = old->owner;
 	old->owner = NULL;
 	if (new->owner) {
-#ifdef XXX
-		ast_string_field_build(new->owner, name, "%s/%d:%d-%d", dahdi_chan_name, pri->trunkgroup, new->channel, 1);
-#else
-		ast_string_field_build(new->owner, name, "%s/%d-%d", dahdi_chan_name, new->channel, 1);
-#endif
+		char newname[AST_CHANNEL_NAME];
+		snprintf(newname, sizeof(newname), "DAHDI/%d-%d", new->channel, 1);
+		ast_change_name(new->owner, newname);
+
 		new->owner->tech_pvt = new;
 		new->owner->fds[0] = new->subs[SUB_REAL].dfd;
 		new->subs[SUB_REAL].owner = old->subs[SUB_REAL].owner;




More information about the asterisk-commits mailing list