<HTML><HEAD>
<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-->
</HEAD>
<BODY style="SCROLLBAR-ARROW-COLOR: ; SCROLLBAR-FACE-COLOR: ; MARGIN: 5px 10px 0px; SCROLLBAR-DARKSHADOW-COLOR: ; FONT-FAMILY: Arial; SCROLLBAR-HIGHLIGHT-COLOR: ; SCROLLBAR-SHADOW-COLOR: ; FONT-SIZE: 12pt; SCROLLBAR-3DLIGHT-COLOR: " background="" scroll=yes bgColor=#ffffff>
<TABLE id=INCREDIMAINTABLE border=0 cellSpacing=0 cellPadding=2 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>Its Seem that FS cannot connect to your gateway.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Try the command "sofia profile &nbsp;external siptrace on" and see&nbsp;the response from your&nbsp;gateway.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Post here the siptrace, maybe&nbsp;i can help.</DIV></DIV></DIV>
<DIV>
<DIV>&nbsp;</DIV>
<DIV id=INCREDISIGNATUREID ondrag="return false;">Best regards, 
<DIV style="FONT-FAMILY: Times New Roman"><STRONG><FONT color=#666666 size=2><IMG border=0 src="cid:A9AEAF65-CFE0-47C4-B2BA-2D3C2ABC518E" width=576 height=179></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 size=4 face=Helvetica> </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.<U></U><U></U><U></U></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">&nbsp;"</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>&nbsp;</DIV>
<DIV id=receivestrings>
<DIV style="FONT-SIZE: 11pt" dir=ltr><I><B>From:</B></I> <A 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:40:53</DIV>
<DIV style="FONT-SIZE: 11pt" dir=ltr><I><B>To:</B></I> <A 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 (asterisk exampleprovided)</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>Hi Fernando, I added the register param too.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Brian, I've change the name to the SERVER_IP my provider sent me.</DIV>
<DIV>&nbsp;</DIV>
<DIV>That's my configs now:</DIV>
<DIV>&nbsp;</DIV>
<DIV>=======================================================</DIV>
<DIV># /usr/local/freeswitch/conf/sip_profiles/external/testing.xml</DIV>
<DIV>&lt;include&gt;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gateway name="SERVER_IP"&gt;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="username" value="USERNAME" /&gt;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="realm" value="SERVER_IP" /&gt;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="password" value="PASSWORD" /&gt;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="register" value="true"/&gt;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/gateway&gt;</DIV>
<DIV>&lt;/include&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV># /usr/local/freeswitch/conf/dialplan/public/testing.xml</DIV>
<DIV>&lt;include&gt;</DIV>
<DIV>&nbsp;&nbsp; &lt;extension name="testing-inbound"&gt;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^(USERNAME)$"&gt;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="lua" data="/root/call_logger.lua" /&gt;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;</DIV>
<DIV>&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&lt;/include&gt;</DIV>
<DIV>=======================================================</DIV>
<DIV>&nbsp;</DIV>
<DIV>And now I got this error:</DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV>When I run a "sofia status" and the fs_cli I got:</DIV>
<DIV>&nbsp;</DIV>
<DIV>external::SERVER_IP&nbsp;&nbsp; gateway&nbsp;&nbsp; sip:USERNAME@SERVER_IP&nbsp;&nbsp; FAIL_WAIT</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any other suggestions?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Tks</DIV>
<DIV>&nbsp;</DIV>
<DIV>Anderson Arboleya</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>On Wed, Mar 21, 2012 at 11:41 PM, Brian Foster &lt;<A href="mailto:bdfoster@endigotech.com">bdfoster@endigotech.com</A>&gt; wrote:</DIV>
<DIV>&gt; Whoops...</DIV>
<DIV>&gt;</DIV>
<DIV>&gt; By default it will try and register to the gateway name unless stated</DIV>
<DIV>&gt; otherwise. So as your dialplan sits, its registering to "testing" literally.</DIV>
<DIV>&gt; Should be "example.com" or the domain you're registering to.</DIV>
<DIV>&gt;</DIV>
<DIV>&gt; -BDF</DIV>
<DIV>&gt;</DIV>
<DIV>&gt; On Mar 21, 2012 10:27 PM, "Anderson Arboleya" &lt;<A href="mailto:me@nybras.com">me@nybras.com</A>&gt; wrote:</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; Hello,</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; I'm trying to connect freeswitch to a provider so I can call real</DIV>
<DIV>&gt;&gt; numbers and reach my freeswitch server, but I'm kinda stuck in this</DIV>
<DIV>&gt;&gt; process.</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; My provider sent me this Asterisk's configs:</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; =======================================================</DIV>
<DIV>&gt;&gt; # sip.conf:</DIV>
<DIV>&gt;&gt; register &nbsp; =&gt; &nbsp; USERNAME:PASSWD@SERVER_IP</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; [directcall12]</DIV>
<DIV>&gt;&gt; context=default</DIV>
<DIV>&gt;&gt; fromuser= USERNAME</DIV>
<DIV>&gt;&gt; username= USERNAME</DIV>
<DIV>&gt;&gt; secret= PASSWD</DIV>
<DIV>&gt;&gt; type=friend</DIV>
<DIV>&gt;&gt; host=SERVER_IP</DIV>
<DIV>&gt;&gt; canreinvite=no</DIV>
<DIV>&gt;&gt; nat=no</DIV>
<DIV>&gt;&gt; dtmfmode=rfc2833</DIV>
<DIV>&gt;&gt; insecure=very</DIV>
<DIV>&gt;&gt; disallow=all</DIV>
<DIV>&gt;&gt; allow=g729</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; # extensions.conf:</DIV>
<DIV>&gt;&gt; exten =&gt; 3131,1,Noop(ORIGEM - ${CALLERID(num)})</DIV>
<DIV>&gt;&gt; exten =&gt; 3131,n,Dial(${TRUNKPBX}/${RAMAL})</DIV>
<DIV>&gt;&gt; exten =&gt; 3131,n,Hangup()</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; ** change these settings according you internal extensions configs</DIV>
<DIV>&gt;&gt; =======================================================</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; Well, I tried adapting it to FreeSwitch like this (according some</DIV>
<DIV>&gt;&gt; examples I found across the web):</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; =======================================================</DIV>
<DIV>&gt;&gt; # /usr/local/freeswitch/conf/sip_profiles/external/testing.xml</DIV>
<DIV>&gt;&gt; &lt;include&gt;</DIV>
<DIV>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;gateway name="testing"&gt;</DIV>
<DIV>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name="username" value="USERNAME" /&gt;</DIV>
<DIV>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name="realm" value="SERVER_IP" /&gt;</DIV>
<DIV>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name="password" value="PASSWORD" /&gt;</DIV>
<DIV>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/gateway&gt;</DIV>
<DIV>&gt;&gt; &lt;/include&gt;</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; # /usr/local/freeswitch/conf/dialplan/public/testing.xml</DIV>
<DIV>&gt;&gt; &lt;include&gt;</DIV>
<DIV>&gt;&gt; &nbsp; &nbsp;&lt;extension name="testing-inbound"&gt;</DIV>
<DIV>&gt;&gt; &nbsp; &nbsp; &nbsp;&lt;condition field="destination_number" expression="^(USERNAME)$"&gt;</DIV>
<DIV>&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application="lua" data="/root/call_logger.lua" /&gt;</DIV>
<DIV>&gt;&gt; &nbsp; &nbsp; &nbsp;&lt;/condition&gt;</DIV>
<DIV>&gt;&gt; &nbsp; &nbsp;&lt;/extension&gt;</DIV>
<DIV>&gt;&gt; &lt;/include&gt;</DIV>
<DIV>&gt;&gt; =======================================================</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; In the end all I got is this log:</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; 2012-03-17 01:41:23.565471 [NOTICE] sofia_reg.c:415 Registering testing</DIV>
<DIV>&gt;&gt; 2012-03-17 01:41:55.565460 [ERR] sofia_reg.c:1962 testing Registration</DIV>
<DIV>&gt;&gt; Failed with status Request Timeout [408].</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; All I want is to connect with my provider and route the calls made to</DIV>
<DIV>&gt;&gt; the real number my provider gave me to my Dialplan, so my lua script</DIV>
<DIV>&gt;&gt; will be called.</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; Btw, I dont actually bought a "dedicated number" but an extension. I</DIV>
<DIV>&gt;&gt; mean, I will call a number and an IVR-menu will ask me for an</DIV>
<DIV>&gt;&gt; extension, then I type the extension I bought (3131) and their system</DIV>
<DIV>&gt;&gt; will send the call for me. Is this clear?</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; Sorry, I'm an experienced programmer but I'm just starting with all</DIV>
<DIV>&gt;&gt; this telephony thing and I don't know what else I need to do from this</DIV>
<DIV>&gt;&gt; point on, I have searched a lot and tried a lot of different</DIV>
<DIV>&gt;&gt; approaches, but none succeed.</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; Could anybody help me with this, please?</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; Thanks in advance.</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt; Anderson Arboleya</DIV>
<DIV>&nbsp;</DIV>
<DIV>_________________________________________________________________________</DIV>
<DIV>Professional FreeSWITCH Consulting Services:</DIV>
<DIV><A href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</A></DIV>
<DIV><A href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</DIV>
<DIV><A href="http://www.cudatel.com">http://www.cudatel.com</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>Official FreeSWITCH Sites</DIV>
<DIV><A href="http://www.freeswitch.org">http://www.freeswitch.org</A></DIV>
<DIV><A href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</A></DIV>
<DIV><A href="http://www.cluecon.com">http://www.cluecon.com</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>FreeSWITCH-users mailing list</DIV>
<DIV><A href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</A></DIV>
<DIV><A href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A></DIV>
<DIV>UNSUBSCRIBE:<A href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</A></DIV>
<DIV><A href="http://www.freeswitch.org">http://www.freeswitch.org</A></DIV>
<DIV>&nbsp;</DIV></DIV></TD></TR>
<TR>
<TD id=INCREDIFOOTER width="100%">
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD width="100%"></TD>
<TD id=INCREDISOUND vAlign=bottom align=center></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></BODY></HTML>