<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font color="#2672EC">Try the following example. Change connection IP and codec order accordingly.</font><div><font color="#2672EC"><br></font></div><div><pre style="box-sizing: border-box; overflow: auto; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 11.9px; font-stretch: normal; line-height: 1.45; padding: 16px; border-radius: 3px; word-wrap: normal; color: rgb(51, 51, 51); margin-top: 0px !important; margin-bottom: 0px !important; background-color: rgb(247, 247, 247);"><code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 11.9px; padding: 0px; margin: 0px; border-radius: 3px; word-break: normal; border: 0px; display: inline; max-width: initial; overflow: initial; line-height: inherit; word-wrap: normal; background: transparent;">if (is_method("INVITE") && has_body("application/sdp")) {
$var(Session_owner) = $rb[1];
append_to_reply("Content-Type: application/sdp\r\nv=0\r\n$var(Session_owner)\r\ns=call\r\nc=IN IP4 10.130.130.114\r\nt=0 0\r\nm=audio 61896 RTP 0 8 3 101\r\na=rtpmap:0 pcmu/8000\r\na=rtpmap:8 pcma/8000\r\na=rtpmap:3 gsm/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101 0-16\r\na=ptime:20\r\na=sendrecv\r\n")';
t_reply_with_body("183", "Session Progress", "$var(body)");
}</code></pre><br><br><b><font color="#5133ab" face="Times New Roman" size="3"><i>Hamid R. Hashmi</i></font></b><div><font size="2">Software Engineer - VoIP</font></div><div><font color="#008a17" size="2" style="font-size:10pt;">Vopium A/S</font></div><br><br><div><hr id="stopSpelling">Date: Wed, 6 Jan 2016 20:33:29 +0300<br>From: husnain.taseer@gmail.com<br>To: users@lists.opensips.org<br>Subject: [OpenSIPS-Users] Generating 183 reply and Playing Early Media using        rtpproxy_stream2uac()<br><br><div dir="ltr">Dear Users,<div>I have a scenario where I want to Play an announcement as early media to the UAC before answering the call but I don't want to use any media server like asterisk/Freeswitch. </div><div><br></div><div>When user agent sends an INVITE I am calling rtpproxy_offer() and sending INVITE to B party. On 100 Trying from B party I am calling rtpproxy_stream2uac() and streaming the file I can see that RTPs are going towards the UAC (caller) but softphone is not accepting those RTPs because 183 was not sent to the softphone so he don't know the media details of the rtpproxy. but as 200 Ok reaches to the softphone last part of the audio can be heard immediately after Answer. </div><div><br></div><div>So I think on 100 Trying from B Part if I send 183 Session Progress to the softphone and then starting the RTP stream will work. So can you please tell me is there a way to generate 183 Session Progress with media details of RTPPROXY in opensips ? so that my scenario starts work.<br><br>Regards,</div><div>Husnain Taseer</div><div>VoIP Developer</div></div>
<br>_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users</div></div>                                            </div></body>
</html>