Re: [asterisk-dev] when will be the reason for not having a channel in monitor_dial of dial.c

2021-05-10 Thread Mohit Dhiman
Thank you, Joshua, It helped a lot, I was actually writing some custom code to include the "ring timeout" in the function but my custom build was keep on crashing. After your reply, I started looking in the "0" timeout direction and found the problem in my code. On Mon, 10 May 2021 at 18:00, Josh

Re: [asterisk-dev] when will be the reason for not having a channel in monitor_dial of dial.c

2021-05-10 Thread Joshua C. Colp
On Mon, May 10, 2021 at 9:09 AM Mohit Dhiman wrote: > Hi, > I am having trouble understanding a piece of code in the function > monitor_dial of the file main/dial.c > > who = ast_waitfor_n(cs, pos, &timeout); > > /* If the timeout no longer exists OR *if we got no channel* it basically > means th

[asterisk-dev] when will be the reason for not having a channel in monitor_dial of dial.c

2021-05-10 Thread Mohit Dhiman
Hi, I am having trouble understanding a piece of code in the function monitor_dial of the file main/dial.c who = ast_waitfor_n(cs, pos, &timeout); /* If the timeout no longer exists OR *if we got no channel* it basically means the timeout was tripped, so handle it */ if (!timeout || !who) { t