Hi Chris, sorry for the late reply. Have been quite busy last few days.

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.

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).

I tried the method on this wiki page as well:
http://wiki.freeswitch.org/wiki/NAT_Traversal (the last FreeSwitch behind
NAT portion) but still no luck. Please kindly let me know what other configs
I should change.

Thanks,
-Jingwei

On Mon, Jun 29, 2009 at 6:46 PM, Chris Chen <[email protected]>wrote:

> Jingwei, I don't know if you have the 888 defined in default.xml?  also you
> have to define $${domain}.
> 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.
>
> Chris
> _______________________________________________
> Freeswitch-users mailing list
> [email protected]
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
[email protected]> originate 
dingaling/gmail.com/[email protected] &echo
2009-07-13 15:19:34.950696 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<presence type="subscribe" to="[email protected]" 
from="[email protected]/talkC4CD0A96">
  <status>Call Me!</status>
</presence>

2009-07-13 15:19:34.950696 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<presence xmlns="jabber:client" type="probe" to="[email protected]" 
from="[email protected]/talkC4CD0A96"></presence>

2009-07-13 15:19:35.643651 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<presence from="[email protected]/Talk.v1044787A7ED" to="[email protected]">
  <priority>24</priority>
  <c node="http://www.google.com/xmpp/client/caps"; ver="1.0.0.104" 
ext="share-v1 voice-v1" xmlns="http://jabber.org/protocol/caps";></c>
  <x stamp="20090713T05:10:30" xmlns="jabber:x:delay"></x>
  <status></status>
  <x xmlns="vcard-temp:x:update">
    <photo></photo>
  </x>
</presence>

2009-07-13 15:19:35.647665 [NOTICE] switch_channel.c:602 New Channel 
dingaling/gmail.com/[email protected] [dde6f921-ed98-46c0-9628-8f2c0d1b2835]
2009-07-13 15:19:35.648943 [NOTICE] mod_dingaling.c:1084 Ring-Ready 
dingaling/gmail.com/[email protected]!
2009-07-13 15:19:35.651651 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<message to="[email protected]" type="chat" from="[email protected]/talkC4CD0A96" 
subject="">
  <body>Incoming Call From FreeSWITCH 0000000000
  </body>
</message>

2009-07-13 15:19:35.651651 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq xmlns="jabber:client" from="[email protected]/talkC4CD0A96" 
to="[email protected]/Talk.v1044787A7ED" type="set" id="303">
  <ses:session xmlns:ses="http://www.google.com/session"; type="initiate" 
id="1019592811" initiator="[email protected]/talkC4CD0A96">
    <pho:description xmlns:pho="http://www.google.com/session/phone"; 
xml:lang="en">
      <pho:payload-type xmlns:pho="http://www.google.com/session/phone"; id="0" 
name="PCMU" clockrate="8000" bitrate="64000"></pho:payload-type>
    </pho:description>
    <transport xmlns="http://www.google.com/transport/p2p";></transport>
  </ses:session>
</iq>

2009-07-13 15:19:35.662651 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<presence from="[email protected]/Talk.v1044787A7ED" 
to="[email protected]/talkC4CD0A96">
  <priority>24</priority>
  <c node="http://www.google.com/xmpp/client/caps"; ver="1.0.0.104" 
ext="share-v1 voice-v1" xmlns="http://jabber.org/protocol/caps";></c>
  <x stamp="20090713T05:10:30" xmlns="jabber:x:delay"></x>
  <status></status>
  <x xmlns="vcard-temp:x:update">
    <photo></photo>
  </x>
</presence>

2009-07-13 15:19:36.458618 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="[email protected]/talkC4CD0A96" id="303" type="result" 
from="[email protected]/Talk.v1044787A7ED"></iq>

2009-07-13 15:19:36.631611 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="[email protected]/talkC4CD0A96" type="set" id="193" 
from="[email protected]/Talk.v1044787A7ED">
  <session type="transport-accept" id="1019592811" 
initiator="[email protected]/talkC4CD0A96" xmlns="http://www.google.com/session";>
    <transport xmlns="http://www.google.com/transport/p2p";></transport>
  </session>
</iq>

2009-07-13 15:19:36.657730 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="[email protected]/Talk.v1044787A7ED" 
from="[email protected]/talkC4CD0A96" id="193">
  <query></query>
</iq>

2009-07-13 15:19:36.872615 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="[email protected]/talkC4CD0A96" type="set" id="194" 
from="[email protected]/Talk.v1044787A7ED">
  <session type="transport-info" id="1019592811" 
