Hi Bogdan.  You are my hero!  Thank you for the prompt reply.  I will test
that out and let you know.

Thank you!

On Wed, Jan 19, 2022 at 9:55 AM Bogdan-Andrei Iancu <bog...@opensips.org>
wrote:

> Hi Alexander,
>
> You actually have 2 options here:
>
> 1) if you want to do that for all the calls, you can use
> E_DLG_STATE_CHANGED [1] event via the event route [2]. And check when the
> new dialog state is TERMINATED
>
> 2) if you want to do it only for some calls, use the dlg_on_hangup hook
> [3] and have it set only for the calls you need.
>
>
> [1]
> https://opensips.org/html/docs/modules/3.2.x/dialog.html#event_E_DLG_STATE_CHANGED
> [2] https://www.opensips.org/Documentation/Script-Routes-3-2#toc9
> [3]
> https://opensips.org/html/docs/modules/3.2.x/dialog.html#func_dlg_on_hangup
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
> OpenSIPS eBootcamp 2021
>   https://opensips.org/training/OpenSIPS_eBootcamp_2021/
>
> On 1/19/22 3:37 PM, Alexander Perkins wrote:
>
> Hi All.  I would like to invoke a web service when the call hangs up.  I'd
> like to send over to the web service items such as how long the calls
> lasted (milliseconds), etc.  I know how to invoke the web service, but
> where should I invoke it so it can send over those variables?
>
> Thank you!
>
> _______________________________________________
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to