<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi, Rodrigo!<br>
<br>
The idea is pretty simple, your program has to:<br>
1. Create a reply fifo<br>
2. Build the command as you have in the example<br>
3. Write the command in the fifo<br>
4. Get the response from the reply fifo<br>
<br>
I quickly wrote some examples for bash[1] and C[2] that do the
same thing. Let me know if you have further questions.<br>
<br>
[1] <a class="moz-txt-link-freetext" href="https://gist.github.com/razvancrainea/6c63f82f885e98db0e12">https://gist.github.com/razvancrainea/6c63f82f885e98db0e12</a><br>
[2] <a class="moz-txt-link-freetext" href="https://gist.github.com/razvancrainea/0a7ed5731ebda4df17f3">https://gist.github.com/razvancrainea/0a7ed5731ebda4df17f3</a><br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 09/15/2015 05:12 PM, Rodrigo Pimenta
Carvalho wrote:<br>
</div>
<blockquote
cite="mid:BLUPR02MB16834719E6A096DFAD64CC36B55C0@BLUPR02MB1683.namprd02.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Dear OpenSIPS-Users.</p>
<p><br>
</p>
<p>I have just completed a study about the utility of and how to
use mi_fifo and dialog.</p>
<p>Now I know what I will have to do to terminate dialog by
means of an external application or script. And i know how to
invoke the external application from OpenSIPS.</p>
<p><br>
</p>
<p>However, I didn´t found good examples on how to use <i>MI dlg_list</i>
and <i>
MI dlg_end_dl</i>g commands, via mi_fifo.</p>
<p>That is, how exactly use such commands in an application
source code? How exactly use such commands, for example in C
or C++, or QT, or Python, etc?</p>
<p><br>
</p>
<p>In the OpenSIPS documentation we have, for example:</p>
<p>:dlg_list:_reply_fifo_file_</p>
<p>_empty_line_</p>
<p><br>
</p>
<p>But, how to use it in programming language? </p>
<p><br>
</p>
<p>Have I just to write the commands into the FIFO file as it
is? If so, maybe I have understood how to use it.</p>
<p><br>
</p>
<p><br>
</p>
<p>Any hint will be very helpful!</p>
<p><br>
</p>
<p>Best regards.</p>
<p><br>
</p>
<p>P.S.:</p>
<p>The topics I have studied are:</p>
<p><a moz-do-not-send="true"
href="http://www.opensips.org/Documentation/Interface-MI-2-2"
id="LPlnk935361">http://www.opensips.org/Documentation/Interface-MI-2-2</a>
(this page has an example on how to use xmlrpc in a
programming language.)</p>
<p><a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Modules-2-2">http://www.opensips.org/Documentation/Modules-2-2</a></p>
<p><a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Interface-CoreMI-2-2">http://www.opensips.org/Documentation/Interface-CoreMI-2-2</a></p>
<p><a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.2.x/dialog.html#id296877">http://www.opensips.org/html/docs/modules/2.2.x/dialog.html#id296877</a></p>
<p><a moz-do-not-send="true"
href="http://www.opensips.org/html/docs/modules/2.2.x/mi_fifo.html"
id="LPlnk414144"
title="http://www.opensips.org/html/docs/modules/2.2.x/mi_fifo.html
Ctrl+Clique ou toque para seguir o link">http://www.opensips.org/html/docs/modules/2.2.x/mi_fifo.html</a></p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper"
style="font-family:Calibri,Arial,Helvetica,sans-serif;
font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: +55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>