]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
automerge commit
authorAutomerge Script <automerge@asterisk.org>
Tue, 13 Feb 2007 19:37:42 +0000 (19:37 +0000)
committerAutomerge Script <automerge@asterisk.org>
Tue, 13 Feb 2007 19:37:42 +0000 (19:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@54203 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index e3c8a3fcdb80a1802a2b61eaeccf47b920b96f68..0244fbf1ed2ae02a43d6eafb4d8557d705120dfa 100644 (file)
@@ -2264,8 +2264,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;