<div dir="ltr">Hi Giovanni,<div><br></div><div>I personally use PHP to parse the JSON formatted data - but most scripting and programming languages will have a way of doing it.</div><div><br></div><div>I would assume you could use the opensipsctrl (or opensips-cli) and MI JSON commands to get a script to control opensips - so it will be dependent on what control you have using those commands. You can be creative using shared variables that can be set using the opensipsctl/opensips-cli commands, to control the opensips configuration/logic.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 17 Dec 2021 at 16:47, Giovanni Maruzzelli <<a href="mailto:gmaruzz@gmail.com">gmaruzz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Fri, Dec 17, 2021 at 5:11 PM Giovanni Maruzzelli <<a href="mailto:gmaruzz@gmail.com" target="_blank">gmaruzz@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Fri, Dec 17, 2021 at 5:08 PM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<font face="monospace">You can attach $dlg_val()'s to the dialog.
These dialog vals are printed by the dlg_list_ctx MI cmd.<br>
<br></font></div></blockquote><div><br></div><div>I piggyback on this thread:<br>other than the <a href="https://opensips.org/docs/modules/3.1.x/json.html" target="_blank">https://opensips.org/docs/modules/3.1.x/json.html</a> there are docs, scripts, hints on advanced (eg, non trivial) json processing in OpenSIPS?</div><div><br></div><div>do it uses a library with extensive docs? or anything else to read?<br><br></div></div></div></blockquote><div><br></div><div>answer to myself: <a href="https://github.com/rbtylee/tutorial-jsonc/blob/master/tutorial/index.md" target="_blank">https://github.com/rbtylee/tutorial-jsonc/blob/master/tutorial/index.md</a><br><br>but... not sure it answers my questions about advanced usage INTO opensips (from the script)</div><div><br></div><div>-giovanni</div><div><br></div><div><br></div></div><div><br></div>-- <br><div dir="ltr">Sincerely,<br><br>Giovanni Maruzzelli<br>OpenTelecom.IT<br>cell: +39 347 266 56 18<br><br></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>