<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
On 3/23/12 2:00 PM, Charles Chance wrote:
<blockquote cite="mid:E1SB47u-0002Tk-2u@www.kamailio.org"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 11 (filtered
medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<div class="Section1">
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size:10.0pt;
font-family:Arial">Hi all,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size:10.0pt;
font-family:Arial">I was wondering if anyone could offer
any advice please.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">We are using
the dialog module and need to be able to find
out whether another dialog exists within a particular
profile and having a
specific value, so that we can send the new call to the
same gateway. As far as
I am aware, the only way to see other dialogs from the
request route is to query
the database (having set db mode to realtime). This is ok,
but the
profile/value is not stored in the database table. Is
there a way of fetching
the information that I am missing, or should we just add
some customisation to
the module so that it also writes this information to db?</span></font></p>
</div>
</blockquote>
in the last version you can attach variables to dialog and they are
stored in database -- but that requires you to upgrade. Also, devel
version saves the profiles in database, in a json format.<br>
<br>
What you can do with 3.0.x:<br>
- use sqlops to write to db table the info you need -- you would
have to update db based on call events, such as initial invite:
insert record to db; 200ok to initial invite, confirm the dialog in
the record; bye: delete the db record; you need to delete also for
the case of negative reply to invite. You can use rtimer to delete
old records (those that don't get bye). This is pretty much what
dialog module does, but hides it in the c code -- all doable in the
config<br>
- use htable module to store the details in memory instead of a db
table<br>
<br>
In summary: upgrading to 3.2.x makes your life much easier. Next
major release comes with a better dialog storage, you may want to
play with it as well.<br>
<br>
Cheers,<br>
Daniel<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
<a class="moz-txt-link-freetext" href="http://www.asipto.com/index.php/kamailio-advanced-training/">http://www.asipto.com/index.php/kamailio-advanced-training/</a></pre>
</body>
</html>