Search the Community
Showing results for tags 'offnet'.
-
A question was posed about how to set an offnet resource to match more than one regex pattern match in the rules[ ] array. There are 2 methods to achieve this behavior. Both (as far as I know) are acceptable, and vary only in readability. When viewing a carrier document in the offnet database in couch, you'll notice there is an array element for "rules". In the world of regular expressions, capture groups are separated by a pipe "|". So if you're looking for one regular expression to match more than one string, you can use the method listed below. In my example, I want this carrier to match a specific number in Italy, and also any calls to the Netherlands, country code 31. In order to match, the number must be exactly "+390805345208", OR +31 followed by at least 9 digits. "rules": [ "^\\+(390805345208)$|^\\+((31)\\d{9,})$" ] Looking above, this may be hard for some people to read, so it can also be written as 2 individual expressions because the rules element is an array: "rules": [ "^\\+(390805345208)$", "^\\+((31)\\d{9,})$" ]
-
Hey there, I have a customer who relies heavily on international calling, and they want to use a specific international termination carrier for all international calls. The carrier is a premium carrier so I do not want all my accounts to be able to use this carrier. I noticed in Monster UI that there is a section for "Service Providers" under Carriers App when you have jumped into a specific account. Can I configure this carrier in this account, and only this account will be able to use them? I considered using flags on their devices, but then I have to add flags to every single global carrier otherwise they would only be able to make international calls and no other calls at all. Looking for some guidance. How can I achieve this setup? The international termination carrier will be a pattern match, and it would be my expectation that if the dial string did not match this 'account-specific carrier' that stepswitch would then move up the tree and look at the global carriers.