Copyright © 2007 FhG FOKUS
Copyright © 2012 Smile Communications
Copyright © 2015 ng-voice GmbH
Table of Contents
List of Examples
Table of Contents
This module contains methods for IPSec initialisation/deinitialisation related for usage of Kamailio as a Proxy-CSCF.
IP address which the Proxy-CSCF will use for incoming/outgoing SIP traffic over IPSec.
Default value is "127.0.0.1"
Example 1.1. ipsec_listen_addr
parameter usage
... modparam("ims_ipsec_pcscf", "ipsec_listen_addr", "127.0.0.1") ...
Port number which will be bound for incoming (server) IPSec traffic.
Default value is 5963.
Example 1.2. ipsec_client_port
parameter usage
... modparam("ims_ipsec_pcscf", "ipsec_client_port", 5062) ...
Port number which will be bound for incoming (server) IPSec traffic.
Default value is 5063.
Example 1.3. ipsec_server_port
parameter usage
... modparam("ims_ipsec_pcscf", "ipsec_server_port", 5063) ...
Each IPSec tunnel has a unique system-wide identifier. This and the following option allows to tune the SPIs used by Kamailio in order to avoid collisions with other IPSec useres. If Kamailio is the only process on the system which uses IPSec, don't bother with this option.
Default value is 100.
Example 1.4. ipsec_spi_id_start
parameter usage
... modparam("ims_ipsec_pcscf", "ipsec_spi_id_start", 100) ...
This function creates IPSec SA and Policy based on the parameters sent in Security-Client header in the REGISTER message. It's called when OK is received. The function also adds Security-Server header to the REGISTER.
Meaning of the parameters is as follows:
domain - Logical domain within the registrar. If a database is used then this must be name of the table which stores the contacts.
The function processes redirects outgoing message via the IPSec tunnel initiated with ipsec_create().
Meaning of the parameters is as follows:
domain - Logical domain within the registrar. If a database is used then this must be name of the table which stores the contacts.
The function destroys IPSec tunnel, created with ipsec_create.
Meaning of the parameters is as follows:
domain - Logical domain within the registrar. If a database is used then this must be name of the table which stores the contacts.