diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-10 17:48:29 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-10 17:48:29 +0000 |
commit | fff38ff0e6fa019c31c4ef5307af492c0cde6c64 (patch) | |
tree | 405ff8bb2ee3f8802ed7b7b5424ac358fdb9db72 /channels | |
parent | 0c8b6d125e87ef3c303b604d8878cfb0e0d60fe9 (diff) |
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/trunk@174580 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 8d2b8ba75..d932dff05 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -22304,6 +22304,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); ast_string_field_set(peer, context, sip_cfg.default_context); |