<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>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 border=0 src="cid:45170CF6-E713-4F0D-89EA-635FDD69EE8C" 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:57:15</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 (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 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 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 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>