Skip to content

Commit

Permalink
Merge pull request #13 from pespin/pespin/pr
Browse files Browse the repository at this point in the history
Print P-CSCF address
  • Loading branch information
fasferraz authored Mar 11, 2024
2 parents 466e169 + 8c30c0c commit 197a36f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion swu_emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2633,13 +2633,16 @@ def state_4(self):
if i[1][0] == CFG_REPLY:
self.ip_address_list = self.get_cp_attribute_value(i[1][1],INTERNAL_IP4_ADDRESS)
self.dns_address_list = self.get_cp_attribute_value(i[1][1],INTERNAL_IP4_DNS)
self.pcscf_address_list = self.get_cp_attribute_value(i[1][1],P_CSCF_IP4_ADDRESS)
self.ipv6_address_list = self.get_cp_attribute_value(i[1][1],INTERNAL_IP6_ADDRESS)
self.dnsv6_address_list = self.get_cp_attribute_value(i[1][1],INTERNAL_IP6_DNS)
self.pcscfv6_address_list = self.get_cp_attribute_value(i[1][1],P_CSCF_IP6_ADDRESS)
print('IPV4 ADDRESS', self.ip_address_list)
print('DNS IPV4 ADDRESS', self.dns_address_list)
print('P-CSCF IPV4 ADDRESS', self.pcscf_address_list)
print('IPV6 ADDRESS', self.ipv6_address_list)
print('DNS IPV6 ADDRESS', self.dnsv6_address_list)

print('P-CSCF IPV6 ADDRESS', self.pcscfv6_address_list)
if self.ip_address_list == [] and self.ipv6_address_list == []:
return OTHER_ERROR,'NO IP ADDRESS (IPV4 or IPV6)'
else:
Expand Down

0 comments on commit 197a36f

Please sign in to comment.