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
<http://www.kamailio.org/docs/modules/4.3.x/modules/uac.html#uac.r.uac.reg_refresh>
.
Regards,
Sammy
On Thu, Jul 14, 2016 at 5:02 AM, Marino Mileti <marino.mileti(a)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(a)alice.it <marino.mileti(a)alice.it>*
*[image: cid:006a01cb6b0e$67eecdae$_CDOSYS2.0]**Reduce your energy
consumption and keep polar bears on ice!*
------------------------------
[image: Avast logo]
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
Questa e-mail è stata controllata per individuare virus con Avast
antivirus.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users