Cant get inbound calls to work on IPv6 profile

rajahgroup

New Member
Apr 12, 2025
12
0
1
27
Toronto
Hello,

I'm trying to convert my FusionPBX install from IPv4 to dual-stack.

I've enabled the internal-ipv6 profile and I am able to get phones to register and make outbound calls.

I'm not able to get inbound calls to work however.

I also noticed this in the log when making an inbound call to the ipv6 extension:
Code:
b9be9ca1-4167-4725-9acc-2a13d838d1b2 2026-05-24 22:34:08.776277 97.40% [NOTICE] switch_channel.c:1142 New Channel sofia/internal-ipv6/101@{IPv6::EXT:ADDR}:50612 [b9be9ca1-4167-4725-9acc-2a13d838d1b2]
b9be9ca1-4167-4725-9acc-2a13d838d1b2 2026-05-24 22:34:08.776277 97.40% [DEBUG] mod_sofia.c:5121 (sofia/internal-ipv6/101@{IPv6::EXT:ADDR}:50612) State Change CS_NEW -> CS_INIT
b9be9ca1-4167-4725-9acc-2a13d838d1b2 2026-05-24 22:34:08.776277 97.40% [DEBUG] switch_core_state_machine.c:581 (sofia/internal-ipv6/101@{IPv6::EXT:ADDR}:50612) Running State Change CS_INIT (Cur 2 Tot 10)
b9be9ca1-4167-4725-9acc-2a13d838d1b2 2026-05-24 22:34:08.776277 97.40% [DEBUG] switch_core_state_machine.c:624 (sofia/internal-ipv6/101@{IPv6::EXT:ADDR}:50612) State INIT
b9be9ca1-4167-4725-9acc-2a13d838d1b2 2026-05-24 22:34:08.776277 97.40% [DEBUG] mod_sofia.c:97 sofia/internal-ipv6/101@{IPv6::EXT:ADDR}:50612 SOFIA INIT
b9be9ca1-4167-4725-9acc-2a13d838d1b2 2026-05-24 22:34:08.776277 97.40% [CRIT] sofia_glue.c:1421 Error creating HANDLE!
b9be9ca1-4167-4725-9acc-2a13d838d1b2 url_str=[sip:101@{IPv6::EXT:ADDR}:50612;rinstance=D2586525;transport=tls]
b9be9ca1-4167-4725-9acc-2a13d838d1b2 call_id=[N/A]
b9be9ca1-4167-4725-9acc-2a13d838d1b2 to_str=[<sip:101@{IPv6::EXT:ADDR}:50612;rinstance=D2586525;transport=tls>]
b9be9ca1-4167-4725-9acc-2a13d838d1b2 from_str=["CALLER" <sip:%2B1CALLERDID@rajahgroup.ringora.ca>]
b9be9ca1-4167-4725-9acc-2a13d838d1b2 invite_contact=[<sip:mod_sofia@[IPv6:PBX:ADDR]:5061;transport=tls>]
b9be9ca1-4167-4725-9acc-2a13d838d1b2 2026-05-24 22:34:08.776277 97.40% [NOTICE] mod_sofia.c:125 Hangup sofia/internal-ipv6/101@{IPv6::EXT:ADDR}:50612 [CS_INIT] [DESTINATION_OUT_OF_ORDER]

I appreciate any help I can get to resolve this!
 
Upon further investigation, it seems that the follow me lua script is breaking the IPv6 contact by rewriting square brackets to the curly ones.

It does work when I comment out the gsub lines but I'm not sure if that'll break anything else for the follow me bridges