]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_nat: Adjust when contact should be rewritten. 36/736/1
authorMark Michelson <mmichelson@digium.com>
Fri, 26 Jun 2015 21:12:33 +0000 (16:12 -0500)
committerMark Michelson <mmichelson@digium.com>
Fri, 26 Jun 2015 21:17:35 +0000 (16:17 -0500)
commit24eec5a10b43c7642ac555b75ed05b054b5e51df
treeaf95808472285157e58ee09dc14c6c3571886fab
parent0a1700d286ad130ab29ce70e8b291fa1f2f567a7
res_pjsip_nat: Adjust when contact should be rewritten.

A previous change made the contact only get rewritten if the dialog's
route set was not marked frozen. Unfortunately, while the intent of this
is correct, the dialog's route set actually gets marked as frozen
earlier than expected, especially for UAS dialogs.

Instead, the idea is that the contact needs to not be rewritten if there
is a pre-existing route set on the dialog. This is now accomplished by
checking the dialog's route set list instead of checking if the route
set is frozen.

Doing this causes some broken tests to begin passing again.

ASTERISK-25196
Reported by Mark Michelson

Change-Id: I525ab251fd40a52ede327a52a2810a56deb0529e
res/res_pjsip_nat.c