[OpenSIPS-Users] capturing the media address upon conenction
Jehanzaib Younis
jehanzaib.kiani at gmail.com
Tue Jun 11 21:38:52 UTC 2024
You can save the initial media address.
rtpengine_offer();
$var(media_address_invite) = $rtpengine_media_address;
and then save the updated media address
if (is_method("ACK")) {
rtpengine_answer();
$var(media_address_200ok) = $rtpengine_media_address;
}
You can do manipulation in the ACK check if you want to save in the cdr
just use acc module and save.
Regards,
Jehanzaib
On Wed, Jun 12, 2024 at 6:11 AM Saint Michael <venefax at gmail.com> wrote:
> I need to save the media address offering to the CDR. I understand
> that it comes with the INVITE but it changes upon connection. Any
> idea how to do this?
> Also, I need to drop the call if the media address matches a list of
> blocked addresses.
> Philip
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20240612/68d3a406/attachment.html>
More information about the Users
mailing list