[Freeswitch-users] How to set FS_A as a gateway of FS_B??

Michael Jerris mike at jerris.com
Tue Jun 30 09:05:28 PDT 2009


If you don't need authentication, you don't need a gateway, if you do,  
you will need to setup a user on the other box to register to.

On Jun 30, 2009, at 3:05 AM, Brad Tuan wrote:

> I know that i need to set the dialplan,
>
> my problem is when FS_B send a REGISTER to FS_A, FS_A will return a  
> 403 to FS_B
>
> Like this:
>
> 2009-06-30 15:03:25 [NOTICE] sofia_reg.c:305  
> sofia_reg_check_gateway() Registering FS_A
> 2009-06-30 15:03:25 [ERR] sofia_reg.c:1391  
> sofia_reg_handle_sip_r_register()
>                  FS_A Registration Failed with status Forbidden  
> [403]. failure #2
> 2009-06-30 15:03:25 [WARNING] sofia_reg.c:334  
> sofia_reg_check_gateway()
>                  FS_A Failed Registration, setting retry to 30  
> seconds.
>
> >  Create a dialplan for FS A to communicate to FS B.
> >
> >  dialplan/default/00_fsa.xml
> >
> >   <extension name="dialfreeswitch">
> >
> >      <condition field="destination_number" expression="^(\d+)$">
> >        <action application="set"
> >  data="effective_caller_id_number=${outbound_caller_id_number}"/>
> >        <action application="set"
> >  data="effective_caller_id_name=${outbound_caller_id_name}"/>
> >        <action application="bridge"
> >  >  data="sofia/gateway/FreeSwitch/1$218.210.xxx.xxx"/> -> IP of  
> FS B
> >      </condition>
> >    </extension>
>
> >  To check if your gateway succeed
>
> >  just type on sofia status check if gateway FreeSWITCH is there  
> connection is
> >  set and ready to go :)





More information about the FreeSWITCH-users mailing list