Browse Source

handle route invite format

5.0
lazedo 5 years ago
parent
commit
919fdd07c6
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      kamailio/default.cfg

+ 6
- 2
kamailio/default.cfg View File

@ -248,7 +248,9 @@ route
route[MAIN]
{
route(AUTHORIZATION);
route(AUTHORIZATION);
remove_hf("Authorization");
#!ifdef MESSAGE_ROLE
route(HANDLE_MESSAGE);
@ -819,7 +821,9 @@ route[ROUTE_TO_AOR]
}
xlog("L_INFO", "$ci|log|using AOR $hdr(X-KAZOO-AOR)\n");
if ($hdr(X-KAZOO-INVITE-FORMAT) == "contact") {
if ($hdr(X-KAZOO-INVITE-FORMAT) == "route") {
xlog("L_INFO", "$ci|log|routing $hdr(X-KAZOO-AOR) to $ruri\n");
} else if ($hdr(X-KAZOO-INVITE-FORMAT) == "contact") {
if(lookup("location", "$hdr(X-KAZOO-AOR)") > 0){
xlog("L_INFO", "$ci|end|routing to contact $ru\n");
$avp(aor) = $hdr(X-KAZOO-AOR);


Loading…
Cancel
Save