Hello,
On 14/07/16 11:02, Marino Mileti 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?
you can send a xmlrpc, jsonrpc or just http request to kamailio and it will result is executing a route or event_route inside kamailio.cfg, from where you can execute other sub-routes. See xmlrpc, jsonrpc-s or xhttp modules.
Obviously, you can send a sip message with tools like sipsak or sipp from command line and handle it inside request_route to execute what route block you want.
Sometimes it may just suit executing a route block periodically -- for that see rtimer module.
Cheers, Daniel
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 mailto:marino.mileti@alice.it/
/ /
/cid:006a01cb6b0e$67eecdae$_CDOSYS2.0//Reduce your energy consumption and keep polar bears on ice!/
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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users