I would like to change the failover codes. Where would I do that? We don’t seem to have dialplan control in astpp. Where would I modify the “continue_on_fail parameters” ?
e.g. codes 1,2,3,6,18,19,20,21,27,28,31,34,38,41,42,44,58,88,111,127,403,501,602,603,607,609
One of my providers keeps rejecting calls with “INVALID_NUMBER_FORMAT [28]” but they are completing fine with another carrier and I want the calls to failover automatically.
I checked code in astpp.xml.lua as ‘devangn’ suggested but no changes there had any effect on failover as it’s set to true by default and that setting apparently takes precedence of any changes in that file.
It seems to me that there is a lack of expansion in the dial plan
As an example, I found the following
extension name=“outbound_calls”
condition field=“destination_number” expression=“^(\d{3})$”
action application=“set” data=“continue_on_fail=true”/
!-- Установить флаг продолжения выполнения в случае неудачи –
action application=“group” data=“external-trunks”/
!-- Вызвать группу транков external-trunks –
/condition
/extension
group name=“external-trunks”
action application=“bridge” data=“sofia/gateway/trunk1/${destination_number}”/
!-- Попробовать сначала транк trunk1 –
action application=“bridge” data=“sofia/gateway/trunk2/${destination_number}”/
!-- Если не удалось, то переключиться на транк trunk2 –
!-- Можно добавить еще транки по аналогии, если необходимо –
/group