uac: document limitation regarding uac_replace_* with loose_route and msg_apply_changes
authorHenning Westerholt <hw@kamailio.org>
Wed, 3 Apr 2019 07:05:32 +0000 (09:05 +0200)
committerHenning Westerholt <hw@kamailio.org>
Wed, 3 Apr 2019 07:05:32 +0000 (09:05 +0200)
src/modules/uac/doc/uac_admin.xml

index fe4046a..6e514ee 100644 (file)
                                SIP request. Try to save needed changes in a pseudovariable and
                                apply them once.
                        </para>
+                       <para>
+                               There is also a limitation regarding the use of the
+                               <quote>msg_apply_changes()</quote> function together with the
+                               <quote>uac_replace_*</quote> functions for messages that are
+                               loose-routed (e.g. Re-INVITE requests). In this case you need
+                               to call the <quote>loose_route()</quote> function after the
+                               replace and msg_apply_changes. Otherwise Kamailio can create
+                               replies with wrong From/To headers (e.g. for the 100 - Trying
+                               reply in the Re-INVITE example).
+                       </para>
                        </listitem>
                </itemizedlist>
        </section>