aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-13 18:35:43 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-13 18:35:43 +0000
commit0e8ded54573ea3015d51be6500170fdb23fb9c28 (patch)
tree53c3201b07ddc30c341480c81edb2c9f9cd4785a /channels
parente8ea3f209b36fa2c5403b51af4306ff018d37b70 (diff)
Make sure that outbound calls are applied to the peer.
This fixes some issues with "hints not working", but only in 1.2. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@54179 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index f7dcda5f8..460cb3301 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -2232,8 +2232,7 @@ static int update_call_counter(struct sip_pvt *fup, int event)
ast_copy_string(name, fup->username, sizeof(name));
/* Check the list of users */
- u = find_user(name, 1);
- if (u) {
+ if (!outgoing && (u = find_user(name, 1))) {
inuse = &u->inUse;
call_limit = &u->call_limit;
p = NULL;