I am trying to Make a Channel Driver for my custom hardware,But facing problem in polling of FD.<div><br></div><div>i have few doubts.</div><div>1.What is &quot;which&quot; in ast_channel_set_fd(),i.e second parameter of this function.</div>

<div>2.AST_MAX_FDS is 20 so that this means that ,if allocate a FD whose value is greater than 20 polling </div><div>of read/write wont work.</div><div>3.if i use ast_channel_set_fd(temp,0,1) or ast_channel_set_fd(temp,0,2) , i am not able to hear audio from SIP Phone to my hardware,but if i use greater than 10 in field of FD its working fine,</div>

<div>but then All wait related function of dialplan never timeouts..eg Waitmusichold().</div><div><br></div><div>In short What fd values should i use for ast_channel_set_fd() and what is the use of &quot;which&quot; fiedl in this function.</div>

<div><br></div><div>Thanks in advance</div><div><br></div><div>Alok</div>