Module: kamailio Branch: 4.2 Commit: 4faa50094a44d8c06c2fd3987f107731530eae47 URL: https://github.com/kamailio/kamailio/commit/4faa50094a44d8c06c2fd3987f107731530eae47
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2015-07-29T12:30:39+02:00 sl: extended docs for sl_send_reply() (cherry picked from commit 29aa683f7c3d507a88b83ecd84d9023c5e162ab1) (cherry picked from commit 1a08fa07b601c5f9636c6dba223230ec91301768) --- Modified: modules/sl/README Modified: modules/sl/doc/sl_functions.xml --- Diff: https://github.com/kamailio/kamailio/commit/4faa50094a44d8c06c2fd3987f107731530eae47.diff Patch: https://github.com/kamailio/kamailio/commit/4faa50094a44d8c06c2fd3987f107731530eae47.patch --- diff --git a/modules/sl/README b/modules/sl/README index 5d7723d..a45dc33 100644 --- a/modules/sl/README +++ b/modules/sl/README @@ -191,6 +191,17 @@ modparam("sl", "bind_tm", 0) # feature disabled text reason. The reply is sent stateless, totally independent of the Transaction module and with no retransmission for the INVITE's replies. + If the code is in the range 300-399 (redirect reply), the current + destination set is appended to the reply as Contact headers. The + destination set contains the request URI (R-URI), if it is modified + compared to the received one, plus the branches added to the request + (e.g., after an append_branch() or lookup("location")). If the R-URI + was changed but it is not desired to be part of the destination set, it + can be reverted using the function revert_uri(). + + Custom headers to the reply can be added using append_to_reply() + function from textops module. + Meaning of the parameters is as follows: * code - Return code. * reason - Reason phrase. diff --git a/modules/sl/doc/sl_functions.xml b/modules/sl/doc/sl_functions.xml index 1420e86..76c9067 100644 --- a/modules/sl/doc/sl_functions.xml +++ b/modules/sl/doc/sl_functions.xml @@ -16,6 +16,19 @@ of the Transaction module and with no retransmission for the INVITE's replies. </para> + <para> + If the code is in the range 300-399 (redirect reply), the current + destination set is appended to the reply as Contact headers. + The destination set contains the request URI (R-URI), if it is + modified compared to the received one, plus the branches added to the + request (e.g., after an append_branch() or lookup("location")). + If the R-URI was changed but it is not desired to be part of the + destination set, it can be reverted using the function revert_uri(). + </para> + <para> + Custom headers to the reply can be added using append_to_reply() + function from textops module. + </para> <para>Meaning of the parameters is as follows:</para> <itemizedlist> <listitem> _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
