Hi John,

If you have for a dialog hash= A:B and dlg_id=X, the relation is:
    X = A*2^32 + B

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 26.12.2014 11:06, John Nash wrote:
Hello Bogdan,

Probably I did not explain well. I am using OpenSIPS (1.12.0dev-notls (x86_64/linux))

When dialog is created I see the MI command output as ...
 opensipsctl fifo dlg_list_ctx
dialog:: *hash=3028:502141575*
        state:: 4
        user_flags:: 0
        timestart:: 1419578844
        datestart:: 2014-12-26 07:27:24
        timeout:: 1419582444
        dateout:: 2014-12-26 08:27:24
        callid:: a8d3a13820394340b2c6b54867126726
---------------- and so on -------------------------------------------------

But in database values are like ..
*dlg_id (This column is big int) = 13005663113863*
call_id = a8d3a13820394340b2c6b54867126726

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).

Am i using the correct code? May be I am using some "under construction" works?

John





On Fri, Dec 26, 2014 at 1:45 PM, Bogdan-Andrei Iancu <[email protected] <mailto:[email protected]>> wrote:

    It is the same value, but in var is kept ad string representation.

    Regards,
    Bogdan


    Sent from Samsung Mobile


    -------- Original message --------
    From: John Nash
    Date:26/12/2014 09:59 (GMT+02:00)
    To: Bogdan-Andrei Iancu
    Cc: OpenSIPS users mailling list
    Subject: Re: [OpenSIPS-Users] New Big int dlg_id of dialog table

    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

    On Fri, Dec 26, 2014 at 1:16 PM, Bogdan-Andrei Iancu
    <[email protected] <mailto:[email protected]>> wrote:

        Hi John,

        See the $DLG_did variable from the dialog module:
        http://www.opensips.org/html/docs/modules/1.11.x/dialog.html#id297237

        Regards,

        Bogdan-Andrei Iancu
        OpenSIPS Founder and Developer
        http://www.opensips-solutions.com

        On 26.12.2014 07:10, John Nash wrote:
        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


        _______________________________________________
        Users mailing list
        [email protected]  <mailto:[email protected]>
        http://lists.opensips.org/cgi-bin/mailman/listinfo/users




_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to