diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-30 18:39:41 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-30 18:39:41 +0000 |
commit | 61868b81c09b234c53b5adfa67229b52e153a1f1 (patch) | |
tree | 155f182c412eae36d3f0d140483600cb0824fb90 /channels/chan_sip.c | |
parent | fab8b0d20a1cba7362aab1f1ea15eaec7956915b (diff) |
If local user not found, allow call to pass
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1239 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-x | channels/chan_sip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 66fed8dda..1608b3f54 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -903,7 +903,7 @@ static int find_user(struct sip_pvt *fup, int event) if ( isfound ) { ast_log(LOG_DEBUG, "%s is not a local user\n", name); ast_pthread_mutex_unlock(&userl.lock); - return 1; + return 0; } if(event == 0) { if ( u->inUse > 0 ) { @@ -4572,6 +4572,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc if (!strlen(p->context)) strncpy(p->context, context, sizeof(p->context) - 1); /* Check number of concurrent calls -vs- incoming limit HERE */ + ast_log(LOG_DEBUG, "Check for res\n"); res = find_user(p,1); if (res) { if (res < 0) { |