[OpenSIPS-Devel] Get Dialog from callid or h_entry/h_id

Daniel Zanutti daniel.zanutti at gmail.com
Wed Jul 13 20:21:23 CEST 2016


Hi

Anyone could please help on this?

Thanks


On Mon, Jul 11, 2016 at 3:23 PM, Daniel Zanutti <daniel.zanutti at gmail.com>
wrote:

> Hi
>
> 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'm
> executing at a specific time:
>
> dlg_api.terminate_dlg(h_entry, h_id);
>
> 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:
>
> struct dlg_cell * dlg = NULL;
>
> dlg = lookup_dlg(h_entry, h_id);
>
>         if(!dlg)
>                 return 0;
>
> This function "lookup_dlg" isn't exported.
>
> Is there anyway to confirm if the call is still running, if I have these
> values Callid, h_entry and h_id?
>
> Thanks!
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160713/548ee752/attachment.htm>


More information about the Devel mailing list