How to strip hyphens from dialed numbers?

Discussion in 'General' started by bmekler, Nov 5, 2010.

  1. bmekler

    Nov 5, 2010
    Likes Received:
    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.

Share This Page