<html><head></head><body><div class="ydp4e999c5yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
        <div><br></div><div dir="ltr" data-setdir="false">Thanks Alex !. I think that will work for me.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">-RK</div>
        
        </div><div id="yahoo_quoted_9705386126" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Monday, January 13, 2020, 08:14:53 PM PST, Alex Balashov <abalashov@evaristesys.com> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div>Sorry, that should have been jsonrpc_exec().<br clear="none"><br clear="none">On Mon, Jan 13, 2020 at 11:12:34PM -0500, Alex Balashov wrote:<br clear="none"><br clear="none">> On Tue, Jan 14, 2020 at 04:05:48AM +0000, Rupesh Kumar wrote:<br clear="none">> <br clear="none">> > I know the uac module can send custom requests via uac_req_send, but<br clear="none">> > can I invoke this via a kamcmd or kamctl command ?Any pointers/clues<br clear="none">> > would be  a great help.<br clear="none">> <br clear="none">> I'm not sure if there's an RPC command, but you can trigger such an<br clear="none">> action via a custom HTTP call, i.e. via xhttp:<br clear="none">> <br clear="none">> <a shape="rect" href="https://kamailio.org/docs/modules/5.3.x/modules/xhttp.html#xhttp.f.xhttp_reply" target="_blank">https://kamailio.org/docs/modules/5.3.x/modules/xhttp.html#xhttp.f.xhttp_reply</a><br clear="none">> <br clear="none">> Get this module set up, add an event route with this functionality, i.e.<br clear="none">> <br clear="none">>    event_route[xhttp:request] {<br clear="none">>       # Possibly some authentication.<br clear="none">> <br clear="none">>       if($hu =~ '^/send_notify') {<br clear="none">>           # Access all registered contacts via DB call to `location` or <br clear="none">>           # via json_exec() to `ul.dump` RPC command or whatnot.[1]<br clear="none">> <br clear="none">>           ...<br clear="none">> <br clear="none">>           uac_req_send();<br clear="none">>           exit;<br clear="none">>       }<br clear="none">>    }<br clear="none">> <br clear="none">> Then send an HTTP request to this route, i.e.<br clear="none">> <br clear="none">> # curl ... <a shape="rect" href="http://your_kamailio_tcp_listener:5060/send_notify" target="_blank">http://your_kamailio_tcp_listener:5060/send_notify</a><br clear="none">> <br clear="none">> -- Alex<br clear="none">> <br clear="none">> [1] <a shape="rect" href="https://kamailio.org/docs/modules/5.3.x/modules/jsonrpcs.html#jsonrpcs.f.jsonrpc_exec" target="_blank">https://kamailio.org/docs/modules/5.3.x/modules/jsonrpcs.html#jsonrpcs.f.jsonrpc_exec</a><br clear="none">> <br clear="none">> -- <br clear="none">> Alex Balashov | Principal | Evariste Systems LLC<br clear="none">> <br clear="none">> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) <br clear="none">> Web: <a shape="rect" href="http://www.evaristesys.com/, " target="_blank">http://www.evaristesys.com/, </a><a shape="rect" href="http://www.csrpswitch.com/" target="_blank">http://www.csrpswitch.com/</a><div class="yqt9404535391" id="yqtfd43071"><br clear="none"><br clear="none">-- <br clear="none">Alex Balashov | Principal | Evariste Systems LLC<br clear="none"><br clear="none">Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) <br clear="none">Web: <a shape="rect" href="http://www.evaristesys.com/, " target="_blank">http://www.evaristesys.com/, </a><a shape="rect" href="http://www.csrpswitch.com/" target="_blank">http://www.csrpswitch.com/</a><br clear="none"><br clear="none">_______________________________________________<br clear="none">Kamailio (SER) - Users Mailing List<br clear="none"><a shape="rect" ymailto="mailto:sr-users@lists.kamailio.org" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br clear="none"><a shape="rect" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br clear="none"></div></div>
            </div>
        </div></body></html>