<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>Hi, Grant!<br>
<br>
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.<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
On 10/27/2014 11:07 AM, Grant Bagdasarian wrote:<br>
</div>
<blockquote
cite="mid:FB7D97A214987F458242ACBDF87614073D84FD0729@clubvirtual40.ClubMessage.local"
type="cite">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
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;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {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]-->
<div class="WordSection1">
<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>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>