Module: kamailio Branch: master Commit: bae838eb61f9852f6ef70b2c3f0dcaf71d880105 URL: https://github.com/kamailio/kamailio/commit/bae838eb61f9852f6ef70b2c3f0dcaf7...
Author: Tsvetomir Dimitrov tsv.dimitrov@gmail.com Committer: Tsvetomir Dimitrov tsv.dimitrov@gmail.com Date: 2018-08-31T09:58:24+03:00
misc/examples/ims/pcscf: Add ifdef guards for ipsec_*() calls
---
Modified: misc/examples/ims/pcscf/route/mo.cfg Modified: misc/examples/ims/pcscf/route/register.cfg
---
Diff: https://github.com/kamailio/kamailio/commit/bae838eb61f9852f6ef70b2c3f0dcaf7... Patch: https://github.com/kamailio/kamailio/commit/bae838eb61f9852f6ef70b2c3f0dcaf7...
---
diff --git a/misc/examples/ims/pcscf/route/mo.cfg b/misc/examples/ims/pcscf/route/mo.cfg index 235b9f1275..e192249571 100644 --- a/misc/examples/ims/pcscf/route/mo.cfg +++ b/misc/examples/ims/pcscf/route/mo.cfg @@ -95,7 +95,9 @@ onreply_route[MO_reply] { remove_hf("C-Params"); append_hf("Contact: $ct;$hdr(C-Params)\r\n"); } +#!ifdef WITH_IPSEC ipsec_forward("location"); +#!endif # In case of 1xx and 2xx do NAT if(status=~"[12][0-9][0-9]") route(NATMANAGE); diff --git a/misc/examples/ims/pcscf/route/register.cfg b/misc/examples/ims/pcscf/route/register.cfg index b2d1f92638..c10979d84a 100644 --- a/misc/examples/ims/pcscf/route/register.cfg +++ b/misc/examples/ims/pcscf/route/register.cfg @@ -156,13 +156,15 @@ onreply_route[REGISTER_reply] xlog("L_DBG", "REGISTER SUCCESS[$ci] took $var(stat_add)ms\n"); update_stat("register_success", "+1"); update_stat("register_time", "$var(stat_add)"); - ipsec_forward("location"); +#!ifdef WITH_IPSEC + ipsec_forward("location"); } else { if (t_check_status("401")) { ipsec_create("location"); - } - } + } +#!endif + } exit; }