initiator="[email protected]/talkC4CD0A96" xmlns="http://www.google.com/session";>
    <transport xmlns="http://www.google.com/transport/p2p";>
      <candidate name="rtp" address="192.168.1.101" port="4593" preference="1" 
username="WjttITKLJ6VvT+qP" protocol="udp" generation="0" 
password="Rq17lmTtvn0hNjEn" type="local" network="0"></candidate>
    </transport>
  </session>
</iq>

2009-07-13 15:19:36.959598 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="[email protected]/Talk.v1044787A7ED" 
from="[email protected]/talkC4CD0A96" id="194">
  <query></query>
</iq>

2009-07-13 15:19:37.14595 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="[email protected]/talkC4CD0A96" type="set" id="195" 
from="[email protected]/Talk.v1044787A7ED">
  <session type="transport-info" id="1019592811" 
initiator="[email protected]/talkC4CD0A96" xmlns="http://www.google.com/session";>
    <transport xmlns="http://www.google.com/transport/p2p";>
      <candidate name="rtp" address="59.189.194.106" port="4594" 
preference="0.9" username="eIK2MtQDJJESYjeM" protocol="udp" generation="0" 
password="QJDTcFpSHN9Y36Bm" type="stun" network="0"></candidate>
    </transport>
  </session>
</iq>

2009-07-13 15:19:37.60593 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="[email protected]/Talk.v1044787A7ED" 
from="[email protected]/talkC4CD0A96" id="195">
  <query></query>
</iq>

2009-07-13 15:19:40.791443 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="[email protected]/talkC4CD0A96" type="set" id="197" 
from="[email protected]/Talk.v1044787A7ED">
  <session type="accept" id="1019592811" 
initiator="[email protected]/talkC4CD0A96" xmlns="http://www.google.com/session";>
    <description xml:lang="en" xmlns="http://www.google.com/session/phone";>
      <payload-type id="0" name="PCMU" clockrate="8000" 
bitrate="64000"></payload-type>
    </description>
  </session>
</iq>

2009-07-13 15:19:41.680379 [INFO] mod_dingaling.c:974 Stun Success 
59.189.194.106:26746
2009-07-13 15:19:41.691378 [NOTICE] mod_dingaling.c:1142 Channel 
[dingaling/gmail.com/[email protected]] has been answered
API CALL [originate(dingaling/gmail.com/[email protected] &echo)] output:
+OK dde6f921-ed98-46c0-9628-8f2c0d1b2835

[email protected]> 2009-07-13 15:19:41.762376 [NOTICE] 
libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="[email protected]/Talk.v1044787A7ED" 
from="[email protected]/talkC4CD0A96" id="197">
  <query></query>
</iq>

2009-07-13 15:19:41.762376 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq xmlns="jabber:client" from="[email protected]/talkC4CD0A96" 
to="[email protected]/Talk.v1044787A7ED" type="set" id="304">
  <ses:session xmlns:ses="http://www.google.com/session"; type="candidates" 
id="1019592811" initiator="[email protected]/talkC4CD0A96">
    <info_element xmlns="http://www.freeswitch.org/jie"; name="caller_id_number" 
value="0000000000"></info_element>
    <info_element xmlns="http://www.freeswitch.org/jie"; name="caller_id_name" 
value="FreeSWITCH"></info_element>
    <ses:candidate name="rtp" address="59.189.194.106" port="26746" 
username="ryzP9GMBbFJtyvg2" password="ryzP9GMBbFJtyvg2" preference="1.0" 
protocol="udp" type="stun" network="0" generation="0"></ses:candidate>
  </ses:session>
</iq>

2009-07-13 15:19:42.502589 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="[email protected]/talkC4CD0A96" id="304" type="result" 
from="[email protected]/Talk.v1044787A7ED"></iq>

2009-07-13 15:19:43.672335 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="[email protected]/talkC4CD0A96" type="set" id="199" 
from="[email protected]/Talk.v1044787A7ED">
  <session type="transport-info" id="1019592811" 
initiator="[email protected]/talkC4CD0A96" xmlns="http://www.google.com/session";>
    <transport xmlns="http://www.google.com/transport/p2p";>
      <candidate name="rtp" address="209.85.201.126" port="19295" 
preference="0.5" username="s3wv2hCon1P8b6Od" protocol="udp" generation="0" 
password="nlitSgI5SZsqLveB" type="relay" network="0"></candidate>
    </transport>
  </session>
</iq>

2009-07-13 15:19:43.762360 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="[email protected]/Talk.v1044787A7ED" 
from="[email protected]/talkC4CD0A96" id="199">
  <query></query>
</iq>

