<div dir="ltr"><div><div><div>Hi Claves,<br><br></div>I believe the problem is in the dialplan:<br><br><regex field="destination_number" expression="\+1(\d{10})$" /><br><br></div>The destination will be matched and formatted as a North American NAPA destination.<br>
<br></div>-Ciprian<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 19 November 2013 11:35, Claves do Amaral <span dir="ltr"><<a href="mailto:claves.doamaral@gmail.com" target="_blank">claves.doamaral@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello to the list,<br>
<br>
this is my first post here so please, in case I am off topic or this<br>
is not the right place to ask questions redirect me to a more suitable<br>
list.<br>
<br>
I am trying to make calls using Freeswitch via Google Voice. I am<br>
based in London, UK. I have a standard Google voice account, I have<br>
charged it with £10 :) and successfully made a call via the Google web<br>
interface.<br>
<br>
I have compiled the lastest stable (v1.2.stable) and configured<br>
freeswitch on a raspberry pi using the following tutorials<br>
<br>
<a href="http://raspberrypipbx.blogspot.co.uk/" target="_blank">http://raspberrypipbx.blogspot.co.uk/</a><br>
<a href="http://wiki.freeswitch.org/wiki/Google_Voice" target="_blank">http://wiki.freeswitch.org/wiki/Google_Voice</a><br>
<br>
I did not define any new account yet, using the user 1000.I am calling<br>
with a softphone (Ekiga). I successfully called the test numbers<br>
(5000, 9664) from my pc.<br>
<br>
Here I paste my configuration:<br>
<br>
root@raspberrypi:/usr/local/freeswitch# cat conf/jingle_profiles/client.xml<br>
<include><br>
<profile type="client"><br>
<param name="name" value="gtalk"/><br>
<param name="login" value="<a href="http://claves.doamaral@gmail.com/talk" target="_blank">claves.doamaral@gmail.com/talk</a>"/><br>
<param name="password" value="********"/><br>
<param name="server" value="<a href="http://talk.google.com" target="_blank">talk.google.com</a>" /><br>
<param name="message" value="Hello from Claves do Amaral!" /><br>
<param name="dialplan" value="XML"/><br>
<param name="context" value="public"/><br>
<param name="rtp-ip" value="$${bind_server_ip}"/><br>
<param name="ext-rtp-ip" value="$${external_rtp_ip}"/><br>
<param name="auto-login" value="true"/><br>
<!-- SASL "plain" or "md5? --><br>
<param name="sasl" value="plain"/><br>
<!-- Enable TLS or not --><br>
<param name="tls" value="true"/><br>
<!-- disable to trade async for more calls --><br>
<param name="use-rtp-timer" value="true"/><br>
<param name="rtp-timer-name" value="none"/><br>
<!-- default extension --><br>
<param name="exten" value="2001"/><br>
<param name="vad" value="both"/><br>
<param name="candidate-acl" value="wan.auto"/><br>
<param name="local-network-acl" value="localnet.auto"/><br>
</profile><br>
</include><br>
<br>
root@raspberrypi:/usr/local/freeswitch# cat conf/dialplan/default.xml<br>
<?xml version="1.0" encoding="utf-8"?><br>
<include><br>
<context name="default"><br>
<extension name="unloop"><br>
<condition field="${unroll_loops}" expression="^true$"/><br>
<condition field="${sip_looped_call}" expression="^true$"><br>
<action application="deflect" data="${destination_number}"/><br>
</condition><br>
</extension><br>
<extension name="gvoice_out"><br>
<condition regex="any"><br>
<regex field="destination_number" expression="^(\d*)$" /><br>
<regex field="dialed_extension"<br>
expression="^\+1(\d{10})@<a href="http://voice.google.com" target="_blank">voice.google.com</a>$" /><br>
<regex field="destination_number" expression="\+1(\d{10})$" /><br>
<action application="set" data="hangup_after_bridge=true"/><br>
<action application="set" data="ringback=${us-ring}"/><br>
<action application="set" data="call_timeout=45" /><br>
<action application="ring_ready"/><br>
<action application="bridge"<br>
data="dingaling/gtalk/+$<a href="mailto:1@voice.google.com">1@voice.google.com</a>"/><br>
</condition><br>
</extension><br>
.....<br>
<br>
This is the result of trying to call my mobile. I have tried to call<br>
using several prefixes (+44, 0044, 44,..) and changing the latest<br>
<action> above to different patterns (+1$<a href="mailto:1@voice.google.com">1@voice.google.com</a>,<br>
$<a href="mailto:1@voice.google.com">1@voice.google.com</a>, ...) but the result did not change.<br>
<br>
2013-11-19 10:53:44.350111 [INFO] mod_dialplan_xml.c:558 Processing<br>
Claves do Amaral <1000>-><a href="tel:447462295322" value="+447462295322">447462295322</a> in context default<br>
2013-11-19 10:53:44.370101 [NOTICE] mod_sofia.c:2821 Ring-Ready<br>
sofia/internal/1000@raspberrypi!<br>
2013-11-19 10:53:44.390105 [NOTICE] mod_dptools.c:948 Ring Ready<br>
sofia/internal/1000@raspberrypi!<br>
2013-11-19 10:53:44.390105 [NOTICE] switch_channel.c:1052 New Channel<br>
dingaling/gtalk/+<a href="mailto:447462295322@voice.google.com">447462295322@voice.google.com</a><br>
[dc04188c-5108-11e3-a264-1dcc41a01c4a]<br>
2013-11-19 10:53:44.410083 [NOTICE] mod_dingaling.c:1807 Ring-Ready<br>
dingaling/gtalk/+<a href="mailto:447462295322@voice.google.com">447462295322@voice.google.com</a>!<br>
2013-11-19 10:53:45.370020 [INFO] mod_dingaling.c:1561 Stun Success<br>
<a href="http://46.64.61.76:53970" target="_blank">46.64.61.76:53970</a><br>
2013-11-19 10:53:45.390046 [NOTICE] mod_dingaling.c:864 Hangup<br>
dingaling/gtalk/+<a href="mailto:447462295322@voice.google.com">447462295322@voice.google.com</a> [CS_INIT]<br>
[NORMAL_CLEARING]<br>
2013-11-19 10:53:45.410085 [INFO] mod_dptools.c:3201 Originate Failed.<br>
Cause: NORMAL_CLEARING<br>
2013-11-19 10:53:45.410085 [NOTICE] switch_channel.c:4643 Hangup<br>
sofia/internal/1000@raspberrypi [CS_EXECUTE] [NORMAL_CLEARING]<br>
2013-11-19 10:53:45.430173 [NOTICE] switch_core_session.c:1567 Session<br>
11 (sofia/internal/1000@raspberrypi) Ended<br>
2013-11-19 10:53:45.430173 [NOTICE] switch_core_session.c:1571 Close<br>
Channel sofia/internal/1000@raspberrypi [CS_DESTROY]<br>
2013-11-19 10:53:45.650107 [INFO] mod_dingaling.c:1561 Stun Success<br>
<a href="http://46.64.61.76:53971" target="_blank">46.64.61.76:53971</a><br>
2013-11-19 10:53:45.970013 [INFO] mod_dingaling.c:1561 Stun Success<br>
<a href="http://46.64.61.76:53972" target="_blank">46.64.61.76:53972</a><br>
2013-11-19 10:53:46.110013 [INFO] mod_dingaling.c:1561 Stun Success<br>
<a href="http://46.64.61.76:53973" target="_blank">46.64.61.76:53973</a><br>
2013-11-19 10:53:46.130083 [NOTICE] switch_core_session.c:1567 Session<br>
12 (dingaling/gtalk/+<a href="mailto:447462295322@voice.google.com">447462295322@voice.google.com</a>) Ended<br>
2013-11-19 10:53:46.130083 [NOTICE] switch_core_session.c:1571 Close<br>
Channel dingaling/gtalk/+<a href="mailto:447462295322@voice.google.com">447462295322@voice.google.com</a> [CS_DESTROY]<br>
<br>
<br>
Please, can you help?<br>
Claves<br>
<br>
<br>
--<br>
Claves do Amaral<br>
<br>
Email: <a href="mailto:claves.doamaral@gmail.com">claves.doamaral@gmail.com</a><br>
LinkedIn: <a href="http://www.linkedin.com/pub/claves-do-amaral/a/b3b/1a9" target="_blank">http://www.linkedin.com/pub/claves-do-amaral/a/b3b/1a9</a><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
</blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br>Ciprian Dosoftei<br><br>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.<br>
<br>Any disclosure, distribution or copying of this message is strictly prohibited without the expressed permission of the sender.
</div>