Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.25 KB

remove-all-special-characters-from-the-dialed-number.md

File metadata and controls

30 lines (19 loc) · 1.25 KB

Remove all special characters from the dialed number

Some softphones / CTI solutions transmit a phone number with special characters when dialing, for example +371(2) 229-3042

Such a call is very likely to fail, it will be completed by mistake.

  1. To solve the problem of "filtering" characters, an additional context should be described through the Customization of system files menu

System file customization menu

  1. We will edit the extensions.conf file.

  1. Add the following context to the end of the file:
[all_peers-custom]

exten => s,1,NoOp(Cleaning dst number)
	same => n,Set(cleanNumber=${FILTER(\*\#1234567890,${EXTEN})})
	same => n,ExecIf($["${EXTEN}" != "${cleanNumber}"]?Goto(all_peers,${cleanNumber},1))
	same => n,return

{% hint style="success" %} According to the described rule, only the characters *#1234567890 will remain in the dialed number {% endhint %}