always send outgoing calls with a 1

Status
Not open for further replies.

Tuly

Member
Sep 6, 2017
42
1
8
39
how can i make sure that all outgoing calls from all clients are going to the carrier with a 1? even if they are not dialing a 1


Thank you
 

hamagid

Member
Dec 14, 2020
78
8
8
33
You add it to the bridge statement before the variable ($1).

You just have to make sure that if they dial with a 1, it's not included in the variable otherwise you'll be sending it as 11xxxxx.
 

Tuly

Member
Sep 6, 2017
42
1
8
39
They wther dial with a 1 or without a 1, but i need to make sure to always send out the call as 1xxxxxxxxxx
 

hamagid

Member
Dec 14, 2020
78
8
8
33
In your outbound route
destination_number ^\+?1?([2-9]\d{2}[2-9]\d{2}\d{4})$
and bridge sofia/gateway/xxxxxxxxxx/1$1
 
Status
Not open for further replies.