<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><tt>Hi John,<br>
<br>
If you have for a dialog hash= A:B and dlg_id=X, the relation
is:<br>
X = A*2^32 + B<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 26.12.2014 11:06, John Nash wrote:<br>
</div>
<blockquote
cite="mid:CAA4rGPzpP+Vv=68kJxQyB-osCeidyObO0pur+QLTs87qr-nkRg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hello Bogdan,<br>
<br>
Probably I did not explain well. I am using OpenSIPS
(1.12.0dev-notls (x86_64/linux))<br>
<br>
</div>
When dialog is created I see the MI command output as
...<br>
opensipsctl fifo dlg_list_ctx<br>
dialog:: <b>hash=3028:502141575</b><br>
state:: 4<br>
user_flags:: 0<br>
timestart:: 1419578844<br>
datestart:: 2014-12-26 07:27:24<br>
timeout:: 1419582444<br>
dateout:: 2014-12-26 08:27:24<br>
callid:: a8d3a13820394340b2c6b54867126726<br>
</div>
---------------- and so on
-------------------------------------------------<br>
<br>
</div>
But in database values are like ..<br>
</div>
<b>dlg_id (This column is big int) = 13005663113863</b><br>
</div>
call_id = a8d3a13820394340b2c6b54867126726<br>
<div>
<div><br>
</div>
<div>Even all dialog update queries (when i see debug=4) I can
see dialog is updated using the key dlg_id = 13005663113863
(Big int value) ...I think it is very very good to use a big
int value for unique dialog ID as DB updates will be much
faster. But I am unable to find some way to access this
dlg_id = 13005663113863 in script (I basically want to
update dialogs with some custom values).<br>
<br>
</div>
<div>Am i using the correct code? May be I am using some
"under construction" works?<br>
<br>
</div>
<div>John<br>
</div>
<div><br>
<br>
<div><br>
<div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Dec 26, 2014 at 1:45 PM,
Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:bogdan@opensips.org"
target="_blank">bogdan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>It is the same value, but in var is kept ad string
representation.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Bogdan</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div style="font-size:9px;color:#575757">Sent from
Samsung Mobile</div>
</div>
<div>
<div class="h5"><br>
<br>
-------- Original message --------<br>
From: John Nash <br>
Date:26/12/2014 09:59 (GMT+02:00) <br>
To: Bogdan-Andrei Iancu <br>
Cc: OpenSIPS users mailling list <br>
Subject: Re: [OpenSIPS-Users] New Big int dlg_id of
dialog table <br>
<br>
<div dir="ltr">this variable holds a string value for
dilog DID but in my table there is a field big int
which stores some kind of id <br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Dec 26, 2014 at
1:16 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:bogdan@opensips.org"
target="_blank">bogdan@opensips.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0
0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div><tt>Hi John,<br>
<br>
See the $DLG_did variable from the dialog
module:<br>
<a moz-do-not-send="true"
href="http://www.opensips.org/html/docs/modules/1.11.x/dialog.html#id297237"
target="_blank">http://www.opensips.org/html/docs/modules/1.11.x/dialog.html#id297237</a><br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<span> On 26.12.2014 07:10, John Nash wrote:<br>
</span></div>
<blockquote type="cite"><span>
<div dir="ltr">I was just wondering if
there is any way to get dlg_id value in
a script using some psudo variable. like
in earlier versions we had $DLG_did<br>
</div>
<br>
<fieldset></fieldset>
<br>
</span>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>