replace(re, txt)
replace
usage... replace("server", "Kamailio SIP Proxy"); ...
Hello,
there are other functions in textops module, e.g. subst(..) that can be used to do replacements.
Have a look to this module for more details and examples. The approach of deleting and adding it new works as well, of course.
Cheers,
Henning
--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com
From: Shah Hussain Khattak via sr-users <sr-users@lists.kamailio.org>
Sent: Donnerstag, 9. Mai 2024 08:16
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Cc: Shah Hussain Khattak <shahhusayn@msn.com>
Subject: [SR-Users] Is there any way to modify the Refer-To header username?
Hello Experts,
I wanted to check, is there any way to modify the username part of the Refer-To header in Kamailio? For example, I am getting the following header:
the username part is missing.
Can I add a username inside it? For example, change it to
I could not find any solution in the mailing list, the only way was to remove the header and then re-add it.
Thank you!
Regards,
Shah Hussain