[svn-commits] moy: branch moy/mfcr2 r127972 - /team/moy/mfcr2/channels/chan_zap.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jul 3 21:11:46 CDT 2008


Author: moy
Date: Thu Jul  3 21:11:45 2008
New Revision: 127972

URL: http://svn.digium.com/view/asterisk?view=rev&rev=127972
Log:
updated disconnect reason to match more properly the spec

Modified:
    team/moy/mfcr2/channels/chan_zap.c

Modified: team/moy/mfcr2/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/team/moy/mfcr2/channels/chan_zap.c?view=diff&rev=127972&r1=127971&r2=127972
==============================================================================
--- team/moy/mfcr2/channels/chan_zap.c (original)
+++ team/moy/mfcr2/channels/chan_zap.c Thu Jul  3 21:11:45 2008
@@ -1338,7 +1338,7 @@
 	if (!ast_exists_extension(NULL, p->context, p->exten, 1, p->cid_num)) {
 		ast_log(LOG_NOTICE, "MFC/R2 call on channel %d requested non-existent extension '%s' in context '%s'. Rejecting call.\n",
 				p->channel, p->exten, p->context);
-		openr2_chan_disconnect_call(r2chan, OR2_CAUSE_UNASSIGNED_NUMBER);
+		openr2_chan_disconnect_call(r2chan, OR2_CAUSE_UNALLOCATED_NUMBER);
 	} else {
 		openr2_chan_accept_call(r2chan, OR2_ACCEPT_WITH_CHARGE);
 	}	
@@ -1416,7 +1416,7 @@
 		return AST_CAUSE_CONGESTION;
 	case OR2_CAUSE_OUT_OF_ORDER:
 		return AST_CAUSE_DESTINATION_OUT_OF_ORDER;
-	case OR2_CAUSE_UNASSIGNED_NUMBER:
+	case OR2_CAUSE_UNALLOCATED_NUMBER:
 		return AST_CAUSE_UNREGISTERED;
 	case OR2_CAUSE_NO_ANSWER:
 		return AST_CAUSE_NO_ANSWER;
@@ -1443,7 +1443,7 @@
 				break;
 			case OR2_CAUSE_NETWORK_CONGESTION:
 			case OR2_CAUSE_OUT_OF_ORDER:
-			case OR2_CAUSE_UNASSIGNED_NUMBER:
+			case OR2_CAUSE_UNALLOCATED_NUMBER:
 			case OR2_CAUSE_NO_ANSWER:
 			case OR2_CAUSE_UNSPECIFIED:
 			case OR2_CAUSE_NORMAL_CLEARING:




More information about the svn-commits mailing list