[OpenSIPS-Users] Script execution hanging

Koce koce at mentalchallenge.tk
Mon Mar 14 22:16:02 CET 2016


Hello I'm using Opensips 2.1 git version and when I try to execute the 
outline from the routing logic below I get Opensips hanging on 
route(CGR_LCR_REQ) when it finishes executing.What I'm trying to say is 
it hangs on that particular line as it is expecting something.
So I'm wondering if I need to do a return on the end of that chained 
routing block?
Also is there some kind of depth limit that Opensips can go in the 
routing route calling logic where it can't find it's way back,because If 
I comment out route(CGR_LCR_REQ) everything continues execution as planned?
######################################
if (is_method("INVITE")) {
   sl_send_reply("100", "-Trying-");
   xlog("L_INFO", "LOOKUPLOCATION_INVITE: [F=$fu R=$ru D=$du M=$rm 
IP=($si:$sp $Ri:$Rp) ID=$ci]");
   if ($rU=~"(\+|00)?[0-9]{4,15}") {#PSTN LOGIC
     route(PSTN);
     xlog("L_INFO", "PSTN_PROCESSED_INVITE: [F=$fu R=$ru D=$du M=$rm 
IP=($si:$sp $Ri:$Rp) ID=$ci]");
   }
#rest of is_method("INVITE") route logic
######
route[PSTN]{
   route(CGR_LCR_REQ); #hanging
#rest of PSTN route logic
}

route[CGR_LCR_REQ]{
#var assignment and route logic
async(rest_post(),,,CGR_LCR_REPLY)
}

route[CGR_LCR_REPLY]{
#route logic and var assignment
async(rest_post(),,,CLI-REQ)
}
#and a few more route blocks calling async as outlined between 
CGR_LCR_REQ and CGR_LCR_REPLY





More information about the Users mailing list