2009-07-13 15:19:44.499288 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="[email protected]/talkC4CD0A96" type="set" id="200" 
from="[email protected]/Talk.v1044787A7ED">
  <session type="transport-info" id="1019592811" 
initiator="[email protected]/talkC4CD0A96" xmlns="http://www.google.com/session";>
    <transport xmlns="http://www.google.com/transport/p2p";>
      <candidate name="rtp" address="209.85.201.126" port="19294" 
preference="0.5" username="s3wv2hCon1P8b6Od" protocol="tcp" generation="0" 
password="nlitSgI5SZsqLveB" type="relay" network="0"></candidate>
    </transport>
  </session>
</iq>

2009-07-13 15:19:44.562353 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="[email protected]/Talk.v1044787A7ED" 
from="[email protected]/talkC4CD0A96" id="200">
  <query></query>
</iq>

2009-07-13 15:19:44.691280 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="[email protected]/talkC4CD0A96" type="set" id="201" 
from="[email protected]/Talk.v1044787A7ED">
  <session type="transport-info" id="1019592811" 
initiator="[email protected]/talkC4CD0A96" xmlns="http://www.google.com/session";>
    <transport xmlns="http://www.google.com/transport/p2p";>
      <candidate name="rtp" address="192.168.1.101" port="4596" 
preference="0.8" username="pxxS9H5exhGnJEa5" protocol="tcp" generation="0" 
password="tLxrpctw4awpCdJ9" type="local" network="0"></candidate>
    </transport>
  </session>
</iq>

2009-07-13 15:19:44.762321 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="[email protected]/Talk.v1044787A7ED" 
from="[email protected]/talkC4CD0A96" id="201">
  <query></query>
</iq>

2009-07-13 15:19:45.498291 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="[email protected]/talkC4CD0A96" type="set" id="202" 
from="[email protected]/Talk.v1044787A7ED">
  <session type="transport-info" id="1019592811" 
initiator="[email protected]/talkC4CD0A96" xmlns="http://www.google.com/session";>
    <transport xmlns="http://www.google.com/transport/p2p";>
      <candidate name="rtp" address="209.85.201.126" port="443" 
preference="0.5" username="s3wv2hCon1P8b6Od" protocol="ssltcp" generation="0" 
password="nlitSgI5SZsqLveB" type="relay" network="0"></candidate>
    </transport>
  </session>
</iq>

2009-07-13 15:19:45.562530 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="[email protected]/Talk.v1044787A7ED" 
from="[email protected]/talkC4CD0A96" id="202">
  <query></query>
</iq>

2009-07-13 15:19:52.922946 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="[email protected]/talkC4CD0A96" type="set" id="203" 
from="[email protected]/Talk.v1044787A7ED">
  <session type="terminate" id="1019592811" 
initiator="[email protected]/talkC4CD0A96" 
xmlns="http://www.google.com/session";></session>
</iq>

2009-07-13 15:19:52.922946 [NOTICE] mod_dingaling.c:718 Hangup 
dingaling/gmail.com/[email protected] [CS_EXECUTE] [NORMAL_CLEARING]
2009-07-13 15:19:52.936942 [NOTICE] switch_core_session.c:1085 Session 2 
(dingaling/gmail.com/[email protected]) Ended
2009-07-13 15:19:52.936942 [NOTICE] switch_core_session.c:1087 Close Channel 
dingaling/gmail.com/[email protected] [CS_DESTROY]
2009-07-13 15:19:52.961986 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="[email protected]/Talk.v1044787A7ED" 
from="[email protected]/talkC4CD0A96" id="203">
  <query></query>
</iq>

2009-07-13 15:19:52.961986 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq xmlns="jabber:client" from="[email protected]/talkC4CD0A96" 
to="[email protected]/Talk.v1044787A7ED" type="set" id="305">
  <ses:session xmlns:ses="http://www.google.com/session"; type="terminate" 
id="1019592811" initiator="[email protected]/talkC4CD0A96"></ses:session>
</iq>

2009-07-13 15:19:53.702945 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="[email protected]/talkC4CD0A96" id="305" type="error" 
from="[email protected]/Talk.v1044787A7ED">
  <ses:session type="terminate" id="1019592811" 
initiator="[email protected]/talkC4CD0A96" 
xmlns:ses="http://www.google.com/session";></ses:session>
  <error type="modify">
    <sta:bad-request 
xmlns:sta="urn:ietf:params:xml:ns:xmpp-stanzas"></sta:bad-request>
    <sta:text xml:lang="en" 
xmlns:sta="urn:ietf:params:xml:ns:xmpp-stanzas">unknown session</sta:text>
  </error>
</iq>
_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to