--- channels/chan_sip.c.trunk.306619.orig 2011-02-08 07:38:10.000000000 -0500 +++ channels/chan_sip.c 2011-02-08 07:44:01.000000000 -0500 @@ -4555,6 +4555,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) {