[Freeswitch-users] Help with Google Voice from UK

Ciprian Dosoftei ciprian.dosoftei at gmail.com
Tue Nov 19 19:46:03 MSK 2013


Hi Claves,

I believe the problem is in the dialplan:

<regex field="destination_number" expression="\+1(\d{10})$" />

The destination will be matched and formatted as a North American NAPA
destination.

-Ciprian


On 19 November 2013 11:35, Claves do Amaral <claves.doamaral at gmail.com>wrote:

> Hello to the list,
>
> this is my first post here so please, in case I am off topic or this
> is not the right place to ask questions redirect me to a more suitable
> list.
>
> I am trying to make calls using Freeswitch via Google Voice. I am
> based in London, UK. I have a standard Google voice account, I have
> charged it with £10 :) and successfully made a call via the Google web
> interface.
>
> I have compiled  the lastest stable (v1.2.stable) and configured
> freeswitch on a raspberry pi using the following tutorials
>
> http://raspberrypipbx.blogspot.co.uk/
> http://wiki.freeswitch.org/wiki/Google_Voice
>
> I did not define any new account yet, using the user 1000.I am calling
> with a softphone (Ekiga). I successfully called the test numbers
> (5000, 9664) from my pc.
>
> Here I paste my configuration:
>
> root at raspberrypi:/usr/local/freeswitch# cat
> conf/jingle_profiles/client.xml
> <include>
>  <profile type="client">
>     <param name="name" value="gtalk"/>
>     <param name="login" value="claves.doamaral at gmail.com/talk"/>
>     <param name="password" value="********"/>
>     <param name="server" value="talk.google.com" />
>     <param name="message" value="Hello from Claves do Amaral!" />
>     <param name="dialplan" value="XML"/>
>     <param name="context" value="public"/>
>     <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>
>
> root at raspberrypi:/usr/local/freeswitch# cat conf/dialplan/default.xml
> <?xml version="1.0" encoding="utf-8"?>
> <include>
>   <context name="default">
>     <extension name="unloop">
>       <condition field="${unroll_loops}" expression="^true$"/>
>       <condition field="${sip_looped_call}" expression="^true$">
>         <action application="deflect" data="${destination_number}"/>
>       </condition>
>     </extension>
>     <extension name="gvoice_out">
>       <condition regex="any">
>         <regex field="destination_number" expression="^(\d*)$" />
>         <regex field="dialed_extension"
> expression="^\+1(\d{10})@voice.google.com$" />
>         <regex field="destination_number" expression="\+1(\d{10})$" />
>         <action application="set" data="hangup_after_bridge=true"/>
>         <action application="set" data="ringback=${us-ring}"/>
>         <action application="set" data="call_timeout=45" />
>         <action application="ring_ready"/>
>         <action application="bridge"
> data="dingaling/gtalk/+$1 at voice.google.com"/>
>       </condition>
>     </extension>
> .....
>
> This is the result of trying to call my mobile. I have tried to call
> using several prefixes (+44, 0044, 44,..) and changing the latest
> <action> above to different patterns (+1$1 at voice.google.com,
> $1 at voice.google.com, ...) but the result did not change.
>
> 2013-11-19 10:53:44.350111 [INFO] mod_dialplan_xml.c:558 Processing
> Claves do Amaral <1000>->447462295322 in context default
> 2013-11-19 10:53:44.370101 [NOTICE] mod_sofia.c:2821 Ring-Ready
> sofia/internal/1000 at raspberrypi!
> 2013-11-19 10:53:44.390105 [NOTICE] mod_dptools.c:948 Ring Ready
> sofia/internal/1000 at raspberrypi!
> 2013-11-19 10:53:44.390105 [NOTICE] switch_channel.c:1052 New Channel
> dingaling/gtalk/+447462295322 at voice.google.com
> [dc04188c-5108-11e3-a264-1dcc41a01c4a]
> 2013-11-19 10:53:44.410083 [NOTICE] mod_dingaling.c:1807 Ring-Ready
> dingaling/gtalk/+447462295322 at voice.google.com!
> 2013-11-19 10:53:45.370020 [INFO] mod_dingaling.c:1561 Stun Success
> 46.64.61.76:53970
> 2013-11-19 10:53:45.390046 [NOTICE] mod_dingaling.c:864 Hangup
> dingaling/gtalk/+447462295322 at voice.google.com [CS_INIT]
> [NORMAL_CLEARING]
> 2013-11-19 10:53:45.410085 [INFO] mod_dptools.c:3201 Originate Failed.
>  Cause: NORMAL_CLEARING
> 2013-11-19 10:53:45.410085 [NOTICE] switch_channel.c:4643 Hangup
> sofia/internal/1000 at raspberrypi [CS_EXECUTE] [NORMAL_CLEARING]
> 2013-11-19 10:53:45.430173 [NOTICE] switch_core_session.c:1567 Session
> 11 (sofia/internal/1000 at raspberrypi) Ended
> 2013-11-19 10:53:45.430173 [NOTICE] switch_core_session.c:1571 Close
> Channel sofia/internal/1000 at raspberrypi [CS_DESTROY]
> 2013-11-19 10:53:45.650107 [INFO] mod_dingaling.c:1561 Stun Success
> 46.64.61.76:53971
> 2013-11-19 10:53:45.970013 [INFO] mod_dingaling.c:1561 Stun Success
> 46.64.61.76:53972
> 2013-11-19 10:53:46.110013 [INFO] mod_dingaling.c:1561 Stun Success
> 46.64.61.76:53973
> 2013-11-19 10:53:46.130083 [NOTICE] switch_core_session.c:1567 Session
> 12 (dingaling/gtalk/+447462295322 at voice.google.com) Ended
> 2013-11-19 10:53:46.130083 [NOTICE] switch_core_session.c:1571 Close
> Channel dingaling/gtalk/+447462295322 at voice.google.com [CS_DESTROY]
>
>
> Please, can you help?
> Claves
>
>
> --
> Claves do Amaral
>
> Email: claves.doamaral at gmail.com
> LinkedIn: http://www.linkedin.com/pub/claves-do-amaral/a/b3b/1a9
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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
>



-- 
Best Regards,
Ciprian Dosoftei

The information transmitted is intended only for the addressee and may
contain privileged and/or confidential material. If you are not the
intended recipient, kindly contact the sender and delete the message.

Any disclosure, distribution or copying of this message is strictly
prohibited without the expressed permission of the sender.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131119/776a7651/attachment-0001.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list