]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Use hash for contact object identity instead of Contact URI. 12/1212/1
authorJoshua Colp <jcolp@digium.com>
Tue, 8 Sep 2015 12:21:11 +0000 (09:21 -0300)
committerJoshua Colp <jcolp@digium.com>
Tue, 8 Sep 2015 12:23:28 +0000 (09:23 -0300)
commit5469caa9ddf002d2e75b5fe5dec0c4dbebea1d1e
tree793a3ed369ca52fcd5758565ae07c75ffa3d00aa
parent24be90c6d7806757c48331233133a74f7ad1482e
res_pjsip: Use hash for contact object identity instead of Contact URI.

In the wild it is possible for Contact URIs to be quite long as
parameters can exist on them. This can present a problem when storing
them in the AstDB as the URI is used as part of the object name and
there is a fixed length limit for the AstDB. This will cause
the contact to not get stored.

This change uses the MD5 hash of the Contact URI as part of the
object name instead. This has a fixed length which is guaranteed
to not exceed the AstDB length limit.

ASTERISK-25295 #close

Change-Id: Ie8252a75331ca00b41b9f308f42cc1fbdf701a02
res/res_pjsip/location.c