Propagate CODE_UT_SERVICE_UNAVAILABLE from IMS stack.

Bug: 19573535
Change-Id: Ice13e35331e44f23e500e96021c04a54b6e0ebbb
diff --git a/src/java/com/android/internal/telephony/imsphone/ImsPhone.java b/src/java/com/android/internal/telephony/imsphone/ImsPhone.java
index d09e1bc..076d26e 100644
--- a/src/java/com/android/internal/telephony/imsphone/ImsPhone.java
+++ b/src/java/com/android/internal/telephony/imsphone/ImsPhone.java
@@ -876,6 +876,8 @@
             case ImsReasonInfo.CODE_UT_CB_PASSWORD_MISMATCH:
                 error = CommandException.Error.PASSWORD_INCORRECT;
                 break;
+            case ImsReasonInfo.CODE_UT_SERVICE_UNAVAILABLE:
+                error = CommandException.Error.RADIO_NOT_AVAILABLE;
             default:
                 break;
         }
@@ -1082,18 +1084,10 @@
     sendResponse(Message onComplete, Object result, Throwable e) {
         if (onComplete != null) {
             CommandException ex = null;
-            ImsException imsEx = null;
             if (e != null) {
-                if (e instanceof ImsException) {
-                    imsEx = (ImsException) e;
-                    AsyncResult.forMessage(onComplete, result, imsEx);
-                } else {
-                    ex = getCommandException(e);
-                    AsyncResult.forMessage(onComplete, result, ex);
-                }
-            } else {
-                AsyncResult.forMessage(onComplete, result, null);
+                ex = getCommandException(e);
             }
+            AsyncResult.forMessage(onComplete, result, ex);
             onComplete.sendToTarget();
         }
     }