<div dir="ltr"><div><div>Hi All,<br><br></div>I am configuring Kamailio version 4.4 with jsonrpc-s and xhttp module. My aim is to use Kamailio commands using RPC from a remote server. I need help to solve error. After send rpc command, I got execution error in response. <br><br></div>I am attaching code in kamailio.cfg file for jsonrp.<br><br>event_route[xhttp:request] {<br>        if(src_ip!=127.0.0.1){<br>                xhttp_reply("403", "Forbidden", "text/html",<br>                        "<html><body>Not allowed from $si</body></html>"<br>                );<br>                exit;<br>        }<br>        if ($hu =~ "^/RPC"){<br>                xlog("json rpc dispatch");<br>                # xlog($jsonrpl(method));<br>                jsonrpc_exec('{"jsonrpc": "2.0", "method": "dispatcher.reload", "id": 1}');<br>                jsonrpc_dispatch();<br>                # xlog($jsonrpl(code));<br>                # xlog($jsonrpl(text));<br>                # xlog($jsonrpl(body));<br>                xhttp_reply("200", "OK", "text/html", "<html><body> $jsonrpl(text), $jsonrpl(body)</body></html>");<br>        } else {<br>                xhttp_reply("200", "OK", "text/html",<br>            "<html><body>Wrong URL $hu</body></html>");<br>        }<br>        return;<br>} <br clear="all"><div><div><div><div><div class="gmail_signature"><div dir="ltr"><span><div><div dir="ltr"><div><div dir="ltr"><br></div><div>Also, I am attaching logs. which could help you.<br><br><br></div><div dir="ltr"><div dir="ltr" style="margin-left:0pt"><table style="border:medium none;border-collapse:collapse" width="544" height="121"><colgroup><col width="210"><col width="383"></colgroup><tbody><tr style="height:105pt"><td style="border-right:1pt solid rgb(67,67,67);vertical-align:top;padding:5pt"><br><img src="https://lh6.googleusercontent.com/1EeSRIBMia3QmPZhUvxFknGJ5b_4UJa8SXO0OIm9muw7wttpZPtvGuiMY_Opjlht4dRTNlWqcSkSZf4u8Dmae8uanJhwcEeg8lmDBOlpdz8lYM3ge--xCQ73ulG8iZ6rQcQw07P_" style="border: medium none;" width="118" height="20"><h3 dir="ltr" style="line-height:1.38;margin-top:14pt;margin-bottom:4pt"><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">If you can dream it, we will deliver it.</span></h3><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;margin-right:53.8996pt"><a href="https://www.facebook.com/linteltechnologies/" style="text-decoration:none" target="_blank"><span style="font-size:11pt;font-family:Arial;color:rgb(17,85,204);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh5.googleusercontent.com/uA-Th9lda--CrZvzMpQwK3qKK9eucz14xxdhcwx2v6RsrQypIqHl-rhQXWk37ASmTV5p2jQ7EM1Ulj1bAWAYesAK7FJ3dw1Fg-JinNqGjRIbqpbIVSUyVv9AdVr4XhmjqJW188HT" style="border: medium none;" width="28" height="28"></span></a><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"> </span><a href="https://www.linkedin.com/company/7045679/" style="text-decoration:none" target="_blank"><span style="font-size:11pt;font-family:Arial;color:rgb(17,85,204);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh4.googleusercontent.com/pZ7HMm01Iz9g7s_GUIr_pN0v3HIwflimcRiFkgI9n3LvHWEgmXvFIxI4qt3jRhnD51opG92zNqieH4deTRM88atlNFA4JIOySuo4TnJVxgM-McC-QjtyCs-D35OaljlXbeqMhqj1" style="border: medium none;" width="29" height="29"></span></a><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"> </span><a href="http://blog.lintel.in/" style="text-decoration:none" target="_blank"><span style="font-size:11pt;font-family:Arial;color:rgb(17,85,204);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh5.googleusercontent.com/fBD0gQloDlqF3JUq4XtsQ1EI2aS20hxZRgFSwfdgxMuAs95dvG49K2o-MVakjZxLagsKfYczDwQYM9w-gm_00rqpnmwnDIXGSfHUCid8ZOd1JJcbAkJqVKvNsGO0h9bsVSif0QXg" style="border: medium none;" width="28" height="28"></span></a></p></td><td style="border-left:1pt solid rgb(67,67,67);vertical-align:top;padding:5pt"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Deepen Patel</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Python Developer</span></p><br><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">A</span><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">  507, Ashwamegh Elegance-2, Beside Central Mall,</span></p><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Ahmedabad - 380015 Gujarat, India</span></p><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">P</span><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"> +1(281) 205-9247  </span><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">M</span><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"> +91-898-077-3553</span></p><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">E</span><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"> <a href="mailto:deepen@lintelindia.com" target="_blank">deepen@lintelindia.com</a>  </span></p><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Skype</span><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"> deepenpatel.lintel </span><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">W</span><a href="http://lintel.in" style="text-decoration:none" target="_blank"><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"> </span></a><a href="http://lintel.in/" style="text-decoration:none" target="_blank"><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">http://lintel.in</span></a></p></td></tr></tbody></table></div><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;margin-right:53.8996pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:10pt;font-family:Ubuntu;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">The science of today is Technology of tomorrow.</span></p></div></div></div></div></span></div></div></div>
</div></div></div></div>