if(is_ip($td))
{
xlog("L_INFO", "[$ci][$mi][CSeq $cs] IP detected in To domain. Resolving. \n");
exec_avp("host $td | awk '{print substr($$5, 1, length($$5)-1)}'", "$avp(s:newtd)");
xlog("L_INFO", "[$ci][$mi][CSeq $cs] new newtd = $avp(s:newtd)");
$td = $avp(s:newtd);
xlog("L_INFO", "[$ci][$mi][CSeq $cs] new td = $td");
}
but $td never updates.
Apr 11 18:26:00 sjomaintpsg50 /usr/local/sbin/kamailio[6475]: INFO: <script>: [8ROWdUOINx][1][CSeq 20] IP detected in To domain. Resolving.
Apr 11 18:26:00 sjomaintpsg50 /usr/local/sbin/kamailio[6475]: INFO: <script>: [8ROWdUOINx][1][CSeq 20] new newtd = sjomaintpsg50.fuzemeeting.com
Apr 11 18:26:00 sjomaintpsg50 /usr/local/sbin/kamailio[6475]: INFO: <script>: [8ROWdUOINx][1][CSeq 20] new td = 206.81.191.30
Is there a reason why?