<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
Have you tried the basic first? <br>
1. Do a ping from your FS to your provider IP to check conectivity<br>
2. Do a telnet: telne PROVIDER_IP PORT and see if it open conection
<br>
3. Have you a firewall installed?<br>
4. Have you FS behind a router doing NAT or it has network interface
conected directly to internet?<br>
<br>
On 3/22/2012 6:34 AM, Fernando - NextBilling IP Solutions wrote:
<blockquote cite="mid:4F6B0732.000008.01040@FLIGHTPC" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta name="GENERATOR" content="IncrediMail 1.0">
<style>v\:* {
        BEHAVIOR: url (#default#vml)
}
</style><!--IncrdiXMLRemarkStart>
<IncrdiX-Info>
<X-FID>B433CDFE-B71C-42C2-A5C1-D34C076A9851</X-FID>
<X-FVER></X-FVER>
<X-FIT></X-FIT>
<X-FILE></X-FILE>
<X-FCOL></X-FCOL>
<X-FCAT></X-FCAT>
<X-FDIS></X-FDIS>
<X-Extensions></X-Extensions>
<X-BG></X-BG>
<X-BGT>repeat</X-BGT>
<X-BGC>#ffffff</X-BGC>
<X-BGPX></X-BGPX>
<X-BGPY></X-BGPY>
<X-ASN></X-ASN>
<X-ASNF></X-ASNF>
<X-ASH></X-ASH>
<X-ASHF></X-ASHF>
<X-AN></X-AN>
<X-ANF></X-ANF>
<X-AP></X-AP>
<X-APF></X-APF>
<X-AD></X-AD>
<X-ADF></X-ADF>
<X-AUTO>X-ASN,X-ASH,X-AN,X-AP,X-AD</X-AUTO>
<X-CNT>;</X-CNT>
</IncrdiX-Info>
<IncrdiXMLRemarkEnd-->
<table id="INCREDIMAINTABLE" border="0" cellpadding="2"
cellspacing="0" width="100%">
<tbody>
<tr>
<td style="POSITION: relative; DIRECTION: ltr; FONT-SIZE:
12pt" id="INCREDITEXTREGION" width="100%">
<div style="PADDING-LEFT: 2px" id="INCREDI_TEXT_AREA">
<div>
<div>This header has sent to your gateway by FS, where
is the response?</div>
<div> </div>
<div>If has no response, maybe FS cannot reach your
Gateway.</div>
</div>
</div>
<div>
<div> </div>
<div id="INCREDISIGNATUREID" ondrag="return false;">Best
Regards,
<div style="FONT-FAMILY: Times New Roman"><strong><font
color="#666666" size="2"><img
src="cid:part1.07090906.02000807@anew.com.ve"
border="0" height="179" width="576"></font></strong></div>
<div style="FONT-FAMILY: Times New Roman"><strong><font
color="#666666" size="2">Importante:</font></strong><span
style="LINE-HEIGHT: normal; TEXT-TRANSFORM: none;
FONT-VARIANT: normal; FONT-STYLE: normal;
TEXT-INDENT: 0px; LETTER-SPACING: normal;
BORDER-COLLAPSE: separate; WHITE-SPACE: normal;
WORD-SPACING: 0px"><span style="LINE-HEIGHT:
normal; TEXT-TRANSFORM: none; FONT-VARIANT:
normal; FONT-STYLE: normal; TEXT-INDENT: 0px;
LETTER-SPACING: normal; BORDER-COLLAPSE:
separate; WHITE-SPACE: normal; WORD-SPACING:
0px"><span style="LINE-HEIGHT: normal;
TEXT-TRANSFORM: none; FONT-VARIANT: normal;
FONT-STYLE: normal; TEXT-INDENT: 0px;
LETTER-SPACING: normal; BORDER-COLLAPSE:
separate; WHITE-SPACE: normal; WORD-SPACING:
0px"><span style="LINE-HEIGHT: normal;
TEXT-TRANSFORM: none; FONT-VARIANT: normal;
FONT-STYLE: normal; TEXT-INDENT: 0px;
LETTER-SPACING: normal; BORDER-COLLAPSE:
separate; WHITE-SPACE: normal; WORD-SPACING:
0px"><span style="LINE-HEIGHT: normal;
TEXT-TRANSFORM: none; FONT-VARIANT:
normal; FONT-STYLE: normal; TEXT-INDENT:
0px; LETTER-SPACING: normal;
BORDER-COLLAPSE: separate; WHITE-SPACE:
normal; WORD-SPACING: 0px"><font
face="Helvetica" size="4"> </font></span></span></span></span></span></div>
<div style="FONT-FAMILY: Times New Roman">
<div style="FONT-FAMILY: MS Sans Serif"><span>
<div style="MARGIN: 0cm 0cm 0pt"><span
style="FONT-FAMILY: Arial, sans-serif;
COLOR: rgb(149,149,149); FONT-SIZE: 8.5pt;
FONT-WEIGHT: normal">Esta mensagem,
incluindo todo seu conteúdo, contém
informações confidenciais, legalmente
protegidas e destinadas a indivíduo e
propósito específicos. Caso a tenha recebido
por engano, lembramos do caráter sigiloso e
solicitamos a gentileza de desconsiderá-la e
comunicar-nos o mais breve possível.</span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY:
'Times New Roman', serif; COLOR: rgb(0,0,0);
FONT-SIZE: 12pt; FONT-WEIGHT: normal"><span
style="FONT-FAMILY: Arial, sans-serif;
COLOR: rgb(149,149,149); FONT-SIZE: 8.5pt">As
informações contidas nesta mensagem e em seu
conteúdo são de responsabilidade de seu
autor, não representando necessariamente
idéias, opiniões, pensamentos ou qualquer
forma de posicionamento por parte da
NextBilling IP Solutions.</span></div>
</span></div>
<div style="FONT-FAMILY: Helvetica; COLOR:
rgb(0,0,0); FONT-SIZE: medium; FONT-WEIGHT:
normal"><span><span style="FONT-FAMILY: Tahoma"><span
style="LINE-HEIGHT: 27px; FONT-FAMILY:
Webdings; COLOR: green; FONT-SIZE: 18pt"></span></span></span></div>
<div style="FONT-FAMILY: Helvetica; COLOR:
rgb(0,0,0); FONT-SIZE: medium; FONT-WEIGHT:
normal"><span><span style="FONT-FAMILY: Tahoma"><span
style="LINE-HEIGHT: 27px; FONT-FAMILY:
Webdings; COLOR: green; FONT-SIZE: 18pt">P</span></span><span
style="FONT-FAMILY: Tahoma"><strong><span
style="LINE-HEIGHT: 11px; FONT-FAMILY:
Arial, sans-serif; COLOR: teal; FONT-SIZE:
7.5pt"> "</span><span style="LINE-HEIGHT:
11px; FONT-FAMILY: Arial, sans-serif;
COLOR: green; FONT-SIZE: 7.5pt">Antes de
imprimir pense em seu compromisso com o
Meio Ambiente."</span></strong></span></span></div>
</div>
</div>
<div style="FONT-SIZE: 11pt" dir="ltr"
id="IncrediOriginalMessage"><i>-------Original
Message-------</i></div>
<div> </div>
<div id="receivestrings">
<div style="FONT-SIZE: 11pt" dir="ltr"><i><b>From:</b></i>
<a moz-do-not-send="true"
href="mailto:me@nybras.com">Anderson Arboleya</a></div>
<div style="FONT-SIZE: 11pt" dir="ltr"><i><b>Date:</b></i>
22/03/2012 07:57:15</div>
<div style="FONT-SIZE: 11pt" dir="ltr"><i><b>To:</b></i>
<a moz-do-not-send="true"
href="mailto:freeswitch-users@lists.freeswitch.org">FreeSWITCH
Users Help</a></div>
<div style="FONT-SIZE: 11pt" dir="ltr"><i><b>Subject:</b></i>
Re: [Freeswitch-users] Gateway Configuration
(asteriskexampleprovided)</div>
</div>
<div> </div>
<div>Fernando, here's the result:</div>
<div> </div>
<div> </div>
<div>send 662 bytes to udp/[189.84.133.130]:5060 at
10:49:40.725611:</div>
<div>
------------------------------------------------------------------------</div>
<div> REGISTER sip:PROVIDER_IP;transport=udp
SIP/2.0</div>
<div> Via: SIP/2.0/UDP
SERVER_IP:5080;rport;branch=z9hG4bKFHjr44Ug1NZ7e</div>
<div> Max-Forwards: 70</div>
<div> From:
<sip:USERNAME@PROVIDER_IP;transport=udp>;tag=FN5Fjc2t9Be1K</div>
<div> To:
<sip:USERNAME@PROVIDER_IP;transport=udp></div>
<div> Call-ID: ae19b5d8-740c-11e1-a151-17725ca17356</div>
<div> CSeq: 25870616 REGISTER</div>
<div> Contact: <<a moz-do-not-send="true"
href="mailto:sip:gw+PROVIDER_IP@SERVER_IP:5080;transport=udp;gw=189.84.133.130">sip:gw+PROVIDER_IP@SERVER_IP:5080;transport=udp;gw=189.84.133.130</a>></div>
<div> Expires: 3600</div>
<div> User-Agent:
FreeSWITCH-mod_sofia/1.0.head-git-914f6cb 2012-03-16</div>
<div>12-33-42 -0500</div>
<div> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS,
MESSAGE, UPDATE, INFO,</div>
<div>REGISTER, REFER, NOTIFY</div>
<div> Supported: timer, precondition, path,
replaces</div>
<div> Content-Length: 0</div>
<div>
------------------------------------------------------------------------</div>
<div> </div>
<div>I've replaced the IPs according this aliases:</div>
<div> </div>
<div> PROVIDER_IP -> My Provider IP</div>
<div> SERVER_IP -> My server IP (in which fs is
running)</div>
<div> </div>
<div>Thank you very much for your help.</div>
<div> </div>
<div> </div>
<div>Anderson Arboleya</div>
<div> </div>
<div>On Thu, Mar 22, 2012 at 7:45 AM, Fernando -
NextBilling IP Solutions</div>
<div><<a moz-do-not-send="true"
href="mailto:fernandojdk@gmail.com">fernandojdk@gmail.com</a>>
wrote:</div>
<div>></div>
<div>> Its Seem that FS cannot connect to your
gateway.</div>
<div>></div>
<div>> Try the command "sofia profile external
siptrace on" and see the response from your gateway.</div>
<div>></div>
<div>> Post here the siptrace, maybe i can help.</div>
<div>></div>
<div>> Best regards,</div>
<div>> Importante:</div>
<div>> Esta mensagem, incluindo todo seu conteúdo,
contém informações confidenciais, legalmente
protegidas e destinadas a indivíduo e propósito
específicos. Caso a tenha recebido por engano,
lembramos do caráter sigiloso e solicitamos a
gentileza de desconsiderá-la e comunicar-nos o mais
breve possível.</div>
<div>> As informações contidas nesta mensagem e em
seu conteúdo são de responsabilidade de seu autor, não
representando necessariamente idéias, opiniões,
pensamentos ou qualquer forma de posicionamento por
parte da NextBilling IP Solutions.</div>
<div>> P "Antes de imprimir pense em seu compromisso
com o Meio Ambiente."</div>
<div>> -------Original Message-------</div>
<div>></div>
<div>> From: Anderson Arboleya</div>
<div>> Date: 22/03/2012 07:40:53</div>
<div>> To: FreeSWITCH Users Help</div>
<div>> Subject: Re: [Freeswitch-users] Gateway
Configuration (asterisk exampleprovided)</div>
<div>></div>
<div>> Hi Fernando, I added the register param too.</div>
<div>></div>
<div>> Brian, I've change the name to the SERVER_IP
my provider sent me.</div>
<div>></div>
<div>> That's my configs now:</div>
<div>></div>
<div>>
=======================================================</div>
<div>> #
/usr/local/freeswitch/conf/sip_profiles/external/testing.xml</div>
<div>> <include></div>
<div>> <gateway name="SERVER_IP"></div>
<div>> <param name="username"
value="USERNAME" /></div>
<div>> <param name="realm"
value="SERVER_IP" /></div>
<div>> <param name="password"
value="PASSWORD" /></div>
<div>> <param name="register"
value="true"/></div>
<div>> </gateway></div>
<div>> </include></div>
<div>></div>
<div>> #
/usr/local/freeswitch/conf/dialplan/public/testing.xml</div>
<div>> <include></div>
<div>> <extension name="testing-inbound"></div>
<div>> <condition field="destination_number"
expression="^(USERNAME)$"></div>
<div>> <action application="lua"
data="/root/call_logger.lua" /></div>
<div>> </condition></div>
<div>> </extension></div>
<div>> </include></div>
<div>>
=======================================================</div>
<div>></div>
<div>> And now I got this error:</div>
<div>></div>
<div>>
=======================================================</div>
<div>> 2012-03-22 10:28:00.125504 [NOTICE]
sofia_reg.c:415 Registering 189.84.133.130</div>
<div>> 2012-03-22 10:28:32.125503 [ERR]
sofia_reg.c:1962 189.84.133.130</div>
<div>> Registration Failed with status Request
Timeout [408]. failure #1</div>
<div>>
=======================================================</div>
<div>></div>
<div>> When I run a "sofia status" and the fs_cli I
got:</div>
<div>></div>
<div>> external::SERVER_IP gateway
sip:USERNAME@SERVER_IP FAIL_WAIT</div>
<div>></div>
<div>> Any other suggestions?</div>
<div>></div>
<div>> Tks</div>
<div>></div>
<div>> Anderson Arboleya</div>
<div>></div>
<div>></div>
<div>> On Wed, Mar 21, 2012 at 11:41 PM, Brian Foster
<<a moz-do-not-send="true"
href="mailto:bdfoster@endigotech.com">bdfoster@endigotech.com</a>>
wrote:</div>
<div>> > Whoops...</div>
<div>> ></div>
<div>> > By default it will try and register to
the gateway name unless stated</div>
<div>> > otherwise. So as your dialplan sits, its
registering to "testing" literally.</div>
<div>> > Should be "example.com" or the domain
you're registering to.</div>
<div>> ></div>
<div>> > -BDF</div>
<div>> ></div>
<div>> > On Mar 21, 2012 10:27 PM, "Anderson
Arboleya" <<a moz-do-not-send="true"
href="mailto:me@nybras.com">me@nybras.com</a>>
wrote:</div>
<div>> >></div>
<div>> >> Hello,</div>
<div>> >></div>
<div>> >> I'm trying to connect freeswitch to a
provider so I can call real</div>
<div>> >> numbers and reach my freeswitch
server, but I'm kinda stuck in this</div>
<div>> >> process.</div>
<div>> >></div>
<div>> >> My provider sent me this Asterisk's
configs:</div>
<div>> >></div>
<div>> >>
=======================================================</div>
<div>> >> # sip.conf:</div>
<div>> >> register =>
USERNAME:PASSWD@SERVER_IP</div>
<div>> >></div>
<div>> >> [directcall12]</div>
<div>> >> context=default</div>
<div>> >> fromuser= USERNAME</div>
<div>> >> username= USERNAME</div>
<div>> >> secret= PASSWD</div>
<div>> >> type=friend</div>
<div>> >> host=SERVER_IP</div>
<div>> >> canreinvite=no</div>
<div>> >> nat=no</div>
<div>> >> dtmfmode=rfc2833</div>
<div>> >> insecure=very</div>
<div>> >> disallow=all</div>
<div>> >> allow=g729</div>
<div>> >></div>
<div>> >> # extensions.conf:</div>
<div>> >> exten => 3131,1,Noop(ORIGEM -
${CALLERID(num)})</div>
<div>> >> exten =>
3131,n,Dial(${TRUNKPBX}/${RAMAL})</div>
<div>> >> exten => 3131,n,Hangup()</div>
<div>> >></div>
<div>> >> ** change these settings according
you internal extensions configs</div>
<div>> >>
=======================================================</div>
<div>> >></div>
<div>> >></div>
<div>> >> Well, I tried adapting it to
FreeSwitch like this (according some</div>
<div>> >> examples I found across the web):</div>
<div>> >></div>
<div>> >>
=======================================================</div>
<div>> >> #
/usr/local/freeswitch/conf/sip_profiles/external/testing.xml</div>
<div>> >> <include></div>
<div>> >> <gateway name="testing"></div>
<div>> >> <param
name="username" value="USERNAME" /></div>
<div>> >> <param name="realm"
value="SERVER_IP" /></div>
<div>> >> <param
name="password" value="PASSWORD" /></div>
<div>> >> </gateway></div>
<div>> >> </include></div>
<div>> >></div>
<div>> >> #
/usr/local/freeswitch/conf/dialplan/public/testing.xml</div>
<div>> >> <include></div>
<div>> >> <extension
name="testing-inbound"></div>
<div>> >> <condition
field="destination_number"
expression="^(USERNAME)$"></div>
<div>> >> <action application="lua"
data="/root/call_logger.lua" /></div>
<div>> >> </condition></div>
<div>> >> </extension></div>
<div>> >> </include></div>
<div>> >>
=======================================================</div>
<div>> >></div>
<div>> >> In the end all I got is this log:</div>
<div>> >></div>
<div>> >> 2012-03-17 01:41:23.565471 [NOTICE]
sofia_reg.c:415 Registering testing</div>
<div>> >> 2012-03-17 01:41:55.565460 [ERR]
sofia_reg.c:1962 testing Registration</div>
<div>> >> Failed with status Request Timeout
[408].</div>
<div>> >></div>
<div>> >> All I want is to connect with my
provider and route the calls made to</div>
<div>> >> the real number my provider gave me
to my Dialplan, so my lua script</div>
<div>> >> will be called.</div>
<div>> >></div>
<div>> >> Btw, I dont actually bought a
"dedicated number" but an extension. I</div>
<div>> >> mean, I will call a number and an
IVR-menu will ask me for an</div>
<div>> >> extension, then I type the extension
I bought (3131) and their system</div>
<div>> >> will send the call for me. Is this
clear?</div>
<div>> >></div>
<div>> >> Sorry, I'm an experienced programmer
but I'm just starting with all</div>
<div>> >> this telephony thing and I don't know
what else I need to do from this</div>
<div>> >> point on, I have searched a lot and
tried a lot of different</div>
<div>> >> approaches, but none succeed.</div>
<div>> >></div>
<div>> >> Could anybody help me with this,
please?</div>
<div>> >></div>
<div>> >> Thanks in advance.</div>
<div>> >></div>
<div>> >></div>
<div>> >> Anderson Arboleya</div>
<div> </div>
<div>_________________________________________________________________________</div>
<div>Professional FreeSWITCH Consulting Services:</div>
<div><a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div>
<div><a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div>
<div> </div>
<div>FreeSWITCH-powered IP PBX: The CudaTel
Communication Server</div>
<div><a moz-do-not-send="true"
href="http://www.cudatel.com">http://www.cudatel.com</a></div>
<div> </div>
<div>Official FreeSWITCH Sites</div>
<div><a moz-do-not-send="true"
href="http://www.freeswitch.org">http://www.freeswitch.org</a></div>
<div><a moz-do-not-send="true"
href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div>
<div><a moz-do-not-send="true"
href="http://www.cluecon.com">http://www.cluecon.com</a></div>
<div> </div>
<div>FreeSWITCH-users mailing list</div>
<div><a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></div>
<div><a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></div>
<div>UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></div>
<div><a moz-do-not-send="true"
href="http://www.freeswitch.org">http://www.freeswitch.org</a></div>
<div> </div>
</div>
</td>
</tr>
<tr>
<td id="INCREDIFOOTER" width="100%">
<table cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td width="100%"><br>
</td>
<td id="INCREDISOUND" align="center" valign="bottom"><br>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<p class="" avgcert""="" color="#000000" align="left">No virus
found in this message.<br>
Checked by AVG - <a moz-do-not-send="true"
href="http://www.avg.com">www.avg.com</a><br>
Version: 2012.0.1913 / Virus Database: 2114/4886 - Release Date:
03/22/12</p>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
Atentamente,
<br>
<b>Dario García</b>
<br>
Consultor.
<br>
<br>
CCCT, Nivel C2, Sector Yarey, Mz, <br>
Ofc. MZ03a. <br>
Caracas-Venezuela.
<br>
Teléfono: +58 212 9081842
<br>
Cel: +58 412 2221515
<br>
<a class="moz-txt-link-abbreviated" href="mailto:dgarcia@anew.com.ve">dgarcia@anew.com.ve</a>
<br>
<a class="moz-txt-link-freetext" href="http://www.anew.com.ve">http://www.anew.com.ve</a></div>
</body>
</html>