[libpri-commits] rmudgett: branch rmudgett/subaddr_xfer r2159 - /team/rmudgett/subaddr_xfer/

SVN commits to the libpri project libpri-commits at lists.digium.com
Wed Dec 8 10:58:38 CST 2010


Author: rmudgett
Date: Wed Dec  8 10:58:34 2010
New Revision: 2159

URL: http://svnview.digium.com/svn/libpri?view=rev&rev=2159
Log:
Clear subaddress when receive Q.SIG CallTransferComplete facility.

Modified:
    team/rmudgett/subaddr_xfer/pri_facility.c

Modified: team/rmudgett/subaddr_xfer/pri_facility.c
URL: http://svnview.digium.com/svn/libpri/team/rmudgett/subaddr_xfer/pri_facility.c?view=diff&rev=2159&r1=2158&r2=2159
==============================================================================
--- team/rmudgett/subaddr_xfer/pri_facility.c (original)
+++ team/rmudgett/subaddr_xfer/pri_facility.c Wed Dec  8 10:58:34 2010
@@ -5105,6 +5105,12 @@
 				&invoke->args.qsig.CallTransferComplete.redirection_name);
 		}
 
+		/*
+		 * Clear the subaddress as the remote party has been changed.
+		 * Any new subaddress will arrive later.
+		 */
+		q931_party_subaddress_init(&call->remote_id.subaddress);
+
 		if (invoke->args.qsig.CallTransferComplete.call_status == 1) {
 			/* The remote party for the transfer has not answered yet. */
 			call->incoming_ct_state = INCOMING_CT_STATE_EXPECT_CT_ACTIVE;




More information about the libpri-commits mailing list