<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Hi Ashish,</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">This is a hack but you get what you need.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">This is because, whenever retry attempt is made 1 channel per pri get started, as there are 30 channels and retry attempts are 3 so the channels that freeswitch load is in between 3-6, so I increased retry attempt and complied it again. As I got rid of this error but it takes some time to load the pri channels (30*10 = 300seconds(5 seconds) max).</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Also, remember if you dial a call in between restarting phase you may face some error. To avoid this, dial call only after all pri channel get started.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Here are the steps:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
In freeswitch source:</div><div style="font-family:arial,sans-serif;font-size:13px">Edit libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.h<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
1. Decrease timeout of channels.</div><span style="font-family:arial,sans-serif;font-size:13px">#define T316_TIMEOUT_MS_DEFAULT 30000 /* 30 sec */</span><div style="font-family:arial,sans-serif;font-size:13px"><br>
<div>
change this to </div><div><br></div><div>#define T316_TIMEOUT_MS_DEFAULT 10000 /* 10 sec */<br></div><div><br></div><div>2. Increase attempts to 30.</div><div>#define T316_ATTEMPT_LIMIT_DEFAULT 3</div><div><br></div>
<div>change this to</div><div><br></div><div><div>#define T316_ATTEMPT_LIMIT_DEFAULT 30</div><div><br></div></div><div>3. Increase maximum limit as according to default(set more than that of default)</div><div>#define T316_ATTEMPT_LIMIT_MAX 10</div>
<div><br></div><div>change this to</div><div><div><br></div><div>#define T316_ATTEMPT_LIMIT_MAX 35</div><div><br></div><div>Thanks & Regards,<br>-<br>Akash Deep Verma</div><div><a href="http://in.linkedin.com/in/akashdeep1" target="_blank">http://in.linkedin.com/in/akashdeep1</a></div>
</div></div>
</div>