Index: asterisk-1.6.2.18/channels/chan_iax2.c =================================================================== --- asterisk-1.6.2.18.orig/channels/chan_iax2.c 2011-03-08 16:38:00.000000000 +0000 +++ asterisk-1.6.2.18/channels/chan_iax2.c 2011-03-17 11:19:54.000000000 +0000 @@ -7436,6 +7436,7 @@ } else ast_string_field_set(iaxs[callno], secret, user->secret); res = 0; + ast_string_field_set(iaxs[callno], host, user->name); user = user_unref(user); } else { /* user was not found, but we should still fake an AUTHREQ. @@ -7568,7 +7569,6 @@ ast_atomic_fetchadd_int(&user->curauthreq, -1); ast_clear_flag(p, IAX_MAXAUTHREQ); } - ast_string_field_set(p, host, user->name); user = user_unref(user); } if (ast_test_flag(p, IAX_FORCE_ENCRYPT) && !p->encmethods) {