collapse history of multiple calls to/from same peer

This commit is contained in:
Juha Heinanen
2018-05-29 16:26:04 +03:00
parent 0c922eb543
commit e4fcb302ee
9 changed files with 86 additions and 50 deletions
@@ -22,6 +22,13 @@ class UserAgent (val uap: String) {
return null
}
fun findAorIndex(uas: ArrayList<UserAgent>, aor: String): Int? {
for (i in uas.indices) {
if (uas[i].aor == aor) return i
}
return null
}
fun register(uas: ArrayList<UserAgent>) {
for (ua in uas) {
if (ua_register(ua.uap) != 0)