aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-10 17:49:45 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-10 17:49:45 +0000
commit919de18d6e98b3fe04a0e769f99da787597ad873 (patch)
tree3a19663ce45a1056d3705c0a035739640f252e03 /channels
parentb9048a029d9db2c0dd2cafbef6f559342164786b (diff)
Merged revisions 174580 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r174580 | file | 2009-02-10 13:48:29 -0400 (Tue, 10 Feb 2009) | 4 lines Set the type for the peer structure to be a peer as the default. (closes issue #14447) Reported by: triccyx ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@174582 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 014ab271a..1c6e196f8 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -21394,6 +21394,7 @@ static void set_peer_defaults(struct sip_peer *peer)
peer->socket.type = SIP_TRANSPORT_UDP;
peer->socket.fd = -1;
}
+ peer->type = SIP_TYPE_PEER;
ast_copy_flags(&peer->flags[0], &global_flags[0], SIP_FLAGS_TO_COPY);
ast_copy_flags(&peer->flags[1], &global_flags[1], SIP_PAGE2_FLAGS_TO_COPY);
strcpy(peer->context, default_context);