Skip to content

Commit 6228d5a

Browse files
committed
Minor refactor
1 parent d84350f commit 6228d5a

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

pcscf/route/mo.cfg

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ route[MO]
108108

109109
# Route Logic for N5 Requests
110110
route[N5_INIT_REQ] {
111-
112111
# Storing IDs and IPs of UE into variables to use them later in the N5 Request
113112
$var(orig_ue_ip) = $si;
114113
$var(orig_ue_port) = $sp;
@@ -401,6 +400,11 @@ route[MO_aar_reply]
401400
# In-Dialog-Mo-Requests
402401
######################################################################
403402
route[MO_indialog] {
403+
xnotice("Destination URI: $du\n Request URI: $ru\n");
404+
xnotice("Source IP and Port: ($si:$sp)\n Route-URI: $route_uri\n");
405+
xnotice("Received IP and Port: ($Ri:$Rp)\n");
406+
xnotice("Next hop domain: ($nh(d))\n");
407+
xnotice("Contact header: $ct\n");
404408

405409
#!ifdef WITH_N5
406410
# N5 PATCH Request for updating AppSession context
@@ -415,11 +419,6 @@ route[MO_indialog] {
415419
}
416420
#!endif
417421

418-
xnotice("Destination URI: $du\n Request URI: $ru\n");
419-
xnotice("Source IP and Port: ($si:$sp)\n Route-URI: $route_uri\n");
420-
xnotice("Received IP and Port: ($Ri:$Rp)\n");
421-
xnotice("Next hop domain: ($nh(d))\n");
422-
xnotice("Contact header: $ct\n");
423422
setflag(FLT_MOBILE_ORIG);
424423
t_on_reply("MO_indialog_reply");
425424

pcscf/route/mt.cfg

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ route[MT_aar_reply]
111111
# In-Dialog-MT-Requests
112112
######################################################################
113113
route[MT_indialog] {
114+
xnotice("Destination URI: $du\n Request URI: $ru\n");
115+
xnotice("Source IP and Port: ($si:$sp)\n Route-URI: $route_uri\n");
116+
xnotice("Received IP and Port: ($Ri:$Rp)\n");
117+
xnotice("Next hop domain: ($nh(d))\n");
118+
xnotice("Contact header: $ct\n");
114119

115120
#!ifdef WITH_N5
116121
# N5 PATCH Request for updating AppSession context
@@ -126,12 +131,6 @@ route[MT_indialog] {
126131
}
127132
#!endif
128133

129-
xnotice("Destination URI: $du\n Request URI: $ru\n");
130-
xnotice("Source IP and Port: ($si:$sp)\n Route-URI: $route_uri\n");
131-
xnotice("Received IP and Port: ($Ri:$Rp)\n");
132-
xnotice("Next hop domain: ($nh(d))\n");
133-
xnotice("Contact header: $ct\n");
134-
#resetflag(FLT_MOBILE_ORIG);
135134
t_on_reply("MT_indialog_reply");
136135

137136
# Append rport only if its a request coming from UE

0 commit comments

Comments
 (0)