Skip to content

Commit

Permalink
tutorials/faq: list some of the header and body operations
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jul 30, 2024
1 parent 6bbae68 commit c08101f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/tutorials/faq/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,14 @@ for example, compiling only tls module:

📃 Kamailio is working always with the received SIP message (request or
reply). Changes done to headers or body are kept as a list of operations
to be applied before writing to the network. If you want changes to be
applied immediately, use **msg_apply_changes()** from textopsx module:
to be applied before writing to the network. Such changes can be adding
headers, removing headers, updating the content of headers, adding or removing
body, or updating body content.

- <http://kamailio.org/docs/modules/stable/modules/textopsx.html#textopsx.msg_apply_changes>
If you want changes to be applied immediately, use **msg_apply_changes()**
from textopsx module:

- [http://kamailio.org/docs/modules/stable/modules/textopsx.html#textopsx.msg_apply_changes](http://kamailio.org/docs/modules/stable/modules/textopsx.html#textopsx.msg_apply_changes)

Be careful with it and don't use it after record_route(), because this
function has to insert a header containing the IP address from the local
Expand Down

0 comments on commit c08101f

Please sign in to comment.