From: Olle Johansson Date: Tue, 13 Feb 2007 18:35:43 +0000 (+0000) Subject: Make sure that outbound calls are applied to the peer. X-Git-Tag: 1.2.16~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f3b33f0f51dec30508b3927b6e15a2abe95aeb2;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@54179 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index f7dcda5f84..460cb33011 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;