<div dir="ltr">Hi Bogdan. You are my hero! Thank you for the prompt reply. I will test that out and let you know.<div><br></div><div>Thank you!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 19, 2022 at 9:55 AM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<font face="monospace">Hi Alexander,<br>
<br>
You actually have 2 options here:<br>
<br>
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<br>
<br>
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.<br>
<br>
<br>
[1]
<a href="https://opensips.org/html/docs/modules/3.2.x/dialog.html#event_E_DLG_STATE_CHANGED" target="_blank">https://opensips.org/html/docs/modules/3.2.x/dialog.html#event_E_DLG_STATE_CHANGED</a><br>
[2] <a href="https://www.opensips.org/Documentation/Script-Routes-3-2#toc9" target="_blank">https://www.opensips.org/Documentation/Script-Routes-3-2#toc9</a><br>
[3]
<a href="https://opensips.org/html/docs/modules/3.2.x/dialog.html#func_dlg_on_hangup" target="_blank">https://opensips.org/html/docs/modules/3.2.x/dialog.html#func_dlg_on_hangup</a><br>
<br>
Regards,<br>
</font>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 2021
<a href="https://opensips.org/training/OpenSIPS_eBootcamp_2021/" target="_blank">https://opensips.org/training/OpenSIPS_eBootcamp_2021/</a></pre>
<div>On 1/19/22 3:37 PM, Alexander Perkins
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">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?<br>
<div><br>
</div>
<div>Thank you!</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div>