← Volver al índice de módulos

textops

The module implements text based operations over the SIP message processed by Kamailio. SIP is a text based protocol and the module provides a large set of very useful functions to manipulate the mess
🔀 Enrutamiento y Proxy SIP Kamailio 6.1 25 funciones

Descripción general

The module implements text based operations over the SIP message processed by Kamailio. SIP is a text based protocol and the module provides a large set of very useful functions to manipulate the message at text level, e.g., regular expression search, replace or substitutions, checks for method type, header presence, insert of new header and date, string comparisons, multi-part body operations, etc. If not stated otherwise, the regular expressions parameters for search, replace or substitute have to be in POSIX format. For PCRE regular expression matching, see the pcre or dialplan modules.

Documentación oficial: https://www.kamailio.org/docs/modules/stable/modules/textops.html
Código fuente: https://github.com/kamailio/kamailio/tree/master/src/modules/textops

Funciones exportadas

search(re)

4.2. search_body(re) 4.3. search_str(text, re) 4.4. search_hf(hf, re, flags) 4.5. search_append(re, txt) 4.6. search_append_body(re, txt) 4.7. replace(re, txt) 4.8. replace_body(re, txt) 4.9. replace_hdrs(re, txt) 4.10. replace_all(re, txt) 4.11. rep

search_body(re)

