summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-04-27 01:29:28 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-04-27 01:29:28 +0000
commit2a4265b4068b82eb7bc492601a8a9e10c022b0ce (patch)
treec1e9c06d4bd808188f6819aa34b8ab1221cca281 /channels
parentaaee30edcc81ff350091a1cc44826f2cb73335ed (diff)
formatting cleanup (bug #4088)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5505 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 0df1dc7d5..c4f15a223 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5319,24 +5319,24 @@ static int register_verify(struct sip_pvt *p, struct sockaddr_in *sin, struct si
ASTOBJ_UNREF(peer,sip_destroy_peer);
}
if (peer) {
- if (!ast_test_flag(peer, SIP_DYNAMIC)) {
- ast_log(LOG_NOTICE, "Peer '%s' is trying to register, but not configured as host=dynamic\n", peer->name);
- } else {
- ast_copy_flags(p, peer, SIP_NAT);
- transmit_response(p, "100 Trying", req);
- if (!(res = check_auth(p, req, p->randdata, sizeof(p->randdata), peer->name, peer->secret, peer->md5secret, SIP_REGISTER, uri, 0, ignore))) {
- sip_cancel_destroy(p);
- if (parse_contact(p, peer, req)) {
- ast_log(LOG_WARNING, "Failed to parse contact info\n");
- } else {
- update_peer(peer, p->expiry);
- /* Say OK and ask subsystem to retransmit msg counter */
- transmit_response_with_date(p, "200 OK", req);
- peer->lastmsgssent = -1;
- res = 0;
- }
- }
- }
+ if (!ast_test_flag(peer, SIP_DYNAMIC)) {
+ ast_log(LOG_NOTICE, "Peer '%s' is trying to register, but not configured as host=dynamic\n", peer->name);
+ } else {
+ ast_copy_flags(p, peer, SIP_NAT);
+ transmit_response(p, "100 Trying", req);
+ if (!(res = check_auth(p, req, p->randdata, sizeof(p->randdata), peer->name, peer->secret, peer->md5secret, SIP_REGISTER, uri, 0, ignore))) {
+ sip_cancel_destroy(p);
+ if (parse_contact(p, peer, req)) {
+ ast_log(LOG_WARNING, "Failed to parse contact info\n");
+ } else {
+ update_peer(peer, p->expiry);
+ /* Say OK and ask subsystem to retransmit msg counter */
+ transmit_response_with_date(p, "200 OK", req);
+ peer->lastmsgssent = -1;
+ res = 0;
+ }
+ }
+ }
}
if (!peer && autocreatepeer) {
/* Create peer if we have autocreate mode enabled */