--- chan_sip.c-orig 2013-11-25 10:34:36.718954174 +0100 +++ chan_sip.c 2013-11-25 11:42:19.638105461 +0100 @@ -30175,7 +30175,7 @@ username = authcopy; /* split user[:secret] and relm */ - realm = strrchr(username, '@'); + realm = strchr(username, '@'); if (realm) *realm++ = '\0'; if (ast_strlen_zero(username) || ast_strlen_zero(realm)) {