Looks like FollowMe isn’t really working for any extension here.
- FreePBX 14
- FollowMe 14.0.1.13
- Core 14.0.1.3
Relevant lines from logs:
[2017-09-28 14:55:23] WARNING[32798][C-00000066] pbx_functions.c: Can't find trailing parenthesis for function 'IF(1?7749947661#:7749947661#'?
[2017-09-28 14:55:30] VERBOSE[32798][C-00000066] pbx.c: Executing [[email protected]:6] AGI("Local/FMGL-7749947661#@from-internal-000009bb;2", "dialparties.agi") in new stack
[2017-09-28 14:55:30] VERBOSE[32798][C-00000066] res_agi.c: dialparties.agi: Added extension xxx#) to extension map
[2017-09-28 14:55:30] VERBOSE[32798][C-00000066] res_agi.c: dialparties.agi: Extension xxx#) cf is disabled
[2017-09-28 14:55:30] VERBOSE[32798][C-00000066] res_agi.c: dialparties.agi: Extension xxx#) do not disturb is disabled
[2017-09-28 14:55:30] VERBOSE[32798][C-00000066] res_agi.c: dialparties.agi: Extension xxx#) has ExtensionState: 4
[2017-09-28 14:55:30] VERBOSE[32798][C-00000066] res_agi.c: dialparties.agi: Checking CW and CFB status for extension xxx#)
[2017-09-28 14:55:30] VERBOSE[32798][C-00000066] res_agi.c: dialparties.agi: Extension xxx#) is not available to be called
[2017-09-28 14:55:30] VERBOSE[32798][C-00000066] res_agi.c: <Local/FMGL-xxx#@from-internal-000009bb;2>AGI Script dialparties.agi completed, returning 0
[2017-09-28 14:55:30] VERBOSE[32798][C-00000066] pbx.c: Executing [[email protected]:7] NoOp("Local/FMGL-xxx#@from-internal-000009bb;2", "Returned from dialparties with no extensions to call and DIALSTATUS: NOANSWER") in new stack
I see two issues:
- There’s an error with that IF statement,
- The relevant part of dialparties.agi is checking for the extension state of an extension that has a trailing ‘)’
I re-ran with AGI debugging turned on and that is in fact the case:
<Local/FMGL-7749947661#@from-internal-000009c1;2>AGI Tx >> 200 result=1
<Local/FMGL-7749947661#@from-internal-000009c1;2>AGI Rx << GET VARIABLE EXTENSION_STATE(xxx#))
<Local/FMGL-7749947661#@from-internal-000009c1;2>AGI Tx >> 200 result=1 (UNKNOWN)
<Local/FMGL-7749947661#@from-internal-000009c1;2>AGI Rx << VERBOSE "EXTENSION_STATE: 4 (UNKNOWN)" 1
dialparties.agi: EXTENSION_STATE: 4 (UNKNOWN)
<Local/FMGL-7749947661#@from-internal-000009c1;2>AGI Tx >> 200 result=1
<Local/FMGL-7749947661#@from-internal-000009c1;2>AGI Rx << VERBOSE "Extension xxx#) has ExtensionState: 4" 1
How should I resolve this issue? We are rarely at our desk phones and forwarding to cell phones is critical.
Thanks!