[Freeswitch-users] mod_dingaling no audio

Jingwei Yang jingwei.yang at gmail.com
Mon Jul 13 20:34:32 PDT 2009


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.

One thing attracts me is how the ip addresses are translated. Here's the
working external example:

<ses:candidate address="*192.168.2.150*" port="1726" name="rtp"
username="k+TZoLgUQB02PV/C" password="pQ3hz/DzarYnnLhJ" preference="1"
protocol="udp" generation="0" network="0"
type="local"></ses:candidate>        *(external party's local addr)*

<ses:candidate address="*123.118.149.94*" port="45538" name="rtp"
username="C5lc0jkpxDBWVRn6" password="u2lw7FbrzmaJJSHq" preference="0.9"
protocol="udp" generation="0" network="0"
type="stun"></ses:candidate>       * (external party's global addr)*

<ses:candidate name="rtp" address="*59.189.194.244*" port="17112"
username="PQ0Fmus5M3udzy3G" password="PQ0Fmus5M3udzy3G" preference="1.0"
protocol="udp" type="stun" network="0"
generation="0"></ses:candidate>        *(server's global addr)*

Here's the non-working internal exmaple:

<candidate name="rtp" address="*192.168.1.101*" port="2202" preference="1"
username="y6P1CToBaRZpybAl" protocol="udp" generation="0"
password="tcrX5Wj426qTa1Cx" type="local" network="0"></candidate>
  *(internal
party's local addr)*

<candidate name="rtp" address="*59.189.194.244*" port="2203"
preference="0.9" username="UMuUvr9o66D2myqb" protocol="udp" generation="0"
password="vvq4+GUsOYV/On5g" type="stun" network="0"></candidate>
*(internal party's global addr)
*

<ses:candidate name="rtp" address="*59.189.194.244*" port="30578"
username="MeymWgoZwasUm32h" password="MeymWgoZwasUm32h" preference="1.0"
protocol="udp" type="stun" network="0"
generation="0"></ses:candidate>       * (server's global addr)*

<candidate name="rtp" address="*192.168.1.101*" port="2202" preference="1"
username="y6P1CToBaRZpybAl" protocol="udp" generation="0"
password="tcrX5Wj426qTa1Cx" type="local" network="0"></candidate>
 *(internal party's local addr, again!)
*
    <candidate name="rtp" address="*59.189.194.244*" port="2203"
preference="0.9" username="UMuUvr9o66D2myqb" protocol="udp" generation="0"
password="vvq4+GUsOYV/On5g" type="stun" network="0"></candidate>
*(internal party's global addr)
*

<candidate name="rtp" address="*209.85.201.126*" port="19295"
preference="0.5" username="91jrUtL10nk9VcrZ" protocol="udp" generation="0"
password="9s8fNrseavVslvyZ" type="relay" network="0"></candidate>
  *(google's
global addr)*

<candidate name="rtp" address="*209.85.201.126*" port="19294"
preference="0.5" username="91jrUtL10nk9VcrZ" protocol="tcp" generation="0"
password="9s8fNrseavVslvyZ" type="relay" network="0"></candidate>
 *(google's global addr)
*

<candidate name="rtp" address="*192.168.1.101*" port="2205" preference="0.8"
username="g3/qPdtEdo02zm8Y" protocol="tcp" generation="0"
password="WYRbJIk5vcToxsqT" type="local" network="0"></candidate>
 *(internal party's local addr, 3rd time!)
*

<candidate name="rtp" address="*209.85.201.126*" port="443" preference="0.5"
username="91jrUtL10nk9VcrZ" protocol="ssltcp" generation="0"
password="9s8fNrseavVslvyZ" type="relay" network="0"></candidate>
  *(google's
global addr)*


And finally, when the call was hung up, the internal one showed an error
like this:

<iq to="yyyyyy at gmail.com/talk930C641A" id="308" type="error" from="
xxxxxx at gmail.com/Talk.v1046D90E88C">
  <ses:session type="terminate" id="186547325" initiator="
xxxxxx at gmail.com/Talk.v1046D90E88C" 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>

Regards,
-Jingwei

On Mon, Jul 13, 2009 at 7:29 PM, Chris Chen <chris.chen2004 at gmail.com>wrote:

> Jingwei, can you show your console log when somebody is calling you from
> gtalk client? Will it really hit 888 in your dialplan?
> Thanks,
> Chris
>
>
> On Mon, Jul 13, 2009 at 5:27 AM, Jingwei Yang <jingwei.yang at gmail.com>wrote:
>
>> 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 <chris.chen2004 at gmail.com>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
>>> Freeswitch-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>>
>>
>> _______________________________________________
>> Freeswitch-users mailing list
>> Freeswitch-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090714/e4a3eb1a/attachment-0002.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: external_call_in.txt
Url: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090714/e4a3eb1a/attachment-0002.txt 
-------------- next part --------------
freeswitch at localhost.localdomain> 2009-07-14 10:20:12.779916 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="yyyyyy at gmail.com/talk930C641A" type="set" id="95" from="xxxxxx at gmail.com/Talk.v1046D90E88C">
  <session type="initiate" id="186547325" initiator="xxxxxx at gmail.com/Talk.v1046D90E88C" xmlns="http://www.google.com/session">
    <description xml:lang="en" xmlns="http://www.google.com/session/phone">
      <payload-type id="103" name="ISAC" clockrate="16000"></payload-type>
      <payload-type id="97" name="IPCMWB" clockrate="16000" bitrate="80000"></payload-type>
      <payload-type id="99" name="speex" clockrate="16000" bitrate="22000"></payload-type>
      <payload-type id="4" name="G723" clockrate="8000" bitrate="6300"></payload-type>
      <payload-type id="98" name="speex" clockrate="8000" bitrate="11000"></payload-type>
      <payload-type id="100" name="EG711U" clockrate="8000" bitrate="64000"></payload-type>
      <payload-type id="101" name="EG711A" clockrate="8000" bitrate="64000"></payload-type>
      <payload-type id="0" name="PCMU" clockrate="8000" bitrate="64000"></payload-type>
      <payload-type id="8" name="PCMA" clockrate="8000" bitrate="64000"></payload-type>
      <payload-type id="13" name="CN" clockrate="8000"></payload-type>
    </description>
  </session>
</iq>

2009-07-14 10:20:12.779916 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<payload-type id="106" name="telephone-event" clockrate="8000"></payload-type>

2009-07-14 10:20:12.779916 [NOTICE] switch_channel.c:602 New Channel dingaling/888 [2ed89b9b-bb8b-4606-a71d-2fe6dbd66d1d]
2009-07-14 10:20:12.779916 [NOTICE] switch_channel.c:600 Rename Channel dingaling/888->DingaLing/new [2ed89b9b-bb8b-4606-a71d-2fe6dbd66d1d]
2009-07-14 10:20:12.782051 [NOTICE] mod_dingaling.c:1084 Ring-Ready DingaLing/new!
2009-07-14 10:20:12.803916 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="xxxxxx at gmail.com/Talk.v1046D90E88C" from="yyyyyy at gmail.com/talk930C641A" id="95">
  <query></query>
</iq>

2009-07-14 10:20:12.803916 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq xmlns="jabber:client" from="yyyyyy at gmail.com/talk930C641A" to="xxxxxx at gmail.com/Talk.v1046D90E88C" type="set" id="306">
  <ses:session xmlns:ses="http://www.google.com/session" type="accept" id="186547325" initiator="xxxxxx at gmail.com/Talk.v1046D90E88C">
    <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>
  </ses:session>
</iq>

2009-07-14 10:20:13.679871 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="yyyyyy at gmail.com/talk930C641A" type="set" id="97" from="xxxxxx at gmail.com/Talk.v1046D90E88C">
  <session type="transport-info" id="186547325" initiator="xxxxxx at gmail.com/Talk.v1046D90E88C" xmlns="http://www.google.com/session">
    <transport xmlns="http://www.google.com/transport/p2p">
      <candidate name="rtp" address="192.168.1.101" port="2202" preference="1" username="y6P1CToBaRZpybAl" protocol="udp" generation="0" password="tcrX5Wj426qTa1Cx" type="local" network="0"></candidate>
    </transport>
  </session>
</iq>

2009-07-14 10:20:13.679871 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="yyyyyy at gmail.com/talk930C641A" type="set" id="98" from="xxxxxx at gmail.com/Talk.v1046D90E88C">
  <session type="transport-info" id="186547325" initiator="xxxxxx at gmail.com/Talk.v1046D90E88C" xmlns="http://www.google.com/session">
    <transport xmlns="http://www.google.com/transport/p2p">
      <candidate name="rtp" address="59.189.194.244" port="2203" preference="0.9" username="UMuUvr9o66D2myqb" protocol="udp" generation="0" password="vvq4+GUsOYV/On5g" type="stun" network="0"></candidate>
    </transport>
  </session>
</iq>

2009-07-14 10:20:13.711870 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="xxxxxx at gmail.com/Talk.v1046D90E88C" from="yyyyyy at gmail.com/talk930C641A" id="97">
  <query></query>
</iq>

2009-07-14 10:20:14.729818 [INFO] mod_dingaling.c:974 Stun Success 59.189.194.244:30578
2009-07-14 10:20:14.729818 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="yyyyyy at gmail.com/talk930C641A" id="306" type="result" from="xxxxxx at gmail.com/Talk.v1046D90E88C"></iq>

2009-07-14 10:20:14.748836 [INFO] mod_dialplan_xml.c:252 Processing xxxxxx at gmail.com/Talk.v1046D90E88C->888 in context public
2009-07-14 10:20:14.748836 [NOTICE] switch_core_session.c:1391 Pre-Answer DingaLing/new!
2009-07-14 10:20:14.814814 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="xxxxxx at gmail.com/Talk.v1046D90E88C" from="yyyyyy at gmail.com/talk930C641A" id="98">
  <query></query>
</iq>

2009-07-14 10:20:14.814814 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq xmlns="jabber:client" from="yyyyyy at gmail.com/talk930C641A" to="xxxxxx at gmail.com/Talk.v1046D90E88C" type="set" id="307">
  <ses:session xmlns:ses="http://www.google.com/session" type="candidates" id="186547325" initiator="xxxxxx at gmail.com/Talk.v1046D90E88C">
    <ses:candidate name="rtp" address="59.189.194.244" port="30578" username="MeymWgoZwasUm32h" password="MeymWgoZwasUm32h" preference="1.0" protocol="udp" type="stun" network="0" generation="0"></ses:candidate>
  </ses:session>
</iq>

2009-07-14 10:20:15.544777 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="yyyyyy at gmail.com/talk930C641A" type="set" id="100" from="xxxxxx at gmail.com/Talk.v1046D90E88C">
  <session type="candidates" id="186547325" initiator="xxxxxx at gmail.com/Talk.v1046D90E88C" xmlns="http://www.google.com/session">
    <candidate name="rtp" address="192.168.1.101" port="2202" preference="1" username="y6P1CToBaRZpybAl" protocol="udp" generation="0" password="tcrX5Wj426qTa1Cx" type="local" network="0"></candidate>
    <candidate name="rtp" address="59.189.194.244" port="2203" preference="0.9" username="UMuUvr9o66D2myqb" protocol="udp" generation="0" password="vvq4+GUsOYV/On5g" type="stun" network="0"></candidate>
  </session>
</iq>

2009-07-14 10:20:15.615820 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="xxxxxx at gmail.com/Talk.v1046D90E88C" from="yyyyyy at gmail.com/talk930C641A" id="100">
  <query></query>
</iq>

2009-07-14 10:20:15.826763 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="yyyyyy at gmail.com/talk930C641A" id="307" type="result" from="xxxxxx at gmail.com/Talk.v1046D90E88C"></iq>

2009-07-14 10:20:16.740726 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="yyyyyy at gmail.com/talk930C641A" type="set" id="102" from="xxxxxx at gmail.com/Talk.v1046D90E88C">
  <session type="candidates" id="186547325" initiator="xxxxxx at gmail.com/Talk.v1046D90E88C" xmlns="http://www.google.com/session">
    <candidate name="rtp" address="209.85.201.126" port="19295" preference="0.5" username="91jrUtL10nk9VcrZ" protocol="udp" generation="0" password="9s8fNrseavVslvyZ" type="relay" network="0"></candidate>
  </session>
</iq>

2009-07-14 10:20:16.816760 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="xxxxxx at gmail.com/Talk.v1046D90E88C" from="yyyyyy at gmail.com/talk930C641A" id="102">
  <query></query>
</iq>

2009-07-14 10:20:17.533727 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="yyyyyy at gmail.com/talk930C641A" type="set" id="103" from="xxxxxx at gmail.com/Talk.v1046D90E88C">
  <session type="candidates" id="186547325" initiator="xxxxxx at gmail.com/Talk.v1046D90E88C" xmlns="http://www.google.com/session">
    <candidate name="rtp" address="209.85.201.126" port="19294" preference="0.5" username="91jrUtL10nk9VcrZ" protocol="tcp" generation="0" password="9s8fNrseavVslvyZ" type="relay" network="0"></candidate>
  </session>
</iq>

2009-07-14 10:20:17.617673 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="xxxxxx at gmail.com/Talk.v1046D90E88C" from="yyyyyy at gmail.com/talk930C641A" id="103">
  <query></query>
</iq>

2009-07-14 10:20:17.774664 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="yyyyyy at gmail.com/talk930C641A" type="set" id="104" from="xxxxxx at gmail.com/Talk.v1046D90E88C">
  <session type="candidates" id="186547325" initiator="xxxxxx at gmail.com/Talk.v1046D90E88C" xmlns="http://www.google.com/session">
    <candidate name="rtp" address="192.168.1.101" port="2205" preference="0.8" username="g3/qPdtEdo02zm8Y" protocol="tcp" generation="0" password="WYRbJIk5vcToxsqT" type="local" network="0"></candidate>
  </session>
</iq>

2009-07-14 10:20:17.818663 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="xxxxxx at gmail.com/Talk.v1046D90E88C" from="yyyyyy at gmail.com/talk930C641A" id="104">
  <query></query>
</iq>

2009-07-14 10:20:18.532660 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="yyyyyy at gmail.com/talk930C641A" type="set" id="105" from="xxxxxx at gmail.com/Talk.v1046D90E88C">
  <session type="candidates" id="186547325" initiator="xxxxxx at gmail.com/Talk.v1046D90E88C" xmlns="http://www.google.com/session">
    <candidate name="rtp" address="209.85.201.126" port="443" preference="0.5" username="91jrUtL10nk9VcrZ" protocol="ssltcp" generation="0" password="9s8fNrseavVslvyZ" type="relay" network="0"></candidate>
  </session>
</iq>

2009-07-14 10:20:18.619622 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="xxxxxx at gmail.com/Talk.v1046D90E88C" from="yyyyyy at gmail.com/talk930C641A" id="105">
  <query></query>
</iq>

2009-07-14 10:20:24.211338 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="yyyyyy at gmail.com/talk930C641A" type="set" id="106" from="xxxxxx at gmail.com/Talk.v1046D90E88C">
  <session type="terminate" id="186547325" initiator="xxxxxx at gmail.com/Talk.v1046D90E88C" xmlns="http://www.google.com/session"></session>
</iq>

2009-07-14 10:20:24.211338 [NOTICE] mod_dingaling.c:718 Hangup DingaLing/new [CS_EXECUTE] [NORMAL_CLEARING]
2009-07-14 10:20:24.216352 [NOTICE] switch_core_session.c:1085 Session 3 (DingaLing/new) Ended
2009-07-14 10:20:24.216352 [NOTICE] switch_core_session.c:1087 Close Channel DingaLing/new [CS_DESTROY]
2009-07-14 10:20:24.222338 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq type="result" to="xxxxxx at gmail.com/Talk.v1046D90E88C" from="yyyyyy at gmail.com/talk930C641A" id="106">
  <query></query>
</iq>

2009-07-14 10:20:24.222338 [NOTICE] libdingaling.c:1309 SecSEND:
-------------------------------------------------------------------------------
<iq xmlns="jabber:client" from="yyyyyy at gmail.com/talk930C641A" to="xxxxxx at gmail.com/Talk.v1046D90E88C" type="set" id="308">
  <ses:session xmlns:ses="http://www.google.com/session" type="terminate" id="186547325" initiator="xxxxxx at gmail.com/Talk.v1046D90E88C"></ses:session>
</iq>

2009-07-14 10:20:24.944314 [INFO] libdingaling.c:1307 SecRECV:
-------------------------------------------------------------------------------
<iq to="yyyyyy at gmail.com/talk930C641A" id="308" type="error" from="xxxxxx at gmail.com/Talk.v1046D90E88C">
  <ses:session type="terminate" id="186547325" initiator="xxxxxx at gmail.com/Talk.v1046D90E88C" 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>


More information about the FreeSWITCH-users mailing list