Hello, you can find some example KEMI configuration in the “misc/examples” directory, and probably also linked in the KEMI tutorials.
This should give you some hints. Cheers, Henning -- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.com<https://gilawa.com/> From: mohsen khashei <mkhas...@gmail.com> Sent: Friday, February 10, 2023 2:43 PM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org> Subject: [SR-Users] kemi equivalent config Hi all I have some existing kamailio config and I want to migrate to KEMI framework. I want to know what is the equivalent of this config in kemi JavaScript code: $avp(s:contact) = $hdr(Contact); $avp(s:contact_fix) = $hdr(Contact); avp_subst("$avp(s:contact_fix)", "/@([0-9]+).([0-9]+).([0-9]+).([0-9]+)/@$sel(cfg_get.kamailio.ss_ip)/gi<mailto:/@([0-9]+).([0-9]+).([0-9]+).([0-9]+)/@$sel(cfg_get.kamailio.ss_ip)/gi>"); remove_hf("Contact"); append_hf("Contact: $avp(s:contact_fix)\r\n"); t_on_reply("REG_FIX"); thanks for your attention. Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: