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
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
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
>>> 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
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
>>>> $(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
;> 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; } }
>>>
>>>
, 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 :)
>>
>> > --------------
&
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
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
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
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
12 matches
Mail list logo