summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2009-09-10 18:29:21 +0000
committerOlle Johansson <oej@edvina.net>2009-09-10 18:29:21 +0000
commit58c4e9506af15e7451c9950039c3ee27108b0862 (patch)
tree71ef6662ac4a30b9273094be441706635297e8a0
parentc9dd40c1f69a7e0239f924edd68155379e58958f (diff)
Don't assign UINT_MAX to an INT.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@217663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_sip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 5f9010598..5073951e7 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -1228,7 +1228,7 @@ static int global_rtpkeepalive; /*!< Send RTP keepalives */
static int global_reg_timeout; /*!< Global time between attempts for outbound registrations */
static int global_regattempts_max; /*!< Registration attempts before giving up */
static int global_callcounter; /*!< Enable call counters for all devices. This is currently enabled by setting the peer
- call-limit to UINT_MAX. When we remove the call-limit from the code, we can make it
+ call-limit to INT_MAX. When we remove the call-limit from the code, we can make it
with just a boolean flag in the device structure */
static unsigned int global_tos_sip; /*!< IP type of service for SIP packets */
static unsigned int global_tos_audio; /*!< IP type of service for audio RTP packets */
@@ -24060,7 +24060,7 @@ static void set_peer_defaults(struct sip_peer *peer)
peer->autoframing = global_autoframing;
peer->qualifyfreq = global_qualifyfreq;
if (global_callcounter)
- peer->call_limit=UINT_MAX;
+ peer->call_limit=INT_MAX;
ast_string_field_set(peer, vmexten, default_vmexten);
ast_string_field_set(peer, secret, "");
ast_string_field_set(peer, remotesecret, "");
@@ -24378,7 +24378,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str
} else if (!strcasecmp(v->name, "callbackextension")) {
ast_copy_string(callback, v->value, sizeof(callback));
} else if (!strcasecmp(v->name, "callcounter")) {
- peer->call_limit = ast_true(v->value) ? UINT_MAX : 0;
+ peer->call_limit = ast_true(v->value) ? INT_MAX : 0;
} else if (!strcasecmp(v->name, "call-limit")) {
peer->call_limit = atoi(v->value);
if (peer->call_limit < 0)