diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-13 17:41:02 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-13 17:41:02 +0000 |
commit | 4da6eaa1ec656f2c56ceb9ad347a1664be2e2113 (patch) | |
tree | 4fde8205368c191f37e614ffcf855d53405eb173 /channels/chan_sip.c | |
parent | dda901eb6f61ceaa2471a22242fd1298f5435628 (diff) |
Merged revisions 89246 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r89246 | tilghman | 2007-11-13 11:34:11 -0600 (Tue, 13 Nov 2007) | 2 lines
If we set a value for qualify, we should actually pay attention to it, instead of overriding the value
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89247 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 1ac12a31f..ae66b099e 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -16826,7 +16826,7 @@ static int sip_poke_peer(struct sip_peer *peer) sip_poke_noanswer(peer); /* Immediately unreachable, network problems */ else { peer->pokeexpire = ast_sched_replace(peer->pokeexpire, sched, - DEFAULT_MAXMS * 2, sip_poke_noanswer, peer); + peer->maxms * 2, sip_poke_noanswer, peer); } return 0; @@ -17769,7 +17769,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str if (!strcasecmp(v->value, "no")) { peer->maxms = 0; } else if (!strcasecmp(v->value, "yes")) { - peer->maxms = DEFAULT_MAXMS; + peer->maxms = default_qualify ? default_qualify : DEFAULT_MAXMS; } else if (sscanf(v->value, "%d", &peer->maxms) != 1) { ast_log(LOG_WARNING, "Qualification of peer '%s' should be 'yes', 'no', or a number of milliseconds at line %d of sip.conf\n", peer->name, v->lineno); peer->maxms = 0; |