Re: [OpenSIPS-Users] Opensips and rtpengine_play_media not absorbing ACK

2023-11-13 Thread Bogdan-Andrei Iancu
Hi there, trying to maintain a dialog stateful UAS from script level may be something difficult and painful to do. Maybe you should take a look at the UAC/UAS support provided by the b2b_entities module in OpenSIPS 3.4: https://blog.opensips.org/2023/03/22/api-driven-sip-user-agent-end-point-w

Re: [OpenSIPS-Users] Opensips and rtpengine_play_media not absorbing ACK

2023-11-10 Thread Kevin Kennedy
I was able to send the BYE to the call by adding a parameter in the dialog module to timeout the dialog with a short time letting the announcement play, and added the create_dialog with the flag of B to send BYE on dialog timeout at the beginning of the route. Now that the transactions are working

Re: [OpenSIPS-Users] Opensips and rtpengine_play_media not absorbing ACK

2023-11-10 Thread Kevin Kennedy
Looks like if I put t_newtran(); in the main route this created the transaction and allowed the ACK to be recognized. Now How do I force Opensips to send a BYE. Thank you. On Fri, Nov 10, 2023 at 11:44 AM Kevin Kennedy wrote: > > > I was able to get audio, The problem I was having is

Re: [OpenSIPS-Users] Opensips and rtpengine_play_media not absorbing ACK

2023-11-10 Thread Kevin Kennedy
>>> I was able to get audio, The problem I was having is the Originator >>> string in the SDP. However, I am still having the same issue with >>> accepting the ACK from the Originator and not resending the 200OK. Can >>> someone please help with this issue? >>> >>> Thank

Re: [OpenSIPS-Users] Opensips and rtpengine_play_media not absorbing ACK

2023-11-09 Thread Kevin Kennedy
gt;>> } } route[media] { if (has_body("application/sdp")) { >>>>> rtpengine_offer(); >>>>> } $json(reply) := $rtpquery; >>>>> $var(port)=$json_pretty(reply/tags/$ft/medias[0]/streams[0]/local >>>>> port); >>>>> remove_body_part(); append_to_reply("Contact: >&g

Re: [OpenSIPS-Users] Opensips and rtpengine_play_media not absorbing ACK

2023-11-07 Thread Kevin Kennedy
>>>> $(rb{re.subst,/(IP4.).*/\1$socket_in(ip)/g}); $var(body) = >>>> $(var(body){re.subst,/(audio.)./\1$var(port)/g}); >>>> t_reply_with_body(200, "OK", $var(body)); >>>> rtpengine_play_media("call-id=$ci from-tag=$ft >>>> file=/etc/rtpengine/media.wa

Re: [OpenSIPS-Users] Opensips and rtpengine_play_media not absorbing ACK

2023-11-06 Thread Kevin Kennedy
;> rtpengine_play_media("call-id=$ci from-tag=$ft >>> file=/etc/rtpengine/media.wav"); async(sleep(10), after_media); } >>> route[after_media] { if (t_was_cancelled()) { rtpengine_delete(); exit; >>> } else { rtpengine_delete(); sl_send_reply(486,"Busy here"); exit; } } >>> >>>

Re: [OpenSIPS-Users] Opensips and rtpengine_play_media not absorbing ACK

2023-11-06 Thread Kevin Kennedy
, after_media); } >> route[after_media] { if (t_was_cancelled()) { rtpengine_delete(); exit; >> } else { rtpengine_delete(); sl_send_reply(486,"Busy here"); exit; } } >> >> and pined previous posts below :) >> >> > -------------- &

Re: [OpenSIPS-Users] Opensips and rtpengine_play_media not absorbing ACK

2023-11-03 Thread Kevin Kennedy
it; > } else { rtpengine_delete(); sl_send_reply(486,"Busy here"); exit; } } > > and pined previous posts below :) > > > -- > > Message: 2 > > Date: Fri, 3 Nov 2023 16:00:22 +0500 > > From: Dmitry Ponomaryov > > To:users@l

Re: [OpenSIPS-Users] Opensips and rtpengine_play_media not absorbing ACK

2023-11-03 Thread Dmitry Ponomaryov
Date: Fri, 3 Nov 2023 16:00:22 +0500 From: Dmitry Ponomaryov To:users@lists.opensips.org Subject: Re: [OpenSIPS-Users] Opensips and rtpengine_play_media not absorbing ACK Message-ID:<3971cbc2-7281-2299-4212-7f241e8b8...@gmail.com> Content-Type: text/plain; charset="utf-8"; Format

Re: [OpenSIPS-Users] Opensips and rtpengine_play_media not absorbing ACK

2023-11-03 Thread Dmitry Ponomaryov
Hello everyone, I would like to show my part of the code when playing early media after 200OK, when creating dialogs, I substituted $DLG_did in the contact of my dialog, and received the same $DLG_did for my dialog in ACK, but OpenSIPS also continued to send 200OK , despite having already recei

[OpenSIPS-Users] Opensips and rtpengine_play_media not absorbing ACK

2023-11-02 Thread Kevin Kennedy
I am trying to build a solution where Opensips 3.2+ with RTPengine acts as a UAC, answers a call with 200OK, plays media from file, and will terminate the call right after playing announcement. Opensips is responding with 200OK with SDP body and making the correct changes for the IP, but when the