<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Awesome!<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thank you for answering! :D<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> users-bounces@lists.opensips.org [mailto:users-bounces@lists.opensips.org] <b>On Behalf Of </b>Razvan Crainea<br><b>Sent:</b> Tuesday, October 28, 2014 1:24 PM<br><b>To:</b> users@lists.opensips.org<br><b>Subject:</b> Re: [OpenSIPS-Users] Selecting RTPproxy instance on 200 OK reply<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal><tt><span style='font-size:10.0pt'>Hi, Grant!</span></tt><span style='font-size:10.0pt;font-family:"Courier New"'><br><br><tt>For the reply, you have to select _the same_ set. You don't really have to add the same decision logic for reply, you can store the set used for requests in the AVP and use that AVP on the reply.</tt><br><br><tt>Best regards,</tt><br><br></span><o:p></o:p></p><pre>Răzvan Crainea<o:p></o:p></pre><pre>OpenSIPS Solutions<o:p></o:p></pre><pre><a href="http://www.opensips-solutions.com">www.opensips-solutions.com</a><o:p></o:p></pre><p class=MsoNormal>On 10/27/2014 11:07 AM, Grant Bagdasarian wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>I have the following RTPproxy configuration:<o:p></o:p></p><p class=MsoNormal>modparam("nathelper", "rtpproxy_sock", "1 == udp:127.0.0.1:12221")<o:p></o:p></p><p class=MsoNormal>modparam("nathelper", "rtpproxy_sock", "2 == udp:127.0.0.1:12222")<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>In the main route I decide which instance to select for each INVITE containing SDP:<o:p></o:p></p><p class=MsoNormal>if($ru=~"1.1.1.10") {<o:p></o:p></p><p class=MsoNormal> set_rtp_proxy_set("1");<o:p></o:p></p><p class=MsoNormal> xlog("L_INFO", "USE RTP PROXY 01 \r\n");<o:p></o:p></p><p class=MsoNormal>} else if($ru=~"2.2.2.10") {<o:p></o:p></p><p class=MsoNormal> set_rtp_proxy_set("2");<o:p></o:p></p><p class=MsoNormal> xlog("L_INFO", "USE RTP PROXY 02 \r\n");<o:p></o:p></p><p class=MsoNormal>} else {<o:p></o:p></p><p class=MsoNormal> t_reply("404", "Not Found");<o:p></o:p></p><p class=MsoNormal> exit;<o:p></o:p></p><p class=MsoNormal>}<o:p></o:p></p><p class=MsoNormal>rtpproxy_offer();<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>I’m getting the following error for a 200 OK:<o:p></o:p></p><p class=MsoNormal>ERROR:nathelper:select_rtpp_node: script error -no valid set selected<o:p></o:p></p><p class=MsoNormal>ERROR:nathelper:force_rtp_proxy_body: no available proxies<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Do I need to do the same decision for 200 OK messages, and call rtpproxy_answer()? <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Regards,<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Grant<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br><br><br><o:p></o:p></span></p><pre>_______________________________________________<o:p></o:p></pre><pre>Users mailing list<o:p></o:p></pre><pre><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><o:p></o:p></pre><pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre></blockquote><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p></div></body></html>