<div dir="ltr">This config from my earlier email. Do you want to see the entire config?<div><br></div><div><div style="font-size:12.8px"><div><div class="adm"><div id="q_155c07286580f0ef_1" class="h4"><div class="" style=""></div></div></div><div class="im"><div>route[CNAM_DIPS] {</div><div>  # Check call direction. If we're outbound nothing to do here</div><div>  if ($avp(direction) == "in") {</div><div>    t_on_branch("CNAM_DIPS");</div><div>    t_on_reply("CNAM_DIPS");</div><div>    t_on_failure("CNAM_DIPS");</div><div>    $avp(cnam_dip_authorized) = 0;</div><div>    sql_xquery("routing", "SELECT * FROM callRoute WHERE telephoneNumber = '$var(dest_tn)'", "callRoute_cnam_query"); </div><div>    $avp(cnam_dip_authorized) = $xavp(callRoute_cnam_query=>cnamDipAuthorized);</div><div>    append_branch("sip:<a href="tel:8888888888" value="+18888888888" target="_blank">8888888888</a>@444.44.444.44:5060;trans-type=5", "0.5");</div><div>    t_load_contacts();</div><div>    t_next_contacts();</div><div>    t_relay();</div><div>    break;</div><div>  }</div><div>}</div><div><br></div><div>branch_route[CNAM_DIPS] {</div><div>  $var(modified_from) = "sip:" + $fU + "@<a href="http://sip.core.com/" target="_blank">sip.core.com</a>";</div><div>  uac_replace_from("$var(modified_from)");</div><div>}</div><div><br></div><div>onreply_route[CNAM_DIPS] {</div><div>  if (t_check_status("380")) {</div><div>    xlog("L_INFO", "INFO: Received valid reply from TNSi (on_reply_route[CNAM_DIPS])");</div><div>    $avp(cnam) = $(hdr(P-Asserted-Identity){<a href="http://nameaddr.name/" target="_blank">nameaddr.name</a>});</div><div>  } else {</div><div>      xlog("L_ERROR", "INFO: Received bad reply from TNSi (on_reply_route[CNAM_DIPS])"); </div><div>  };</div><div>  drop;</div><div>}</div><div><br></div><div>failure_route[CNAM_DIPS] {</div><div>  if (!t_next_contacts()) {</div><div>    xlog("L_ERR", "ERROR: Gateway failure (failure_route[CNAM_DIPS])");</div><div>    exit;</div><div>  } else {</div><div>      t_next_contacts();</div><div>      t_relay();</div><div>  };</div><div>}</div><div><br></div></div></div><div>And these are the corresponding logs I was referencing:</div><div class=""><div id=":th" class="" tabindex="0"><img class="" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" style=""></div></div><div class=""><span class="im"><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div style="font-size:12.8px">Kamailio log: <a href="https://gist.github.com/johnavp1989/92adb1b9461168b4e46ba8842f65dac9" target="_blank">https://gist.github.com/johnavp1989/92adb1b9461168b4e46ba8842f65dac9</a></div><div style="font-size:12.8px">Packet capture: <a href="https://gist.github.com/johnavp1989/1167391732307a8ec025a992b4cda79a" target="_blank">https://gist.github.com/johnavp1989/1167391732307a8ec025a992b4cda79a</a></div><div style="font-size:12.8px">Syslog: <a href="https://gist.github.com/johnavp1989/6ea392880a6fd9aaa4e4eded57819b6c" target="_blank">https://gist.github.com/johnavp1989/6ea392880a6fd9aaa4e4eded57819b6c</a></div><div><br></div></div></span></div></div></div><div class="gmail_extra"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="margin-top:8px;margin-bottom:8px;font-family:Helvetica,Verdana,Arial,sans-serif;font-size:0.85em;color:rgb(51,51,51);line-height:1.4"><br></p></div></div></div></div></div></div></div></div></div>