IMS CSCF Configuration

From YateBTS
Jump to: navigation, search

YateUCN IMS CSCF Configuration

Configurable options

Required

  • SIP listeners for UE access to P-CSCF. IPv6 and/or IPv4 addresses should be set for UDP and TCP protocols
  • Local Diameter identity (realm and host)
  • Peer Diameter host. The peer may be a Diameter routing/proxy/redirect agent or the HSS itself
  • Diameter connection data
  • Core network (HSS) access rules
  • Country code (used to build a MSISDN from non E.164 numbers). This value is used when trying to identify the UE to call

Optional

  • A default gateway to send calls

Example data

  • Local IPs
    • 1.2.3.1: Local IP to use with default gateway
    • 1.2.3.2: Local IPv4 address for P-CSCF
    • fe80::1: Local IPv6 address for P-CSCF
  • Diameter identities:
    • ucn.example.com: Local Diameter host
    • example.com: Local Diameter realm
    • dra.example.com: Diameter peer host
    • sip:scscf.example.com: S-CSCF identity server name to be advertised to HSS in MAR/SAR requests
  • gw.example.com: Gateway to send calls to unknown called party numbers. This is optional
  • 40: Country code

YateUCN

netinfo.conf

This file is used to configure UE access and core network usage.

[general]
diam_node=example.com/ucn.example.com
diam_realm=example.com
diam_proxy=dra.example.com
diam_s_cscf=sip:scscf.example.com
protocol=diameter

[00101]
; Match UE's IMSI starting with 00101 (may be used for IMSI derived private identitites)

[ims ims.mnc001.mcc001.3gppnetwork.org]
; Match IMS IMSI derived private identities for MNC=001 MCC=01

[ims example.com]
; Match IMS private identities in 'example.com' domain

When YateUCN needs to authenticate or register an UE it will try to identify the section configuring its access. If no section is found user access will be denied.
E.g. users (private identitities) 001150000000000@ims.mnc015.mcc001.3gppnetwork.org or user@somedomain.com won't match any section.

yateucn.conf

[vlr]
my_cc=40
gw_call=sip/sip:*@gw.example.com
gw_conn=general

SIP Configuration

See http://docs.yate.ro/wiki/SIP_Configuration_File for extra info on SIP options.

ysipchan.conf

[general]
; Default gateway interface
addr=1.2.3.1
generate=yes
auth_foreign=yes
auth_copy=to,from
ipv6_support=yes
lazy100=yes
transfer=no
body_encoding=hex
async_generic=yes
sip_req_trans_count=5
prack=yes
maxpkt=8192
update=yes

[registrar]
auth_required=yes
; Set it as desired
expires_max=86400 

[methods]
subscribe=no
info=no
message=yes 

[listener p-cscf-udp-v4]
; IPv4 UDP listener for UEs
type=udp
addr=1.2.3.2
role=p-cscf

[listener p-cscf-tcp-v4]
; IPv4 TCP listener for UEs
type=tcp
addr=1.2.3.2
role=p-cscf

[listener p-cscf-udp-v6]
; IPv6 UDP listener for UEs
type=udp
addr=fe80::1
role=p-cscf

[listener p-cscf-tcp-v6]
; IPv6 TCP listener for UEs
type=tcp
addr=fe80::1
role=p-cscf

Diameter configuration

accfile.conf

[hss1]
; Configure connection to Diameter DRA/HSS
enabled=yes
protocol=diameter
local_node=example.com/ucn.example.com
remote_host=dra.example.com
apps=16777216
transport=sctp
; Optional peer ip address / port to connect to
server=
port=

ydiameter.conf

[general]
conn_options=nonaptr,nosrv
relay_default_route=-1