<div dir="ltr">Hi<div><br></div><div>I need to confirm if a call is UP and terminate it from my code. I have previously stored callid, h_entry and h_id on an internal list, so I&#39;m executing at a specific time:</div><div><br></div><div>dlg_api.terminate_dlg(h_entry, h_id);<br></div><div><br></div><div>If the call is still running, it works nicely and hangup the call. If there is a problem, I get a negative value and solve too. The problem is if the call is not up anymore, I get a return == 0. This is the code of terminate_dlg function:</div><div><div><br></div><div><div>struct dlg_cell * dlg = NULL;</div></div><div><br></div><div>dlg = lookup_dlg(h_entry, h_id);</div><div><br></div><div>        if(!dlg)</div><div>                return 0;</div></div><div><br></div><div>This function &quot;lookup_dlg&quot; isn&#39;t exported.<br></div><div><br></div><div>Is there anyway to confirm if the call is still running, if I have these values Callid, h_entry and h_id?</div><div><br></div><div>Thanks!</div><div><br></div></div>