4.3. search_str(text, re) 4.4. search_hf(hf, re, flags) 4.5. search_append(re, txt) 4.6. search_append_body(re, txt) 4.7. replace(re, txt) 4.8. replace_body(re, txt) 4.9. replace_hdrs(re, txt) 4.10. replace_all(re, txt) 4.11. replace_body_all(re, txt

search_str(text, re)

4.4. search_hf(hf, re, flags) 4.5. search_append(re, txt) 4.6. search_append_body(re, txt) 4.7. replace(re, txt) 4.8. replace_body(re, txt) 4.9. replace_hdrs(re, txt) 4.10. replace_all(re, txt) 4.11. replace_body_all(re, txt) 4.12. replace_body_atonc

search_hf(hf, re, flags)

4.5. search_append(re, txt) 4.6. search_append_body(re, txt) 4.7. replace(re, txt) 4.8. replace_body(re, txt) 4.9. replace_hdrs(re, txt) 4.10. replace_all(re, txt) 4.11. replace_body_all(re, txt) 4.12. replace_body_atonce(re, txt) 4.13. replace_str(m

search_append(re, txt)

4.6. search_append_body(re, txt) 4.7. replace(re, txt) 4.8. replace_body(re, txt) 4.9. replace_hdrs(re, txt) 4.10. replace_all(re, txt) 4.11. replace_body_all(re, txt) 4.12. replace_body_atonce(re, txt) 4.13. replace_str(match, repl, mode) 4.14. repl

search_append_body(re, txt)

4.7. replace(re, txt) 4.8. replace_body(re, txt) 4.9. replace_hdrs(re, txt) 4.10. replace_all(re, txt) 4.11. replace_body_all(re, txt) 4.12. replace_body_atonce(re, txt) 4.13. replace_str(match, repl, mode) 4.14. replace_body_str(match, repl, mode) 4

replace(re, txt)

4.8. replace_body(re, txt) 4.9. replace_hdrs(re, txt) 4.10. replace_all(re, txt) 4.11. replace_body_all(re, txt) 4.12. replace_body_atonce(re, txt) 4.13. replace_str(match, repl, mode) 4.14. replace_body_str(match, repl, mode) 4.15. replace_hdrs_str(

replace_body(re, txt)

4.9. replace_hdrs(re, txt) 4.10. replace_all(re, txt) 4.11. replace_body_all(re, txt) 4.12. replace_body_atonce(re, txt) 4.13. replace_str(match, repl, mode) 4.14. replace_body_str(match, repl, mode) 4.15. replace_hdrs_str(match, repl, mode) 4.16. su

replace_hdrs(re, txt)

4.10. replace_all(re, txt) 4.11. replace_body_all(re, txt) 4.12. replace_body_atonce(re, txt) 4.13. replace_str(match, repl, mode) 4.14. replace_body_str(match, repl, mode) 4.15. replace_hdrs_str(match, repl, mode) 4.16. subst('/re/repl/flags') 4.17.

replace_all(re, txt)

4.11. replace_body_all(re, txt) 4.12. replace_body_atonce(re, txt) 4.13. replace_str(match, repl, mode) 4.14. replace_body_str(match, repl, mode) 4.15. replace_hdrs_str(match, repl, mode) 4.16. subst('/re/repl/flags') 4.17. subst_uri('/re/repl/flags'

replace_body_all(re, txt)

4.12. replace_body_atonce(re, txt) 4.13. replace_str(match, repl, mode) 4.14. replace_body_str(match, repl, mode) 4.15. replace_hdrs_str(match, repl, mode) 4.16. subst('/re/repl/flags') 4.17. subst_uri('/re/repl/flags') 4.18. subst_user('/re/repl/fla

replace_body_atonce(re, txt)

4.13. replace_str(match, repl, mode) 4.14. replace_body_str(match, repl, mode) 4.15. replace_hdrs_str(match, repl, mode) 4.16. subst('/re/repl/flags') 4.17. subst_uri('/re/repl/flags') 4.18. subst_user('/re/repl/flags') 4.19. subst_body('/re/repl/fla

replace_str(match, repl, mode)

4.14. replace_body_str(match, repl, mode) 4.15. replace_hdrs_str(match, repl, mode) 4.16. subst('/re/repl/flags') 4.17. subst_uri('/re/repl/flags') 4.18. subst_user('/re/repl/flags') 4.19. subst_body('/re/repl/flags') 4.20. subst_hf(hf, subexp, flags

replace_body_str(match, repl, mode)

4.15. replace_hdrs_str(match, repl, mode) 4.16. subst('/re/repl/flags') 4.17. subst_uri('/re/repl/flags') 4.18. subst_user('/re/repl/flags') 4.19. subst_body('/re/repl/flags') 4.20. subst_hf(hf, subexp, flags) 4.21. subst_v(itext, subexp, ovp) 4.22.

replace_hdrs_str(match, repl, mode)

4.16. subst('/re/repl/flags') 4.17. subst_uri('/re/repl/flags') 4.18. subst_user('/re/repl/flags') 4.19. subst_body('/re/repl/flags') 4.20. subst_hf(hf, subexp, flags) 4.21. subst_v(itext, subexp, ovp) 4.22. set_body(txt, content_type) 4.23. set_body

subst('/re/repl/flags')

4.17. subst_uri('/re/repl/flags') 4.18. subst_user('/re/repl/flags') 4.19. subst_body('/re/repl/flags') 4.20. subst_hf(hf, subexp, flags) 4.21. subst_v(itext, subexp, ovp) 4.22. set_body(txt, content_type) 4.23. set_body_hex(htxt, content_type) 4.24.

subst_uri('/re/repl/flags')

4.18. subst_user('/re/repl/flags') 4.19. subst_body('/re/repl/flags') 4.20. subst_hf(hf, subexp, flags) 4.21. subst_v(itext, subexp, ovp) 4.22. set_body(txt, content_type) 4.23. set_body_hex(htxt, content_type) 4.24. set_reply_body(txt, content_type)

subst_user('/re/repl/flags')

4.19. subst_body('/re/repl/flags') 4.20. subst_hf(hf, subexp, flags) 4.21. subst_v(itext, subexp, ovp) 4.22. set_body(txt, content_type) 4.23. set_body_hex(htxt, content_type) 4.24. set_reply_body(txt, content_type) 4.25. set_reply_body_hex(txt, cont

subst_body('/re/repl/flags')

4.20. subst_hf(hf, subexp, flags) 4.21. subst_v(itext, subexp, ovp) 4.22. set_body(txt, content_type) 4.23. set_body_hex(htxt, content_type) 4.24. set_reply_body(txt, content_type) 4.25. set_reply_body_hex(txt, content_type) 4.26. filter_body(content

subst_hf(hf, subexp, flags)

4.21. subst_v(itext, subexp, ovp) 4.22. set_body(txt, content_type) 4.23. set_body_hex(htxt, content_type) 4.24. set_reply_body(txt, content_type) 4.25. set_reply_body_hex(txt, content_type) 4.26. filter_body(content_type) 4.27. append_to_reply(txt)

subst_v(itext, subexp, ovp)

4.22. set_body(txt, content_type) 4.23. set_body_hex(htxt, content_type) 4.24. set_reply_body(txt, content_type) 4.25. set_reply_body_hex(txt, content_type) 4.26. filter_body(content_type) 4.27. append_to_reply(txt) 4.28. append_hf(txt[, hdr]) 4.29.

set_body(txt, content_type)

4.23. set_body_hex(htxt, content_type) 4.24. set_reply_body(txt, content_type) 4.25. set_reply_body_hex(txt, content_type) 4.26. filter_body(content_type) 4.27. append_to_reply(txt) 4.28. append_hf(txt[, hdr]) 4.29. insert_hf(txt[, hdr]) 4.30. append

set_body_hex(htxt, content_type)

4.24. set_reply_body(txt, content_type) 4.25. set_reply_body_hex(txt, content_type) 4.26. filter_body(content_type) 4.27. append_to_reply(txt) 4.28. append_hf(txt[, hdr]) 4.29. insert_hf(txt[, hdr]) 4.30. append_urihf(prefix, suffix) 4.31. is_present

set_reply_body(txt, content_type)

4.25. set_reply_body_hex(txt, content_type) 4.26. filter_body(content_type) 4.27. append_to_reply(txt) 4.28. append_hf(txt[, hdr]) 4.29. insert_hf(txt[, hdr]) 4.30. append_urihf(prefix, suffix) 4.31. is_present_hf(hf_name) 4.32. is_present_hf_pv(hf_n

set_reply_body_hex(txt, content_type)

4.26. filter_body(content_type) 4.27. append_to_reply(txt) 4.28. append_hf(txt[, hdr]) 4.29. insert_hf(txt[, hdr]) 4.30. append_urihf(prefix, suffix) 4.31. is_present_hf(hf_name) 4.32. is_present_hf_pv(hf_name) 4.33. is_present_hf_re(hf_name_re) 4.34

Autores y contribuidores

Andrei Pelinescu-OnciulFhG FOKUS <pelinescu-onciul@fokus.fraunhofer.de>Andrei Pelinescu-Onciul <pelinescu-onciul@fokus.fraunhofer.de>Daniel-Constantin Mierla <miconda@gmail.com>Juha Heinanen <jh@tutpro.com>Ovidiu Sas <osas@voipembedded.com>

Copyright © 2003 FhG FOKUS

Módulos relacionados

acc acc_diameter acc_json acc_radius alias_db app_jsdt carrierroute cfgt