Was it this? I was just testing it and found this in my log.
[2017-08-17 14:50:14] WARNING[13331][C-00000012]: pbx_functions.c:460 func_args: Can't find trailing parenthesis for function 'IF(1?103-314NXXXXXX#:314NXXXXXX#'?
Edit: ah, it looks like that was it. Because farther down the log is this.
[2017-08-17 14:50:24] VERBOSE[13331][C-00000012] res_agi.c: dialparties.agi: Starting New Dialparties.agi
[2017-08-17 14:50:24] VERBOSE[13331][C-00000012] res_agi.c: dialparties.agi: Caller ID name is 'Lake' number is '5195'
[2017-08-17 14:50:24] VERBOSE[13331][C-00000012] res_agi.c: dialparties.agi: CW Ignore is:
[2017-08-17 14:50:24] VERBOSE[13331][C-00000012] res_agi.c: dialparties.agi: CF Ignore is:
[2017-08-17 14:50:24] VERBOSE[13331][C-00000012] res_agi.c: dialparties.agi: CW IN_USE/BUSY is: 1
[2017-08-17 14:50:24] VERBOSE[13331][C-00000012] res_agi.c: dialparties.agi: Methodology of ring is 'ringall'
[2017-08-17 14:50:24] VERBOSE[13331][C-00000012] res_agi.c: dialparties.agi: Added extension 103 to extension map
[2017-08-17 14:50:24] VERBOSE[13331][C-00000012] res_agi.c: dialparties.agi: Added extension 3145NXXXXXX#) to extension map
It has appended the missing )
to my number.