Browse Source

changes based on discussion in standup

KAZOO-5650
Mark Magnusson 9 years ago
parent
commit
e77ab6c8fe
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      kamailio/default.cfg

+ 9
- 9
kamailio/default.cfg View File

@ -601,7 +601,15 @@ route[INTERNAL_TO_EXTERNAL_RELAY]
#!ifdef REGISTRAR_ROLE #!ifdef REGISTRAR_ROLE
if ($hdr(X-KAZOO-AOR) != $null) { if ($hdr(X-KAZOO-AOR) != $null) {
xlog("L_INFO", "$ci|log|using AOR $hdr(X-KAZOO-AOR)\n"); xlog("L_INFO", "$ci|log|using AOR $hdr(X-KAZOO-AOR)\n");
if (reg_fetch_contacts("location", "$hdr(X-KAZOO-AOR)", "callee")) {
if ($hdr(X-KAZOO-INVITE-FORMAT) == "contact") {
if(lookup($hdr(X-KAZOO-AOR)) > 0){
xlog("L_INFO", "$ci|end|routing to contact $ru\n");
} else {
xlog("L_INFO", "$ci|end|lookup for AOR $hdr(X-KAZOO-AOR) failed\n");
sl_send_reply("404", "Not registered");
exit;
}
} else if (reg_fetch_contacts("location", "$hdr(X-KAZOO-AOR)", "callee")) {
$du = $(ulc(callee=>received)); $du = $(ulc(callee=>received));
$fs = $(ulc(callee=>socket)); $fs = $(ulc(callee=>socket));
xlog("L_INFO", "$ci|log|routing $hdr(X-KAZOO-AOR) to $du via $fs\n"); xlog("L_INFO", "$ci|log|routing $hdr(X-KAZOO-AOR) to $du via $fs\n");
@ -614,14 +622,6 @@ route[INTERNAL_TO_EXTERNAL_RELAY]
#!endif #!endif
remove_hf_re("^X-.*"); remove_hf_re("^X-.*");
if($hdr(X-KAZOO-INVITE-FORMAT) == "contact") {
$ru = $(ulc(callee=>addr));
xlog("L_INFO", "$ci|end|routing to contact $ru\n");
} else if( $avp(kazoo_aor) != $null) {
$du = $avp(kazoo_du);
xlog("L_INFO", "$ci|end|routing to $ruid : AOR : $avp(kazoo_aor)\n");
}
t_on_reply("EXTERNAL_REPLY"); t_on_reply("EXTERNAL_REPLY");


Loading…
Cancel
Save