summaryrefslogtreecommitdiffstats
path: root/route.c
diff options
context:
space:
mode:
authorAndreas Eversberg2008-09-14 14:37:51 +0200
committerAndreas Eversberg2008-09-14 14:37:51 +0200
commit6d3d13def341dcddb6fe4336d18ce2ac9b996029 (patch)
treef4c5b986989cda5316999c723e2dd5b6e23e1277 /route.c
parentFixed trace bugs. (diff)
downloadlcr-6d3d13def341dcddb6fe4336d18ce2ac9b996029.tar.gz
lcr-6d3d13def341dcddb6fe4336d18ce2ac9b996029.tar.xz
lcr-6d3d13def341dcddb6fe4336d18ce2ac9b996029.zip
fixed some layer 2 link issues
modified: README modified: apppbx.cpp modified: lcradmin.c modified: mISDN.cpp modified: route.c
Diffstat (limited to 'route.c')
-rw-r--r--route.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/route.c b/route.c
index 7022ae2..ce5d226 100644
--- a/route.c
+++ b/route.c
@@ -2147,7 +2147,7 @@ struct route_action *EndpointAppPBX::route(struct route_ruleset *ruleset)
if (mISDNport->ifport)
if (strlen(mISDNport->ifport->interface->name) == comp_len)
if (!strncasecmp(mISDNport->ifport->interface->name, cond->string_value, comp_len))
- if (!mISDNport->l2hold || mISDNport->l2link)
+ if (!mISDNport->l2hold || mISDNport->l2link>0)
{
j = 0;
jj = mISDNport->b_num;
@@ -2179,7 +2179,7 @@ struct route_action *EndpointAppPBX::route(struct route_ruleset *ruleset)
{
if (mISDNport->ifport)
if (!strcasecmp(mISDNport->ifport->interface->name, cond->string_value))
- if (!mISDNport->l2hold || mISDNport->l2link)
+ if (!mISDNport->l2hold || mISDNport->l2link>0)
break;
mISDNport = mISDNport->next;
}
@@ -2193,7 +2193,7 @@ struct route_action *EndpointAppPBX::route(struct route_ruleset *ruleset)
{
if (mISDNport->ifport)
if (!strcasecmp(mISDNport->ifport->interface->name, cond->string_value))
- if (!mISDNport->l2hold || mISDNport->l2link)
+ if (!mISDNport->l2hold || mISDNport->l2link>0)
break;
mISDNport = mISDNport->next;