Hi Marino,

How do you mean execute a route !? like enable a route for all calls onwards after the RPC command execution ? or for a specific call engage that route ?

If this is to enable/disable a particular route for ALL calls based on a RPC command I'd make use of some DB or memcache variable to trigger this route i.e

if(redis_cmd("srvN", "GET toggle_route", "r")){
      $avp(signal) =   $redis(r=>value);
      if($avp(signal) =~ 'true') {
           route(REMOTE_TEST);
      }
}

I used Redis, you can see if any RPC command can let you modify value of an AVP directly.

For your second question check RPC commands uac.reg_refresh.

Regards,
Sammy

On Thu, Jul 14, 2016 at 5:02 AM, Marino Mileti <marino.mileti@alice.it> wrote:

Hi guys,

 

I've two question regarding rpc command.

 

Is it possible to "execute" a specific route (for example my route[REMOTE_TEST]) using a rpc command by kamcmd?

 

If not exist some other tricks to do this?

 

Another question...regarding uac module...

When Kamailio starts the UAC module makes a REGISTER according to database...and periodically refresh this registration. Is it possible to "force" a refresh with rpc command by kamcmd?

 

Many thanks!

 

Marino Maria Mileti

marino.mileti@alice.it

 

cid:006a01cb6b0e$67eecdae$_CDOSYS2.0Reduce your energy consumption and keep polar bears on ice! 

 




Avast logo

Questa e-mail è stata controllata per individuare virus con Avast antivirus.
www.avast.com



_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users