Brian, <br><br>thanks for your reply<br><br>I going to try to explain better my problem. I will use examples to do this task.<br><br>Scenario A:<br><br>Endpoint 1 <--(sip,rtp)--> FS <--(sip,rtp)--> Endpoint 2<div>
<br>* Endpoint 1 is nated.<br>* Endpoint 2 is not nated
</div><div>* Endpoint 1 is sending wrong SDP info, sending local IP instead of public IP (switch_r_sdp). but FS can fix this problem with <variable name="sip-force-contact" value="NDLB-connectile-dysfunction"/><br>
<br></div><div>the switch_r_sdp in this scenario is:</div><div><br></div><div>"[v=0</div><div>o=- 3 2 IN IP4 10.0.100.21</div><div>s=CounterPath X-Lite 3.0</div><div>c=IN IP4 10.0.100.21</div><div>t=0 0</div><div>m=audio 7208 RTP/AVP 100 106 0 105 98 8 3 101</div>
<div>a=rtpmap:100 SPEEX/16000</div><div>a=rtpmap:106 SPEEX-FEC/16000</div><div>a=rtpmap:105 SPEEX-FEC/8000</div><div>a=rtpmap:98 iLBC/8000</div><div>a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-15</div><div>a=alt:1 1 : rnYgTtVR uOhvAtG7 10.0.100.21 7208</div>
<div>]"</div><div><br></div><div><div>Scenario B:</div><div><br></div><div>SIP:</div><div>Endpoint 1 <--(sip)--> FS A <--(sip)--> Endpoint 2</div><div><br></div><div>RTP</div><div><br></div><div>Endpoint 1 <--(rtp)--> FS A <--(rtp)--> Endpoint 2<br>
</div><div><br></div><div>* Endpoint 1 is nated.<br>* Endpoint 2 is not nated<br></div><div>* Fs is configured with <action application="set" data="bypass_media=true"/></div><div><br></div><div><div>
the switch_r_sdp in this scenario is:</div><div><br></div><div>"[v=0</div><div>o=- 3 2 IN IP4 10.0.100.21</div><div>s=CounterPath X-Lite 3.0</div><div>c=IN IP4 10.0.100.21</div><div>t=0 0</div><div>m=audio 7208 RTP/AVP 100 106 0 105 98 8 3 101</div>
<div>a=rtpmap:100 SPEEX/16000</div><div>a=rtpmap:106 SPEEX-FEC/16000</div><div>a=rtpmap:105 SPEEX-FEC/8000</div><div>a=rtpmap:98 iLBC/8000</div><div>a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-15</div><div>a=alt:1 1 : rnYgTtVR uOhvAtG7 10.0.100.21 7208</div>
<div>]"</div></div><div> </div><div>But it is wrong, the correct one must be:</div><div><br></div><div><div>[v=0</div><div>o=- 3 2 IN IP4 200.49.24.35</div><div>s=CounterPath X-Lite 3.0</div><div>c=IN IP4 200.49.24.35</div>
<div>t=0 0</div><div>m=audio 63936 RTP/AVP 100 106 0 105 98 8 3 101</div><div>a=rtpmap:100 SPEEX/16000</div><div>a=rtpmap:106 SPEEX-FEC/16000</div><div>a=rtpmap:105 SPEEX-FEC/8000</div><div>a=rtpmap:98 iLBC/8000</div><div>
a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-15</div><div>a=alt:1 2 : CtEyvKrr I3ZLmyBD 10.0.100.21 63936</div><div>a=alt:2 1 : 6JO5oo5+ hWtLJ+lx 200.49.24.35 63936</div><div>]</div></div><div><br></div><div>To have a correct one I had to configure stun in the endpoint, but the problem is my <span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><span class="Apple-style-span" style="font-family: arial; font-size: 13px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; ">infrastructure is close to 1000 Endpoints and in some cases I cant reach then to configure properly.<span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><span class="Apple-style-span" style="font-family: arial; font-size: 13px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; "> </span></span></span></span></div>
<div><br></div><div>There any way to fix switch_r_sdp? I can use Opensips or similar SIP proxy but this can add another possible point to failure, and the issue is quite simple.</div><div><br></div><div>Thanks in Advance.</div>
<div><br><div class="gmail_quote">On Tue, May 12, 2009 at 12:11 AM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div>Juan,<div><span style="white-space:pre">        </span>Can you explain your situation a little better you seem to have breezed over the critical details. Also you should enable STUN on your endpoints and not depend on your Registrar to overcome nat issues since its not its job.</div>
<div><br></div><div>/b</div><div><div><br><div><div>On May 11, 2009, at 10:03 PM, Juan Manuel Vicente wrote:</div><br><blockquote type="cite"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">So far I've been able to succesfully do it if both endpoint are not nated, how ever I do need to do it in a Natted sceneario too, for what I have been sniffing the problem is that in the INVITE, the SDP is sending the internal IP instead of the external.</span></blockquote>
</div><br></div><div> <span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>
<div>Brian West</div><div><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></div><div><br></div></div></span>-- Meet us at ClueCon! <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>
<div><br></div></div></span><br></div></span><br> </div><br></div></div><br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
</div></div>