[asterisk-commits] rmudgett: branch rmudgett/digitmanip r268692 - /team/rmudgett/digitmanip/chan...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 7 13:03:21 CDT 2010


Author: rmudgett
Date: Mon Jun  7 13:03:18 2010
New Revision: 268692

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=268692
Log:
Update the user tag for party id's with the complete MSN after the network
has completed overlap dialing the CPE device.

Modified:
    team/rmudgett/digitmanip/channels/sig_pri.c

Modified: team/rmudgett/digitmanip/channels/sig_pri.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/digitmanip/channels/sig_pri.c?view=diff&rev=268692&r1=268691&r2=268692
==============================================================================
--- team/rmudgett/digitmanip/channels/sig_pri.c (original)
+++ team/rmudgett/digitmanip/channels/sig_pri.c Mon Jun  7 13:03:18 2010
@@ -1491,6 +1491,17 @@
 			ast_free(chan->cid.cid_dnid);
 		}
 		chan->cid.cid_dnid = ast_strdup(exten);
+
+		if (p->pri->append_msn_to_user_tag && p->pri->nodetype != PRI_NETWORK) {
+			/*
+			 * Update the user tag for party id's from this device for this call
+			 * now that we have a complete MSN from the network.
+			 */
+			snprintf(p->user_tag, sizeof(p->user_tag), "%s_%s", p->pri->initial_user_tag,
+				exten);
+			ast_free(chan->cid.cid_tag);
+			chan->cid.cid_dnid = ast_strdup(p->user_tag);
+		}
 	}
 	sig_pri_play_tone(p, -1);
 	if (ast_exists_extension(chan, chan->context, exten, 1, p->cid_num)) {




More information about the asterisk-commits mailing list