I’m using the MicroSIP application as my desktop softphone which overall works well.
But if I click a number on a website with spaces in, as most do for the UK as it’s easier to read, MicroSIP takes this as “01484%20810%20711” where %20 is a space. I’ve already emailed them about this behaviour.
The call of course fails. Checking the Asterisk logs shows the %20 does get converted to spaces, so in the logs it shows as “01484 810 710”.
This thread:
Recommended the following to be inserted in to the extensions_custom.conf file. I have done this and reloaded, but it does not work. The post is from 2016 though.
[macro-dialout-trunk-predial-hook]
;Remove spaces or dashes or + from outbound number when calling
exten => s,1,Set(OUTNUM=${FILTER(0123456789*#,${OUTNUM})})
exten => s,n,MacroExit()
Googling shows only two other threads about removing spaces or characters, and other than renaming “macro” to “sub” after seeing a depreciation warning in the logs, I’m lost with how I could make this work in today’s version of FreePBX.
[macro-dialout-trunk-predial-hook]
exten => s,1,NoOp(Entering user defined context macro-dialout-trunk-predial-hook in extensions_custom.conf)
;Remove spaces or dashes or + from outbound number when calling
exten => s,n,Set(OUTNUM=${FILTER(0123456789*#,${OUTNUM})})
exten => s,n,MacroExit
The call doesn’t show in the CDR reports, but some Googling suggests it doesn’t log incomplete calls by default and I can’t find how to change this, the suggestion to edit cdr.conf doesn’t seem to apply now.