Hi, In the source code (switch_ivr_originate() in switch_ivr_originate.c from latest master branch), valid values for originate_retries are between 1 and 100 with default to 1. And the originate loop looks like this: for (try = 0; try < originate_retries; try++) { if (try > 0) wait(originate_retry_min_period_ms); dial(); } So its compliant with what you observe. The name of the variable may be misleading and the documentation looks incorrect. Best Regards, -- Valli A. Vallimamod SIP Solutions vma@sip.solutions linkedin.com/in/vallimamod .
On 23 Apr 2020, at 13:09, René Weiss <rw@panorgan.ch> wrote:
Hi,
The documentation for originate_retries says "Number of retries before giving up on originating a call (default is 0)."
Because of this I would expect that:
- originate_retries=0 = 1 call - originate_retries=1 = 2 calls (1 try and 1 retry) - originate_retries=2 = 3 calls (1 try and 2 retries) -originate_retries=3 = 4 calls (1 try and 3 retries)
But in my testing I get:
- originate_retries=0 = 1 call - originate_retries=1 = 1 call - originate_retries=2 = 2 calls - originate_retries=3 = 3 calls
My originate command is:
originate{originate_timeout=5,originate_retries=<X>,originate_retry_sleep_ms=5000}user/662 &park()
And my FreeSWITCH version is:
FreeSWITCH Version 1.10.2-release-14-f7bdd3845a~64bit (-release-14-f7bdd3845a 64bit)
Am I doing something wrong here, do I understand the documentation wrong, or is the problem in freeswitch / the freeswitch documentation?
Thanks.
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com