[ASTPPCOM-543] Number Translation on Switch - Gateway menu Created: 12/Aug/19 Updated: 27/Oct/19 Resolved: 26/Oct/19 |
|
| Status: | Done |
| Project: | ASTPP Community |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | ||
| Reporter: | horselessname | Assignee: | Samir Doshi |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
I have two gateways from two different providers, both using Tech Prefix for auth. The only option i could think of is "Dialplan Variable" but i added 55/TechPrefix55 like i did on Number Translation for the trunk and did'nt work. Help ? |
| Comments |
| Comment by Samir Doshi [ 26/Aug/19 ] |
|
Hi [~HorselessName] In your case, you will require to setup 2 trunks and under each trunk set 1 gateway and in rate group select both trunks. For number translation, you can use prepend and strip field in termination rates or use localization concept and select it in provider. That will resolve your issue. |
| Comment by horselessname [ 16/Sep/19 ] |
|
Hello... [~smrdoshi] Even if i insert the tech prefix for the first provider, let's say 91915541991919191, if the call fails and goes to the second provider on the failover, the number that'll go to that provider is 91915541991919191, and that prefix is different from the prefix of that provider. It would be nice if we could add a prefix directly to the provider... If we have multiple providers with different prefixes, we aren't going to be able to differ which is which... |
| Comment by Mike (Inactive) [ 16/Sep/19 ] |
|
Hello, [~smrdoshi] is right, I've been using on version v3.6 without a problem. Setting up number translation at each trunk and setting multiple trunks in rate groups does the fail-over with correct prefix for each provider. I don't know if it's the same on the latest version. |
| Comment by horselessname [ 17/Sep/19 ] |
|
Mike It is'nt doing the fail-over here... If i remove the number translation and set multiple trunks on one gateway, the failover works. It goes to the second try but the provider receives the wrong tech prefix... How did you do that? Mike Each trunk you have is trying one time only, right? What can i do? |
| Comment by horselessname [ 17/Sep/19 ] |
|
First trunk: |
| Comment by Mike (Inactive) [ 17/Sep/19 ] |
|
Hello [~HorselessName] , As I said, I only tried this on version 3.6 and it's working correctly. I assume that hasn't changed in v+4. "1/3223 If you need multiple translations, separate with commas like this: "1/3223
I have this currently working so I know it works on v3.6. I hope nothing changed on +v4 |
| Comment by horselessname [ 19/Sep/19 ] |
|
Mike @smrdoshi I found the problem. When the ASTPP receives 503 Service Unavailable, the Failover works... It jumps correctly to the next termination. Is there a place on FreeSwitch or ASTPP where i can add more codes for the failover proccess? |
| Comment by horselessname [ 19/Sep/19 ] |
|
Below a image of my monitoring (Ignore the REJECTED message, i just configured a test on my Asterisk to check what codes the ASTPP needs to receive in order to make the failover):
|