<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> </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>
<DIV> </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"> "</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 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> </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 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 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 href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</A></DIV>
<DIV><A 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 href="http://www.cudatel.com">http://www.cudatel.com</A></DIV>
<DIV> </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> </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> </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>