Is it possible to truncate a number as it goes out the trunk?
Example, a local number is 123 4567 - if I call someone who has an IVR where you have to press numbers (eg 1 for sales) - pressing redial to call again will dial 123 45671.
Numbers starting [2-9] to be 7 digits
Numbers starting [08] and [05] to be 10 digits
Numbers starting [034679] to be 9 digits
The problem is, the trunk provider returns an invalid number when too many digits are dialed. So when I ring the internet company for example, 0800 299 300, option 2, 2, 4, 2 - when I get cut off (and that happens often!!), when I simply press redial, I get the invalid number tone because “0800 299 300 2242 isn’t a valid number”
You can override your dial options on a trunk to this: D(2W2W4W2). The W is a one second wait and w is a half second wait. Configure an outbound route that will use this trunk. Make sure to allocate it at the top of your outbound rules.
Here is the explanation of this feature:
D([called][:calling[:progress]]): Send the specified DTMF strings *after*
the called party has answered, but before the call gets bridged. The
<called> DTMF string is sent to the called party, and the <calling> DTMF
string is sent to the calling party. Both arguments can be used alone. If
<progress> is specified, its DTMF is sent to the called party immediately
after receiving a PROGRESS message.
See SendDTMF for valid digits.
And here is the explanation for the DTMF digits:
digits
List of digits 0-9,*#,a-d,A-D
to send also w for a half second pause, W for
a one second pause, and f or F for a flash-hook if the channel supports
flash-hook.