Hi Chris, I've attached the console logs for your reference. It really hits 888 in the dialplan and the external call can hear the echo without any problem. <br><br>One thing attracts me is how the ip addresses are translated. Here's the working external example:<br>
<br><ses:candidate address="<b>192.168.2.150</b>" port="1726" name="rtp" username="k+TZoLgUQB02PV/C" password="pQ3hz/DzarYnnLhJ" preference="1" protocol="udp" generation="0" network="0" type="local"></ses:candidate> <b>(external party's local addr)</b><br>
<br><ses:candidate address="<b>123.118.149.94</b>" port="45538" name="rtp" username="C5lc0jkpxDBWVRn6" password="u2lw7FbrzmaJJSHq" preference="0.9" protocol="udp" generation="0" network="0" type="stun"></ses:candidate> <b> (external party's global addr)</b><br>
<br><ses:candidate name="rtp" address="<b>59.189.194.244</b>" port="17112" username="PQ0Fmus5M3udzy3G" password="PQ0Fmus5M3udzy3G" preference="1.0" protocol="udp" type="stun" network="0" generation="0"></ses:candidate> <b>(server's global addr)</b><br>
<br>Here's the non-working internal exmaple:<br><br><candidate name="rtp" address="<b>192.168.1.101</b>" port="2202" preference="1" username="y6P1CToBaRZpybAl" protocol="udp" generation="0" password="tcrX5Wj426qTa1Cx" type="local" network="0"></candidate> <b>(internal party's local addr)</b><br>
<br><candidate name="rtp" address="<b>59.189.194.244</b>" port="2203" preference="0.9" username="UMuUvr9o66D2myqb" protocol="udp" generation="0" password="vvq4+GUsOYV/On5g" type="stun" network="0"></candidate> <b> (internal party's global addr)</b><br>
<br><ses:candidate name="rtp" address="<b>59.189.194.244</b>" port="30578" username="MeymWgoZwasUm32h" password="MeymWgoZwasUm32h" preference="1.0" protocol="udp" type="stun" network="0" generation="0"></ses:candidate> <b> (server's global addr)</b><br>
<br><candidate name="rtp" address="<b>192.168.1.101</b>" port="2202" preference="1" username="y6P1CToBaRZpybAl" protocol="udp" generation="0" password="tcrX5Wj426qTa1Cx" type="local" network="0"></candidate> <b> (internal party's local addr, again!)</b><br>
<candidate name="rtp" address="<b>59.189.194.244</b>" port="2203" preference="0.9" username="UMuUvr9o66D2myqb" protocol="udp" generation="0" password="vvq4+GUsOYV/On5g" type="stun" network="0"></candidate> <b> (internal party's global addr)</b><br>
<br><candidate name="rtp" address="<b>209.85.201.126</b>" port="19295" preference="0.5" username="91jrUtL10nk9VcrZ" protocol="udp" generation="0" password="9s8fNrseavVslvyZ" type="relay" network="0"></candidate> <b>(google's global addr)</b><br>
<br><candidate name="rtp" address="<b>209.85.201.126</b>" port="19294" preference="0.5" username="91jrUtL10nk9VcrZ" protocol="tcp" generation="0" password="9s8fNrseavVslvyZ" type="relay" network="0"></candidate> <b> (google's global addr)</b><br>
<br><candidate name="rtp" address="<b>192.168.1.101</b>" port="2205" preference="0.8" username="g3/qPdtEdo02zm8Y" protocol="tcp" generation="0" password="WYRbJIk5vcToxsqT" type="local" network="0"></candidate> <b> (internal party's local addr, 3rd time!)</b><br>
<br><candidate name="rtp" address="<b>209.85.201.126</b>" port="443" preference="0.5" username="91jrUtL10nk9VcrZ" protocol="ssltcp" generation="0" password="9s8fNrseavVslvyZ" type="relay" network="0"></candidate> <b>(google's global addr)</b><br>
<br><br>And finally, when the call was hung up, the internal one showed an error like this:<br><br><iq to="<a href="http://yyyyyy@gmail.com/talk930C641A">yyyyyy@gmail.com/talk930C641A</a>" id="308" type="error" from="<a href="http://xxxxxx@gmail.com/Talk.v1046D90E88C">xxxxxx@gmail.com/Talk.v1046D90E88C</a>"><br>
<ses:session type="terminate" id="186547325" initiator="<a href="http://xxxxxx@gmail.com/Talk.v1046D90E88C">xxxxxx@gmail.com/Talk.v1046D90E88C</a>" xmlns:ses="<a href="http://www.google.com/session">http://www.google.com/session</a>"></ses:session><br>
<error type="modify"><br> <sta:bad-request xmlns:sta="urn:ietf:params:xml:ns:xmpp-stanzas"></sta:bad-request><br> <sta:text xml:lang="en" xmlns:sta="urn:ietf:params:xml:ns:xmpp-stanzas">unknown session</sta:text><br>
</error><br></iq><br><br>Regards,<br>-Jingwei<br><br><div class="gmail_quote">On Mon, Jul 13, 2009 at 7:29 PM, Chris Chen <span dir="ltr"><<a href="mailto:chris.chen2004@gmail.com">chris.chen2004@gmail.com</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;">Jingwei, can you show your console log when somebody is calling you from gtalk client? Will it really hit 888 in your dialplan?<br>
Thanks,<br><font color="#888888">Chris</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, Jul 13, 2009 at 5:27 AM, Jingwei Yang <span dir="ltr"><<a href="mailto:jingwei.yang@gmail.com" target="_blank">jingwei.yang@gmail.com</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;">Hi Chris, sorry for the late reply. Have been quite busy last few days. <br><br>I had shifted 888 from default.xml to public.xml and the dialplan is simply having an echo action now. I've turned on dl_debug but unfortunately didn't find anything useful. Logs are attached for your reference. <br>
<br>I don't think there's something wrong with the dialplan as two external parties can talk to each other perfectly (with ext-rtp-ip uncommented, at this time my ip was interpreted to be an external one). With ext-rtp-ip commented, I can hear the echo and I saw my ip was translated into an internal one (at this time, external party's audio failed). <br>
<br>I tried the method on this wiki page as well: <a href="http://wiki.freeswitch.org/wiki/NAT_Traversal" target="_blank">http://wiki.freeswitch.org/wiki/NAT_Traversal</a> (the last FreeSwitch behind NAT portion) but still no luck. Please kindly let me know what other configs I should change.<br>
<br>Thanks,<br><font color="#888888">-Jingwei<br><br></font><div class="gmail_quote"><div>On Mon, Jun 29, 2009 at 6:46 PM, Chris Chen <span dir="ltr"><<a href="mailto:chris.chen2004@gmail.com" target="_blank">chris.chen2004@gmail.com</a>></span> wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
Jingwei, I don't know if you have the 888 defined in default.xml? also you have to define $${domain}.<br>please do " dl_debug on" from fs_cli, and watch the console logs and see what's going on when you try calling from external. Most likely your dialplan is not correctly defined.<br>
<font color="#888888">
<br>Chris</font><br></div><div>_______________________________________________<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></div></blockquote></div><br>
<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><br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">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>