[Freeswitch-users] google voice connection going offline (mod_dingaling)

Federico Beffa beffa at ieee.org
Thu Sep 29 11:08:40 MSD 2011


Thanks for the suggestion. That is about what I did and calls work in
both directions: outbound and inbound. This however only for a couple
of hours. Then the google account assigned to FS goes offline and
calls stop working.

I have tried to track events and noticed the following:

*) fs_cli with log to 7 does not report anything when the account goes offline.

*) my NAT/Firewall sends the following message "Firewall session time
out, sent TCP RST: TCP" to both my FS host and the google server. This
happens to the google talk client from google as well (running on
another machine on the same network). However, while the latter
handles the situation well and is able to keep the account online, it
appears that FS fails to act properly.

Is it possible to set a "keep alive" kind of timer in FS?

Thanks,
Fede

On Thu, Sep 29, 2011 at 5:11 AM, king2kin <xing2kin at yahoo.com> wrote:
> I also had problem in making FS mod_dingaling work with google voice:
>
> - enable mod_dingaling in modules.conf.xml at first;
>
> - copy the following content into disk
> file [freeswitch/conf/jingle_profiles/xk_client.xml] according to wiki page
>  [http://wiki.freeswitch.org/wiki/Google_Voice]:
>
> <include>
>   <profile type="client">
>     <param name="name" value="gtalk"/>
>     <param name="login" value="GV-ACCOUNT-NAME at gmail.com/talk"/>
>     <param name="password" value="MY-PASSWORD"/>
>     <param name="server" value="talk.google.com"/>
>     <param name="dialplan" value="XML"/>
>     <param name="context" value="public"/>
>     <param name="message" value="Hello from Freeswitch!"/>
>     <param name="rtp-ip" value="$${bind_server_ip}"/>
>     <param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
>     <param name="auto-login" value="true"/>
>     <!-- SASL "plain" or "md5? -->
>     <param name="sasl" value="plain"/>
>     <!-- Enable TLS or not -->
>     <param name="tls" value="true"/>
>     <!-- disable to trade async for more calls -->
>     <param name="use-rtp-timer" value="true"/>
>     <param name="rtp-timer-name" value="none"/>
>     <!-- default extension -->
>     <param name="exten" value="2001"/>
>     <param name="vad" value="both"/>
>     <param name="candidate-acl" value="wan.auto"/>
>     <param name="local-network-acl" value="localnet.auto"/>
>   </profile>
> </include>
> - then, since [freeswitch/conf/jingle_profiles/] already contains cleint.xml
> and server.xml,  I made four changes to the above content of xk_client.xml:
>
> <profile type="client">  ===>  <profile type="xk_client">
>
>     <param name="login" value="GV-ACCOUNT-NAME at gmail.com/talk"/>
> ===> update it with my own gmail account
>     <param name="password" value="MY-PASSWORD"/> ===> update it with my own
> password to gmail account.
> <param name="exten" value="2001"/> ===> <param name="exten" value="1006"/>
> - add a dialplan extension for default context:
>
>  <extension name="gvoice_out">
>    <condition field="destination_number" expression="^50(1\d{10})$">
>      <action application="set" data="hangup_after_bridge=true"/>
>      <action application="bridge"
> data="dingaling/gtalk/+$1 at voice.google.com"/>
>    </condition>
> </extension>
> - also, set up my google voice settings as required by FS
>
> - finally, dial out "50 1 408 543 xxxx" on a sip client with internal user
> "1006",  the call  was never completed.
>
>
>
>
> ----- Original Message -----
> From: Federico Beffa <beffa at ieee.org>
> To: freeswitch-users at lists.freeswitch.org
> Cc:
> Sent: Wednesday, September 28, 2011 4:14 PM
> Subject: [Freeswitch-users] google voice connection going offline
> (mod_dingaling)
>
> Hi All,
>
> I've setup mod_dingaling to connect to my google voice account
> according to the instructions on the wiki
> http://wiki.freeswitch.org/wiki/Google_Voice#Setup_FreeSWITCH_-_Dingaling_to_work_with_your_Gmail_account
> with two modifications:
> <param name="rtp-ip" value="auto"/>
> <param name="ext-rtp-ip" value="auto-nat"/>
>
> I use the same IP settings for SIP (sofia) with no problem.
>
> The setup works fine for the first hour or two, but then I can see
> from another google account that the connection established by
> freeswitch goes offline. If I try anyway to make an outbound call,
> then the other end does not ring (even if I wait for a long time).
> However, after some minutes the freeswitch account returns online and
> works again for a couple of hours.
>
> I'm behind a nat and firewall. Is there any port which I have to open
> to keep freeswitch online? As far as I understand only the google XMMP
> server needs to listen to port 5222 and port 5269.
> Or, is there any kind of "keep alive" timer available?
>
> The google talk client running in the same environment works flawlessly.
>
> Thanks for any advise.
> Fede
>
>
> 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
>
>



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list