OpenSIPS IMS - Community Edition - S-CSCF
January 14, 2025 ยท View on GitHub
The Serving Call Session Control Function (S-CSCF) handles the UE registrations, manages users authentication, SIP sessions routing and external service integration.
The S-CSCF interacts with I-CSCF for registrations and server assignement, and with P-CSCF and AS (application servers) for calls routing.
Interfaces
The S-CSCF implements the following interfaces:
Mw- (defined in 3GPP TS 24.229) describes the SIP messages exchanged between the S-CSCF and I-CSCF, as well as with different AS (application servers).Cx- (defined in 3GPP TS 29.228) - Diameter interface between the S-CSCF and the IMS HSS. Supported Diameter commands are:MAR- Multimedia-Auth-Request sent by the S-CSCF to request security information for a particular user.MAA- Multimedia-Auth-Answer containing information used for digest/AKA authentication
Configuration
The S-CSCF can be configured through the environment variables defined here.
By default, the S-CSCF considers each number dialled as being a USER, and
handles it accordingly. Optionally, you can provision custom dialplan rules
that the S-CSCF can handle differently. These rules must have be provisioned in
the MySQL scscf database dialplan. The required fields in the database are:
dpid- dialplan ID, needs to be set to1match_op- matching operator -0if a string match is used,1if regexmatch_exp- the regular expression used to match the dialled numberrepl_exp- the way the dialled number should be handled. Currently supported values:USER: if the dialplan is a user, the call is routed back to a user, if registeredSERVICE: the call is sent to an internal service - currently not handledAPPLICATION: the call is sent to anApplication Server- currently not handled