]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make sure that outbound calls are applied to the peer.
authorOlle Johansson <oej@edvina.net>
Tue, 13 Feb 2007 18:35:43 +0000 (18:35 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 13 Feb 2007 18:35:43 +0000 (18:35 +0000)
This fixes some issues with "hints not working", but only in 1.2.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54179 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index f7dcda5f84ce4456058e646c2e2ecefcde65fdf0..460cb33011121e4676e2650c77be0c80e204cb55 100644 (file)
@@ -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;