'user_exists', Ring Groups and Time Conditions

surfermarty

New Member
Jul 20, 2018
1
0
0
55
Been using FusionPBX for quite a while now - but setting up a new server and I'm having issues with Ring Groups and Time Conditions. Possibly something really dumb on my end, but can't see it.

Call comes in from external number
  • Destination set to an extension - all works fine. Handset rings.
  • Destination set to a RG or TC, the 'user_exists' test returns false, so variable 'user_exists' is set to false
    • The external gateway rule then matches because user_exists is false and we try to send it external
2025-04-29 12:26:26.779818 99.30% [NOTICE] switch_cpp.cpp:1466 [xml_handler] multiple key:dialplan:<domain>
Dialplan: sofia/external/<ext number>@<gw ip> parsing [<domain>->user_exists] continue=true
Dialplan: sofia/external/<ext number>@<gw ip> Regex (FAIL) [user_exists] ${loopback_leg}() =~ /^B$/ break=never
Dialplan: sofia/external/<ext number>@<gw ip> Regex (PASS) [user_exists] () =~ // break=on-false
Dialplan: sofia/external/<ext number>@<gw ip> Action set(user_exists=${user_exists id ${destination_number} ${domain_name}}) INLINE
EXECUTE [depth=0] sofia/external/<ext number>@<gw ip> set(user_exists=false)

TC and RG numbers very much exist within the domain and work.. Any idea if I've just missed a setting that needs tweaked from the defaults?

This works fine on our old 5.2 install.

From fs_cli
> user_exists id 1001 <domain>​
true​
> user_exists id 1999 <domain>​
false​

Where 1001 is a handset and 1999 is a ring group.
 
Last edited: