diff options
author | Philippe Sultan <philippe.sultan@gmail.com> | 2009-02-12 14:25:03 +0000 |
---|---|---|
committer | Philippe Sultan <philippe.sultan@gmail.com> | 2009-02-12 14:25:03 +0000 |
commit | c873d72ca24ddaa4765a3c342f0100180e080c78 (patch) | |
tree | a3e184c505d53285ed1516dae12f569e6476eeab /channels/chan_gtalk.c | |
parent | 7bb5ef8399c37002c6598187f2e910b780c145a5 (diff) |
Issue a warning message if our candidate's IP is the loopback address.
(closes issue #13985)
Reported by: jcovert
Tested by: phsultan
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@175089 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_gtalk.c')
-rw-r--r-- | channels/chan_gtalk.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_gtalk.c b/channels/chan_gtalk.c index dbea37623..e627bf79d 100644 --- a/channels/chan_gtalk.c +++ b/channels/chan_gtalk.c @@ -812,6 +812,9 @@ static int gtalk_create_candidates(struct gtalk *client, struct gtalk_pvt *p, ch ast_rtp_get_us(p->rtp, &sin); ast_find_ourip(&us, bindaddr); + if (!strcmp(ast_inet_ntoa(us), "127.0.0.1")) { + ast_log(LOG_WARNING, "Found a loopback IP on the system, check your network configuration or set the bindaddr attribute."); + } /* Setup our gtalk candidates */ ast_copy_string(ours1->name, "rtp", sizeof(ours1->name)); |