How to strip hyphens from dialed numbers?

bmekler

Joined
Nov 5, 2010
Messages
3
Likes
0
Points
1
#1
We've recently moved our Elastix PBX from analog PSTN lines (using OpenVox A1200 card) to a PRI trunk (using Wildcard TE205P 3rd gen card), and I've encountered a problem. Previously, I've been dialing numbers by copying them from our ERP client that has all the customer info, and pasting them into the IP phone (Snom 320) web interface. Numbers are typically in the format of 03-123-4567. Analog lines had no problem with it, but the PRI trunk returns an error if there's a hyphen anywhere in the number. I could run a script to strip all the hyphens from the phone numbers stored in the ERP system, but I'd rather not do it, as it would make them harder to read out for manual dialing. Is there a way to define a rule in Elastix/FreePBX/Asterisk to automatically strip hyphens from a number before passing it to the trunk? As far as I can understand the dialing rules part, it only deals with prefixes, not hyphens inside a number.
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,563
Latest member
dineshr
Top