I have a route block that performs callerid name lookups for
incoming calls. I want to leave this as a separate route block, and
not include it into the incoming route for simplicity of development.
I basically want to hop out of route 2 down to route 101, then hop
back to route 2 under the line that is pointed to. Any clues,? can
this even be done or does the structure of the tm (being stateless)
limit it? Is there a way to hop to a certain line number of a route
like say route(2,4); going to route 2 line 4. I dunno.
###############################################################
# INCOMING
###############################################################
route[2]
{
xlog("INVITE Received (incoming): $fu -> $ru");
setflag(1);
strip(1);
route(101); <---
do more stuff .........................................
########################################################################
##################################
# CNAM
########################################################################
#################################
route[101]
{
xlog("Running cnam query");
# do some stuff....
return;
};