Closed Dgeka25594 closed 2 years ago
If you are using only SIP client and dont need VoLTE feature then change the following in pcscf.cfg
#!define WITH_RX
#!define WITH_RX_REG
#!define WITH_RX_CALL
TO
##!define WITH_RX
##!define WITH_RX_REG
##!define WITH_RX_CALL
Thanks! it helped, registration is successful. But can't make a call. The caller receives a Server error on LIR select next S-CSCF message, but the subscribers and the IMS are on the same subnet and mo is correct. Probably the 408 Request Timeout message somehow contributes to this, but there are no problems with the network.
Dump from all nodes in attachment
(https://github.com/herlesupreeth/Kamailio_IMS_Config/files/7869756/dump_call.zip)
[dump_call.zip]
Probably because of the
1(10921) NOTICE: <script>: PCSCF: INVITE sip:bob@ims.mnc001.mcc001.3gppnetwork.org (sip:711122330@ims.mnc001.mcc001.3gppnetwork.org (192.168.56.1:56447) to sip:bob@ims.mnc001.mcc001.3gppnetwork.org, 65565356-8b86-23f3-9449-f8a940441526)
1(10921) NOTICE: <script>: PCSCF MO:
Destination URI: sip:orig@scscf.ims.mnc001.mcc001.3gppnetwork.org:6060;lr
Request URI: sip:bob@ims.mnc001.mcc001.3gppnetwork.org
1(10921) NOTICE: <script>: Source IP and Port: (192.168.56.1:56447)
Route-URI: sip:192.168.56.120:5060;lr;transport=udp
1(10921) NOTICE: <script>: Received IP and Port: (192.168.56.120:5060)
1(10921) NOTICE: <script>: Contact header: <sip:711122330@192.168.56.1:56447;transport=udp>;+g.oma.sip-im;language="en,fr";+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel"
1(10921) INFO: siputils [chargingvector.c:432]: sip_handle_pcv(): Generated PCV header P-Charging-Vector: icid-value=495653C0A83878A92A0000AC01000000; icid-generated-at=192.168.56.120
100(11110) ERROR: <core> [core/tcp_main.c:4635]: tcpconn_main_timeout(): connect 192.168.56.1:61499 failed (timeout)
100(11110) ERROR: <core> [core/tcp_main.c:4635]: tcpconn_main_timeout(): connect 192.168.56.1:56447 failed (timeout)
96(11104) NOTICE: <script>: PCSCF MO_reply:
Destination URI: <null>
Request URI: <null>
96(11104) INFO: rr [rr_mod.c:515]: pv_get_route_uri_f(): No route header present.
96(11104) NOTICE: <script>: Source IP and Port: (192.168.56.106:6060)
Route-URI:
96(11104) NOTICE: <script>: Received IP and Port: (192.168.56.120:5060)
96(11104) NOTICE: <script>: Contact header: <null>
96(11104) ERROR: ims_ipsec_pcscf [cmd.c:886]: ipsec_forward(): No security parameters found in contact
3(10923) NOTICE: <script>: PCSCF: INVITE sip:bob@192.168.56.1:5060;alias=192.168.56.1~5060~1 (sip:711122330@ims.mnc001.mcc001.3gppnetwork.org (192.168.56.106:6060) to sip:bob@ims.mnc001.mcc001.3gppnetwork.org, 65565356-8b86-23f3-9449-f8a940441526)
3(10923) NOTICE: <script>: PCSCF MT:
Destination URI: sip:192.168.56.1:5060
Request URI: sip:bob@192.168.56.1:5060
3(10923) NOTICE: <script>: Source IP and Port: (192.168.56.106:6060)
Route-URI: sip:term@pcscf.ims.mnc001.mcc001.3gppnetwork.org;lr
3(10923) NOTICE: <script>: Received IP and Port: (192.168.56.120:5060)
3(10923) NOTICE: <script>: Contact header: <sip:711122330@192.168.56.1:56447;transport=udp>;+g.oma.sip-im;language="en,fr";+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel"
3(10923) ERROR: ims_ipsec_pcscf [cmd.c:886]: ipsec_forward(): No security parameters found in contact
2(10922) NOTICE: <script>: PCSCF: ACK sip:bob@192.168.56.1:5060;alias=192.168.56.1~5060~1 (sip:711122330@ims.mnc001.mcc001.3gppnetwork.org (192.168.56.106:6060) to sip:bob@ims.mnc001.mcc001.3gppnetwork.org, 65565356-8b86-23f3-9449-f8a940441526)
2(10922) WARNING: tm [t_lookup.c:1504]: t_unref(): script writer didn't release transaction
97(11105) NOTICE: <script>: PCSCF MO_reply:
Destination URI: <null>
Request URI: <null>
97(11105) INFO: rr [rr_mod.c:515]: pv_get_route_uri_f(): No route header present.
97(11105) NOTICE: <script>: Source IP and Port: (192.168.56.106:6060)
Route-URI:
97(11105) NOTICE: <script>: Received IP and Port: (192.168.56.120:5060)
97(11105) NOTICE: <script>: Contact header: <null>
97(11105) ERROR: ims_ipsec_pcscf [cmd.c:886]: ipsec_forward(): No security parameters found in contact
4(10924) NOTICE: <script>: PCSCF: ACK sip:bob@ims.mnc001.mcc001.3gppnetwork.org (sip:711122330@ims.mnc001.mcc001.3gppnetwork.org (192.168.56.1:56447) to sip:bob@ims.mnc001.mcc001.3gppnetwork.org, 65565356-8b86-23f3-9449-f8a940441526)
4(10924) WARNING: tm [t_lookup.c:1504]: t_unref(): script writer didn't release transaction
100(11110) ERROR: <core> [core/tcp_main.c:4635]: tcpconn_main_timeout(): connect 192.168.56.1:5060 failed (timeout)
Do I need to somehow configure routes if both IMS and clients are on the same network? I do not see another reason for the 408 (Request Timeout) message yet, since both clients are registered.
If want to have both IMS and VoIP client on the same network then you would need two instances of P-CSCF with one Rx enabled and anther without Rx
I wanted to make calls from sip-clients supporting IMS, like in your picture. I can't make calls via VoLTE yet.
I found suspicious messages in the SCSCF log during the call, but I still can't figure out why the dialog is being destroyed
1(5585) DEBUG: ims_dialog [dlg_handlers.c:1176]: dlg_onreply(): ONREPLY CALL_BACK from TM received and type is [2] = [TMCB_RESPONSE_IN]
1(5585) DEBUG: ims_dialog [dlg_hash.c:887]: lookup_dlg(): ref dlg 0x7f00dab0d400 with 1 -> 3
1(5585) DEBUG: ims_dialog [dlg_hash.c:889]: lookup_dlg(): dialog id=7345 found on entry 1533
1(5585) DEBUG: ims_dialog [dlg_handlers.c:1193]: dlg_onreply(): DLG dialogid is entry:id [1533:7345]
1(5585) DEBUG: ims_dialog [dlg_profile.c:419]: set_current_dialog(): setting current dialog [1533:7345]
1(5585) DEBUG: ims_dialog [dlg_hash.c:1066]: unref_dlg(): unref dlg 0x7f00dab0d400 with 1 -> 2
3(5587) DEBUG: ims_dialog [dlg_handlers.c:1207]: dlg_onreply(): Ignoring request out as it's not a CANCEL
3(5587) DEBUG: ims_dialog [dlg_hash.c:1066]: unref_dlg(): unref dlg 0x7f00dab0d400 with 1 -> 1
2(5586) DEBUG: ims_dialog [dlg_handlers.c:1176]: dlg_onreply(): ONREPLY CALL_BACK from TM received and type is [2] = [TMCB_RESPONSE_IN]
2(5586) DEBUG: ims_dialog [dlg_hash.c:887]: lookup_dlg(): ref dlg 0x7f00dab0d400 with 1 -> 2
2(5586) DEBUG: ims_dialog [dlg_hash.c:889]: lookup_dlg(): dialog id=7345 found on entry 1533
2(5586) DEBUG: ims_dialog [dlg_handlers.c:1193]: dlg_onreply(): DLG dialogid is entry:id [1533:7345]
2(5586) DEBUG: ims_dialog [dlg_profile.c:419]: set_current_dialog(): setting current dialog [1533:7345]
2(5586) DEBUG: ims_dialog [dlg_hash.c:1066]: unref_dlg(): unref dlg 0x7f00dab0d400 with 1 -> 1
4(5588) DEBUG: ims_dialog [dlg_handlers.c:1176]: dlg_onreply(): ONREPLY CALL_BACK from TM received and type is [2] = [TMCB_RESPONSE_IN]
4(5588) DEBUG: ims_dialog [dlg_hash.c:887]: lookup_dlg(): ref dlg 0x7f00dab0d400 with 1 -> 2
4(5588) DEBUG: ims_dialog [dlg_hash.c:889]: lookup_dlg(): dialog id=7345 found on entry 1533
4(5588) DEBUG: ims_dialog [dlg_handlers.c:1193]: dlg_onreply(): DLG dialogid is entry:id [1533:7345]
4(5588) DEBUG: ims_dialog [dlg_profile.c:419]: set_current_dialog(): setting current dialog [1533:7345]
4(5588) DEBUG: ims_dialog [dlg_hash.c:1066]: unref_dlg(): unref dlg 0x7f00dab0d400 with 1 -> 1
4(5588) DEBUG: ims_dialog [dlg_handlers.c:1176]: dlg_onreply(): ONREPLY CALL_BACK from TM received and type is [128] = [TMCB_ON_FAILURE]
4(5588) DEBUG: ims_dialog [dlg_hash.c:887]: lookup_dlg(): ref dlg 0x7f00dab0d400 with 1 -> 2
4(5588) DEBUG: ims_dialog [dlg_hash.c:889]: lookup_dlg(): dialog id=7345 found on entry 1533
4(5588) DEBUG: ims_dialog [dlg_handlers.c:1193]: dlg_onreply(): DLG dialogid is entry:id [1533:7345]
4(5588) DEBUG: ims_dialog [dlg_profile.c:419]: set_current_dialog(): setting current dialog [1533:7345]
4(5588) DEBUG: ims_dialog [dlg_hash.c:1066]: unref_dlg(): unref dlg 0x7f00dab0d400 with 1 -> 1
4(5588) DEBUG: ims_dialog [dlg_handlers.c:1176]: dlg_onreply(): ONREPLY CALL_BACK from TM received and type is [1048576] = [TMCB_RESPONSE_READY]
4(5588) DEBUG: ims_dialog [dlg_hash.c:887]: lookup_dlg(): ref dlg 0x7f00dab0d400 with 1 -> 2
4(5588) DEBUG: ims_dialog [dlg_hash.c:889]: lookup_dlg(): dialog id=7345 found on entry 1533
4(5588) DEBUG: ims_dialog [dlg_handlers.c:1193]: dlg_onreply(): DLG dialogid is entry:id [1533:7345]
4(5588) DEBUG: ims_dialog [dlg_handlers.c:1235]: dlg_onreply(): Extracting to-tag from reply 4(5588) DEBUG: ims_dialog [dlg_handlers.c:1255]: dlg_onreply(): Got to-tag from response: 0c8226fe9a0a0933b505664e4b17b14c-d79845eb
4(5588) DEBUG: ims_dialog [dlg_handlers.c:1275]: dlg_onreply(): Calling next_state_dlg and event is 4 = DLG_EVENT_RPL3xx
4(5588) DEBUG: ims_dialog [dlg_hash.c:1293]: next_state_dlg(): dialog 0x7f00dab0d400 changed from state 1 to state 6, due event 4
4(5588) DEBUG: ims_dialog [dlg_handlers.c:1279]: dlg_onreply(): Checking if there is an existing dialog_out entry with same to-tag 4(5588) DEBUG: ims_dialog [dlg_handlers.c:1300]: dlg_onreply(): Extracting to-tag from reply 4(5588) DEBUG: ims_dialog [dlg_handlers.c:1331]: dlg_onreply(): Got to-tag from response: 0c8226fe9a0a0933b505664e4b17b14c-d79845eb
4(5588) DEBUG: ims_dialog [dlg_handlers.c:1338]: dlg_onreply(): Scanning dlg_entry_out list for dlg_out 4(5588) DEBUG: ims_dialog [dlg_handlers.c:1409]: dlg_onreply(): new state is 6 and old state is 1
4(5588) DEBUG: ims_dialog [dlg_handlers.c:1489]: dlg_onreply(): dialog 0x7f00dab0d400 failed (negative reply)
4(5588) DEBUG: ims_dialog [dlg_cb.c:277]: run_dlg_callbacks(): dialog=0x7f00dab0d400, type=4
4(5588) DEBUG: ims_usrloc_scscf [contact_dlg_handlers.c:129]: contact_dlg_handler(): no dlg out... ignoring!!! for type [4] - usually happens on failure response in dialog
4(5588) DEBUG: ims_dialog [dlg_hash.c:1066]: unref_dlg(): unref dlg 0x7f00dab0d400 with 1 -> 1
4(5588) DEBUG: ims_dialog [dlg_hash.c:1066]: unref_dlg(): unref dlg 0x7f00dab0d400 with 1 -> 0
4(5588) DEBUG: ims_dialog [dlg_hash.c:1066]: unref_dlg(): ref <=0 for dialog 0x7f00dab0d400
4(5588) DEBUG: ims_dialog [dlg_hash.c:196]: destroy_dlg(): destroying dialog 0x7f00dab0d400
4(5588) DEBUG: ims_dialog [dlg_hash.c:207]: destroy_dlg(): removed timer for dlg 0x7f00dab0d400 [1533:7345] with clid 'abc61176-0224-ad9a-ceaa-5272aa8b5340' and tags '17454264'
4(5588) DEBUG: ims_dialog [dlg_hash.c:218]: destroy_dlg(): About to run dlg callback for destroy
4(5588) DEBUG: ims_dialog [dlg_cb.c:277]: run_dlg_callbacks(): dialog=0x7f00dab0d400, type=8192
4(5588) DEBUG: ims_usrloc_scscf [contact_dlg_handlers.c:129]: contact_dlg_handler(): no dlg out... ignoring!!! for type [8192] - usually happens on failure response in dialog
4(5588) DEBUG: ims_dialog [dlg_hash.c:220]: destroy_dlg(): DONE: About to run dlg callback for destroy
4(5588) DEBUG: ims_dialog [dlg_hash.c:156]: destroy_entry_out(): Destroy dialog entry out
3(5587) DEBUG: ims_dialog [dlg_handlers.c:1176]: dlg_onreply(): ONREPLY CALL_BACK from TM received and type is [2] = [TMCB_RESPONSE_IN]
3(5587) DEBUG: ims_dialog [dlg_hash.c:887]: lookup_dlg(): ref dlg 0x7f00dab06090 with 1 -> 2
3(5587) DEBUG: ims_dialog [dlg_hash.c:889]: lookup_dlg(): dialog id=7344 found on entry 1533
3(5587) DEBUG: ims_dialog [dlg_handlers.c:1193]: dlg_onreply(): DLG dialogid is entry:id [1533:7344]
3(5587) DEBUG: ims_dialog [dlg_profile.c:419]: set_current_dialog(): setting current dialog [1533:7344]
3(5587) DEBUG: ims_dialog [dlg_hash.c:1066]: unref_dlg(): unref dlg 0x7f00dab06090 with 1 -> 1
1(5585) NOTICE: <script>: SCSCF: ACK sip:711122331@ims.mnc001.mcc001.3gppnetwork.org (sip:711122330@ims.mnc001.mcc001.3gppnetwork.org (192.168.56.106:4060) to sip:711122331@ims.mnc001.mcc001.3gppnetwork.org, abc61176-0224-ad9a-ceaa-5272aa8b5340)
Although I seem to have almost figured it out, PCSCF does not send an INVITE to my callee. It remains to understand why
100(2039) ERROR: <core> [core/tcp_main.c:4454]: handle_tcpconn_ev(): connect 192.168.56.107:61571 failed
If want to have both IMS and VoIP client on the same network then you would need two instances of P-CSCF with one Rx enabled and anther without Rx
Or I misunderstood you ... did you mean that I need a second PCSCF, regardless of whether I use VoLTE or not, if I make calls within the same network from sip clients with IMS architecture?
Or I misunderstood you ... did you mean that I need a second PCSCF, regardless of whether I use VoLTE or not, if I make calls within the same network from sip clients with IMS architecture?
No, if you are purely using VoIP clients then you dont need second PCSCF
please repost the pcap taken for calling scenario.
Happened! I apologize for the time spent, the problem was apparently in the client that I used. There were no problems with the payment through PhonerLite! http://phonerlite.de/download_en.htm @herlesupreeth , thanks again for your help. Tell me, what sip-clients did you use when making calls via IMS?
Sorry for one more question. I changed the scheme, now the clients are on a different network x: Bob (ip 10.20.29.211)>>IMS (PCSCF 10.21.4.226(customer connection point),10.10.0.1 (internal IP for communication with I,S-CSCF) and I,S-CSCF, HSS 10.10.0.2>>Alice (IP 10.20.29.180) Do I understand correctly that I need to enable the listen=udp:10.10.0.1:5060 advertise 10.21.4.226:5060 setting on PCSCF?
Everything was decided by the correct prerouting rules
Hi, herlesupreeth! I would be grateful if you can help me, I broke my head solving this problem.
I failed the setup and decided to start over with your configs and ran into this problem:
When trying to register a sip client, pcscf rejects it:
I am setting up Kamailio IMS on VirtualBox:
Full log:
I understand this due to the fact that I do not use PCRF, since I am not mobile UE, but I use SIP clients and connect directly to PCSCF. Tell me what I need to fix in order for the circuit to work SIP-client>>IMS>>SIP-client witout EPC. In your config I changed only IP
Dump and config attached kamailio_pcscf.zip pcscf_dump.zip
PCSCF 192.168.56.120 ICSCF SCSCF FHоSS 192.168.56.106
Dump and config attached