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
1.2
Olle Johansson 19 years ago
parent 27a1f39f78
commit 5f3b33f0f5

@ -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;

Loading…
Cancel
Save