--- channels/chan_sip.c.312889.orig 2011-04-06 18:28:06.000000000 -0400 +++ channels/chan_sip.c 2011-04-06 18:34:25.000000000 -0400 @@ -4572,6 +4572,8 @@ return NULL; } + if (peer->type == 0) peer->type = SIP_TYPE_PEER; + ast_debug(3, "-REALTIME- loading peer from database to memory. Name: %s. Peer objects: %d\n", peer->name, rpeerobjs); if (ast_test_flag(&global_flags[1], SIP_PAGE2_RTCACHEFRIENDS) && !devstate_only) {