Hello all,
Sorry that I have 3 questions below, appreciated if anyone can give me some idea, thanks.
1. I would like to know how ASTPP/Freeswitch do failover?
I found previous post but sorry that I could not get my answer.
Let's say I have 2 termination providers for the same destination(91 India), and I have created 1 rate group(default using LCR) for 1 customer, with 2 termination rates, 2 trunks, 2 gateway:
Customer A
Rate Group default
Trunk A (linked with GW A) > Termination Rate (code 91 with US$ 0.01)
Trunk B (linked with GW B) > Termination Rate (code 91 with US$ 0.02)
In this case, if the "routing type" of the rate group is "LCR", the call will go to Trunk A, right?
My question is...if Trunk A returned SIP 503, can ASTPP try to send the same call to Trunk B as failover?
if yes,
a. Do I need any specific settings for doing this? Seems the setting "failover GW1/2" is not suitable for my case, what I need is "failover trunk".
b. Which SIP response code will ASTPP do the failover? Can I control the failover only for 503 returned? and other error (e.g 403,404,480 etc.) just drop the call immediately?
2. Can I customize the cause code mapping? and where is the settings?
Let's say provider returned SIP 480, can I return 503 to originating party(customer) instead?
3. Can I control the length of called number from customer?
For example: only allow called number > 12 digit, otherwise the call will be released/rejected immediately.
Thanks.