Skip to content

Commit ed63d85

Browse files
authored
Merge branch 'herlesupreeth:master' into master
2 parents 9c03d85 + b786a85 commit ed63d85

5 files changed

Lines changed: 154 additions & 169 deletions

File tree

pcscf/kamailio_pcscf.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,8 @@ modparam("ims_qos", "dialog_direction", RX_IMS_REG_DIALOG_DIRECTION)
442442
#!ifdef WITH_N5
443443

444444
# Tables to store users and their session details
445-
modparam("htable", "htable", "user_data=>size=8;autoexpire=3600;")
446-
modparam("htable", "htable", "user_ids=>size=8;autoexpire=3600;")
445+
modparam("htable", "htable", "imsi_to_app_session_map=>size=8;autoexpire=UE_SUBSCRIPTION_EXPIRES;")
446+
modparam("htable", "htable", "ue_ip_to_imsi_map=>size=8;autoexpire=UE_SUBSCRIPTION_EXPIRES;")
447447
modparam("htable", "htable", "user_sdps_ip=>size=8;autoexpire=3600;")
448448
modparam("htable", "htable", "user_sdps_port=>size=8;autoexpire=3600;")
449449
modparam("htable", "htable", "user_sdps_rtcp_port=>size=8;autoexpire=3600;")
@@ -1109,7 +1109,7 @@ route[NRF_NFM] {
11091109

11101110
$var(nf_reg_body) = '{
11111111
"nfInstanceId": "PCSCF_UUID",
1112-
"nfType": "AF",
1112+
"nfType": "AF",
11131113
"nfStatus": "REGISTERED",
11141114
"ipv4Addresses": ["N5_BIND_IP"],
11151115
"allowedNfTypes": ["SCP", "PCF"],

pcscf/pcscf_init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ ip r add ${UE_IPV4_IMS} via ${UPF_IP}
9999
ip r add ${UE_IPV4_INTERNET} via ${UPF_IP}
100100

101101
rm -f /kamailio_pcscf.pid
102-
exec kamailio -f /etc/kamailio_pcscf/kamailio_pcscf.cfg -P /kamailio_pcscf.pid -DD -E -e $@
102+
exec kamailio -f /etc/kamailio_pcscf/kamailio_pcscf.cfg -P /kamailio_pcscf.pid -m 32 -M 1024 -DD -E -e $@
103103

104104
# Sync docker time
105105
#ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

pcscf/route/mo.cfg

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ route[N5_INIT_REQ] {
299299

300300
$var(user_id) = $fU;
301301
# Store the AppSession Id in the hash table associated with the UE
302-
$sht(user_data=>$var(user_id)) = $var(app_session);
302+
$sht(imsi_to_app_session_map=>$var(user_id)) = $var(app_session);
303303
xlog("L_INFO", "Stored AppSession Id for user $var(user_id): $var(app_session)\n");
304304
break;
305305
# Failure case
@@ -666,11 +666,11 @@ route[N5_PATCH_REQ] {
666666

667667
# Retrieve AppSession Id
668668
$var(user_id_inv_rep) = $fU;
669-
$var(user_appsess_inv_rep) = $sht(user_data=>$var(user_id_inv_rep));
669+
$var(user_appsess_inv_rep) = $sht(imsi_to_app_session_map=>$var(user_id_inv_rep));
670670
xlog("L_INFO", "Stored AppSession Id for user $var(user_id_inv_rep): $var(user_appsess_inv_rep)\n");
671671
if ($var(user_appsess_inv_rep)==0){
672672
$var(user_id_inv_rep) = $tU;
673-
$var(user_appsess_inv_rep) = $sht(user_data=>$var(user_id_inv_rep));
673+
$var(user_appsess_inv_rep) = $sht(imsi_to_app_session_map=>$var(user_id_inv_rep));
674674
xlog("L_INFO", "Alt-Mode: Stored AppSession Id for user $var(user_id_inv_rep): $var(user_appsess_inv_rep)\n");
675675
}
676676
xlog("L_INFO","Preparing PATCH N5 Message for SDP Answer\n");
@@ -811,12 +811,12 @@ route[N5_PATCH_REQ] {
811811
route[N5_MOC_TERM]{
812812
# Retrieving and paying attention to who ended the call
813813
$var(user_id_call_rel) = $fU; # User Part of the from Header to get the USER
814-
$var(user_appsess_call_rel) = $sht(user_data=>$var(user_id_call_rel));
814+
$var(user_appsess_call_rel) = $sht(imsi_to_app_session_map=>$var(user_id_call_rel));
815815
if ($var(user_appsess_call_rel) == 0) {
816816
xlog("L_INFO", "we dont have AppSessionID to terminate, doing alternative Method\n");
817817
# Retrieving and paying attention to who ended the call
818818
$var(user_id_call_rel) = $tU; # User Part of the from Header to get the USER
819-
$var(user_appsess_call_rel) = $sht(user_data=>$var(user_id_call_rel));
819+
$var(user_appsess_call_rel) = $sht(imsi_to_app_session_map=>$var(user_id_call_rel));
820820
xlog("L_INFO", "Alt-Method : Terminating Stored AppSession for user $var(user_id_call_rel): $var(user_appsess_call_rel)\n");
821821
} else {
822822
xlog("L_INFO", "We have AppSessionID, doing normal Method\n");

pcscf/route/mt.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ route[N5_INIT_MT_REQ] {
439439
$var(term_user_id) = $ci;
440440

441441
# Store the AppSession Id in the hash table associated with the UE
442-
$sht(user_data=>$var(term_user_id)) = $var(mtc_app_session);
442+
$sht(imsi_to_app_session_map=>$var(term_user_id)) = $var(mtc_app_session);
443443
xlog("L_INFO", "Stored AppSession for user $var(term_user_id): $var(mtc_app_session)\n");
444444
break;
445445
default:
@@ -524,7 +524,7 @@ route[N5_PATCH_MT_REQ] {
524524

525525
# Retrieve AppSession
526526
$var(mtc_resp_app_id) = $ci;
527-
$var(user_appsess_mtc_rep) = $sht(user_data=>$var(mtc_resp_app_id));
527+
$var(user_appsess_mtc_rep) = $sht(imsi_to_app_session_map=>$var(mtc_resp_app_id));
528528
xlog("L_INFO", "Stored MTC AppSession for user $var(mtc_resp_app_id): $var(user_appsess_mtc_rep)\n");
529529

530530
xlog("L_INFO","Preparing PATCH N5 Message for SDP Answer\n");
@@ -666,7 +666,7 @@ route[N5_MTC_TERM] {
666666
xlog("L_ALERT","Terminating AppSession For Call $ci due to call END\n");
667667
# Retrieve appSession based on To URI
668668
$var(mtc_resp_app_id) = $ci;
669-
$var(user_appsess_mtc_rep) = $sht(user_data=>$var(mtc_resp_app_id));
669+
$var(user_appsess_mtc_rep) = $sht(imsi_to_app_session_map=>$var(mtc_resp_app_id));
670670

671671
xlog("L_INFO", "Normal Method : MTC AppSession for user $var(mtc_resp_app_id): $var(user_appsess_mtc_rep)\n");
672672

0 commit comments

Comments
 (0)