[OpenSIPS-Users] Caller not able to hear Audio file

Kevin Kennedy kennedy4260 at gmail.com
Thu Nov 2 19:50:06 UTC 2023

I was able to figure out how to do this in Opensips 3.3

        rtpengine_manage("from-tag=$ft replace-session-connection
trust-address replace-origin codec-strip-g729",,$var(body));
        append_to_reply("Contact: <sip:$socket_out>\r\n");
        append_to_reply("Content-Type: application/sdp\r\n");
        t_reply_with_body(183, "SessionProgress", $var(body));
        rtpengine_play_media("from-tag=$ft file=/etc/rtpengine/music.wav");
        t_reply(603, "Forbidden")

Still having problems with late media invite on this, but trying with 200
OK instead of 183 but not able to absorb the ACK coming back.

On Wed, Nov 1, 2023 at 8:02 PM Kevin Kennedy <kennedy4260 at gmail.com> wrote:

> Devang,
> Curious if you have found a solution to this problem, as I am having the
> same problem with Opensips 3.3 and rtpengine.
> Thank you.
> Kevin
> On Mon, Aug 14, 2023, 3:54 AM Devang Dhandhalya via Users <
> users at lists.opensips.org> wrote:
>> Hello All
>> I am facing the problem that when I make a call, I am not able to hear
>> the audio file on my softphone(zoiper3&5, microsip) which is playing from
>> opensips using rtpengine module, but when i capture the that call sip trace
>> and load that pcap in wireshark i am able to hear audio file music.
>> Here is the code snippet:
>>     rtpengine_offer();
>>     append_to_reply("Content-Type: application/sdp\r\n");
>>     $var(body) = $(rb{re.subst,/(IP4.).*/\1127.0.0.1/g});
>>     t_reply_with_body(183, "Session Progress", $var(body));
>> rtpengine_play_media("file=/home/file_example_WAV_2MG_G711.org_1.wav");
>> opensips version: 3.2.5
>> I am using a Standard wave audio file with 8KHz, 16bit mono, I used other
>> formats (i.e.mp3) as well but still in softphones I am not able to Hear
>> voice but in wireshark I am able to hear mp3 file voice.
>> I would appreciate it if someone has an idea what to do. Please feel free
>> to ask if you think I have forgotten to describe something that might be
>> important or something is unclear in what I have written.
>> Regards
>> Devang Dhandhalya
>> *Disclaimer*
>> In addition to generic Disclaimer which you have agreed on our website,
>> any views or opinions presented in this email are solely those of the
>> originator and do not necessarily represent those of the Company or its
>> sister concerns. Any liability (in negligence, contract or otherwise)
>> arising from any third party taking any action, or refraining from taking
>> any action on the basis of any of the information contained in this email
>> is hereby excluded.
>> *Confidentiality*
>> This communication (including any attachment/s) is intended only for the
>> use of the addressee(s) and contains information that is PRIVILEGED AND
>> CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or copying
>> of this communication is prohibited. Please inform originator if you have
>> received it in error.
>> *Caution for viruses, malware etc.*
>> This communication, including any attachments, may not be free of
>> viruses, trojans, similar or new contaminants/malware, interceptions or
>> interference, and may not be compatible with your systems. You shall carry
>> out virus/malware scanning on your own before opening any attachment to
>> this e-mail. The sender of this e-mail and Company including its sister
>> concerns shall not be liable for any damage that may incur to you as a
>> result of viruses, incompleteness of this message, a delay in receipt of
>> this message or any other computer problems.
>> _______________________________________________
>> 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/20231102/dd875e60/attachment-0001.html>

More information about the Users mailing list