mirror of
https://github.com/asterisk/asterisk.git
synced 2026-01-06 18:13:45 +00:00
issue #5815
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7166 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2005-11-21 Russell Bryant <russell@digium.com>
|
||||
|
||||
* channels/chan_iax2.c (iax2_getpeername): Return non-zero to indicate that a peer was found when using realtime (issue #5815)
|
||||
|
||||
2005-11-20 Russell Bryant <russell@digium.com>
|
||||
|
||||
* Makefile apps/Makefile: Fix 'make install' for Solaris. (issue #5775)
|
||||
|
||||
@@ -859,6 +859,7 @@ static int iax2_getpeername(struct sockaddr_in sin, char *host, int len, int loc
|
||||
{
|
||||
struct iax2_peer *peer;
|
||||
int res = 0;
|
||||
|
||||
if (lockpeer)
|
||||
ast_mutex_lock(&peerl.lock);
|
||||
peer = peerl.peers;
|
||||
@@ -879,8 +880,10 @@ static int iax2_getpeername(struct sockaddr_in sin, char *host, int len, int loc
|
||||
ast_copy_string(host, peer->name, len);
|
||||
if (ast_test_flag(peer, IAX_TEMPONLY))
|
||||
destroy_peer(peer);
|
||||
res = 1;
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user