[OpenSIPS-Devel] calculating of hash_id in dialog module
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Wed Sep 3 20:10:33 CEST 2008
Hi Dror,
the algorithm to calculate the hash is a bit complicated to be fast
described.
May i ask why do you need to do this? because you can take this info
from DB table or MI command.
Regards,
Bogdan
Dror Wald wrote:
>
> Hi,
>
> I have a question regarding dlg->h_id in the dialog module.
>
> Is there a way to compute the hash_id (dlg->h_id ) from an external
> program based on the callid,from_tag, and to_tag values?
>
> Or, is it as far as I understand from the link_dlg() function,
> calculated based on the current situation of the hash table, and in
> other situation the value of hash_id might be different for the same
> called, from_tag and to_tag values.
>
>
>
> Here is an example:
>
> 1100 hash_entry
>
> 1158422147 hash_id
>
> 4BDE4E00799011DD8AB745000000C413 at 69.147.69.76
> <mailto:4BDE4E00799011DD8AB745000000C413 at 69.147.69.76> callid
>
> 1220429654 from_tag
>
> 15908 to_tag
>
> * hash size is probably 4096.
>
>
>
> Thanks,
>
> Dror
>
>
>
>
>
> ************************************************************************************
> This footnote confirms that this email message has been scanned by
> PineApp Mail-SeCure for the presence of malicious code, vandals &
> computer viruses.
> ************************************************************************************
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
More information about the Devel
mailing list