[svn-commits] rmudgett: branch rmudgett/subaddr_xfer r2165 - /team/rmudgett/subaddr_xfer/pri.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Dec 9 21:55:29 CST 2010


Author: rmudgett
Date: Thu Dec  9 21:55:25 2010
New Revision: 2165

URL: http://svnview.digium.com/svn/libpri?view=rev&rev=2165
Log:
Add conditional code to send NOTIFY when connected anyway.

Modified:
    team/rmudgett/subaddr_xfer/pri.c

Modified: team/rmudgett/subaddr_xfer/pri.c
URL: http://svnview.digium.com/svn/libpri/team/rmudgett/subaddr_xfer/pri.c?view=diff&rev=2165&r1=2164&r2=2165
==============================================================================
--- team/rmudgett/subaddr_xfer/pri.c (original)
+++ team/rmudgett/subaddr_xfer/pri.c Thu Dec  9 21:55:25 2010
@@ -1044,8 +1044,18 @@
 				 * someone else a transfer then how is the network to know?
 				 */
 				if (new_number) {
+#if defined(USE_NOTIFY_FOR_ECT)
+					/*
+					 * Some ISDN phones only handle the NOTIFY message that the
+					 * EN 300-369 spec says should be sent only if the call has not
+					 * connected yet.
+					 */
+					q931_notify_redirection(ctrl, call, PRI_NOTIFY_TRANSFER_ACTIVE,
+						&party_id.number);
+#else
 					q931_request_subaddress(ctrl, call, PRI_NOTIFY_TRANSFER_ACTIVE,
 						&party_id.number);
+#endif	/* defined(USE_NOTIFY_FOR_ECT) */
 				}
 				if (new_subaddress || (party_id.subaddress.valid && new_number)) {
 					q931_subaddress_transfer(ctrl, call);




More information about the svn-commits mailing list