Browse Source

oops, it was late...put logic inside block when it should have been outside

3.12
K Anderson 14 years ago
parent
commit
c260989b3d
1 changed files with 9 additions and 12 deletions
  1. +9
    -12
      opensips/opensips.tmp

+ 9
- 12
opensips/opensips.tmp View File

@ -388,22 +388,18 @@ route
} }
else if (isflagset(26)) else if (isflagset(26))
{ {
if (isflagset(26))
{
cache_store("local", "$tU", "$avp(i:55)", 3600);
cache_store("local", "$tU", "$avp(i:55)", 3600);
xlog("L_INFO", "$ci|log|maintaining associated $tU with media server $avp(i:55)");
}
else if ($ct.fields(uri))
{
cache_store("local", "$(ct.fields(uri){uri.user})", "$avp(i:55)", 3600);
xlog("L_INFO", "$ci|log|maintaining associated $(ct.fields(uri){uri.user}) with media server $avp(i:55)");
}
xlog("L_INFO", "$ci|log|maintaining associated $tU with media server $avp(i:55)");
}
else if ($ct.fields(uri))
{
cache_store("local", "$(ct.fields(uri){uri.user})", "$avp(i:55)", 3600);
cache_store("local", "$ci", "$avp(i:55)", 3600);
xlog("L_INFO", "$ci|log|maintaining associated $(ct.fields(uri){uri.user}) with media server $avp(i:55)");
} }
cache_store("local", "$ci", "$avp(i:55)", 3600);
} }
xlog("L_INFO", "$ci|log|forwarding based on the route set"); xlog("L_INFO", "$ci|log|forwarding based on the route set");
@ -906,3 +902,4 @@ failure_route[internal_fault]
# if no new branch is generated or no reply is forced over, by default, # if no new branch is generated or no reply is forced over, by default,
# the winning reply will be sent back to UAC. # the winning reply will be sent back to UAC.
} }

Loading…
Cancel
Save