<div dir="ltr">Hi,<div><br></div><div>I am trying to monitor <b>uac </b>channels status periodically in kamailio config file.</div><div>I call 

uac.reg_dump  rpc command and result will be inside in  

$var(uac_channel) variable</div><div><br></div><div> jsonrpc_exec('{"jsonrpc": "2.0", "method": "uac.reg_dump"}');<br></div><div>      $var(uac_channel) = $jsonrpl(body);<br></div><div><br></div><div>it returns me json formatted result like below, it has a several channels info and their status <b>flags</b></div><div><br></div><div>{"jsonrpc":"2.0", "result":[ </div><div>{"l_uuid":"YY","l_username":"YY","l_domain":"YY","r_username":"YY",".,  "<b>flags</b>":16   },<br>{"l_uuid":"XX","l_username":"XX","l_domain":"XX","r_username":"XX",,... "<b>flags</b>":1 }}]}<br></div><div><br></div><div>I could not parse this result on kamailio.cfg file ! I want to learn channel that has a 16 value in flag attribute for example !!</div><div><br></div><div>Would you help me to figure out how I am gonna parse this json file please ?</div><div><br></div><div><br></div></div>