projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11cb7ce
)
- If peer that register fails ACL, fail him
author
Olle Johansson
<oej@edvina.net>
Tue, 31 Oct 2006 09:24:55 +0000
(09:24 +0000)
committer
Olle Johansson
<oej@edvina.net>
Tue, 31 Oct 2006 09:24:55 +0000
(09:24 +0000)
- Remove the 1.2 props I've set by mistake earlier
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46609
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
1274393
..
9e752ff
100644
(file)
--- a/
channels/chan_sip.c
+++ b/
channels/chan_sip.c
@@
-8150,8
+8150,10
@@
static enum check_auth_result register_verify(struct sip_pvt *p, struct sockaddr
build_contact(p);
peer = find_peer(name, NULL, 1);
if (!(peer && ast_apply_ha(peer->ha, sin))) {
+ /* Peer fails ACL check */
if (peer)
ASTOBJ_UNREF(peer, sip_destroy_peer);
+ peer = NULL;
}
if (peer) {
/* Set Frame packetization */