diff --git a/channels/chan_brcm.c b/channels/chan_brcm.c
index 4d2f615a3e7c0d036c3a6633f2e299fbdb0e9e73..ad83a13a56d840a980c524032b94b47ca224c785 100644
--- a/channels/chan_brcm.c
+++ b/channels/chan_brcm.c
@@ -2079,7 +2079,7 @@ static int brcm_should_relay_dtmf(const struct brcm_subchannel *sub)
 static int is_sip_account_registered(const char *sip_account)
 {
         int res = 0;
-        const char *cmd = "sip show registry";
+        const char *cmd = "pjsip show registrations";
         char template[] = "/tmp/ast-brcm-XXXXXX";     /* template for temporary file */
         char line[160];
         int fd_temp = -1;
@@ -2101,7 +2101,7 @@ static int is_sip_account_registered(const char *sip_account)
                                 /* The example output of the command is shown below.
                                  * Some extra spaces are removed since the line is too long.
                                  * sip0:5060 N 1313@10.0.2. 285 Registered Mon, 17 Jun 2019 17:12:58 */
-                                if (strstr(line, sip_account) == line && strstr(line, "Registered") != NULL) {
+                                if (strstr(line, sip_account) != NULL && strstr(line, "Registered") != NULL) {
                                         res = 1;
                                         break;
                                 }